netfilter: nft_set_rbtree: fix null deref on element insertion
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_rbtree: fix null deref on element insertion There is no guarantee that rb_prev() will not return NULL in nft_rbtree_gc_elem(): general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] nft_add_set_elem+0x14b0/0x2990 nf_tables_newsetelem+0x528/0xb30 Furthermore, there is a possible use-after-free while iterating, 'node' can be free'd so we need to cache the next value to use.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.181, 5.15.113, 6.1.30, 6.3.4
- CVEs
- CVE-2023-53566
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 2 Nov 2026, 18:29 UTC · Revision 1
Source evidence
netfilter: nft_set_rbtree: fix null deref on element insertion
core-osv · Original sourcePublished 4 Oct 2025, 15:17 UTC
In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_rbtree: fix null deref on element insertion There is no guarantee that rb_prev() will not return NULL in nft_rbtree_gc_elem(): general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] nft_add_set_elem+0x14b0/0x2990 nf_tables_newsetelem+0x528/0xb30 Furthermore, there is a possible use-after-free while iterating, 'node' can be free'd so we need to cache the next value to use.
osv:CVE-2023-53566
Kernel
Fixed versions: 5.10.181, 5.15.113, 6.1.30, 6.3.4
Complete source record
{
"id": "550cc16944ea45eeac32484a69f5d9a2a5d0ca3808a2762c83f39818cfa99e3e",
"url": "https://osv.dev/vulnerability/CVE-2023-53566",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "netfilter: nft_set_rbtree: fix null deref on element insertion",
"summary": "In the Linux kernel, the following vulnerability has been resolved: netfilter: nft_set_rbtree: fix null deref on element insertion There is no guarantee that rb_prev() will not return NULL in nft_rbtree_gc_elem(): general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] nft_add_set_elem+0x14b0/0x2990 nf_tables_newsetelem+0x528/0xb30 Furthermore, there is a possible use-after-free while iterating, 'node' can be free'd so we need to cache the next value to use.",
"evidence": "osv:CVE-2023-53566",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.10.181",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.113",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.30",
"evidence": "/affected/1/ranges"
},
{
"value": "6.3.4",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2023-53566",
"aliases": [
"CVE-2023-53566"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "7ab87a326f20c52ff4d9972052d085be951c704b"
},
{
"fixed": "b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "181859bdfb9734aca449512fccaee4cacce64aed"
},
{
"fixed": "899aa5638568abf5d69de7a7bb95e4615157375b"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "4aacf3d78424293e318c616016865380b37b9cc5"
},
{
"fixed": "3fa13203b6d90cc3a33af47b058739f92ab82eef"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "2bf1435fa19d2c58054391b3bba40d5510a5758c"
},
{
"fixed": "ec5caa765f7f6960011c919c9aeb1467940421f6"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "318cb24a4c3fce8140afaf84e4d45fcb76fb280b"
},
{
"fixed": "a836be60a3aabcedcd9c79f545d409ace1f20ba6"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "c9e6978e2725a7d4b6cd23b2facd3f11422c0643"
},
{
"fixed": "a337706c1fb35aac3f26b48aca80421bdbe1d33a"
},
{
"fixed": "61ae320a29b0540c16931816299eb86bf2b66c08"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.10.166"
},
{
"fixed": "5.10.181"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "5.15.91"
},
{
"fixed": "5.15.113"
}
]
},
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6.1.9"
},
{
"fixed": "6.1.30"
}
]
}
],
"versions": [
"v5.10.180",
"v5.10.179",
"v5.10.178",
"v5.10.177",
"v5.10.176",
"v5.10.175",
"v5.10.174",
"v5.10.173",
"v5.10.172",
"v5.10.171",
"v5.10.170",
"v5.10.169",
"v5.10.168",
"v5.10.167",
"v5.10.166",
"v5.15.112",
"v5.15.111",
"v5.15.110",
"v5.15.109",
"v5.15.108",
"v5.15.107",
"v5.15.106",
"v5.15.105",
"v5.15.104",
"v5.15.103",
"v5.15.102",
"v5.15.101",
"v5.15.100",
"v5.15.99",
"v5.15.98",
"v5.15.97",
"v5.15.96",
"v5.15.95",
"v5.15.94",
"v5.15.93",
"v5.15.92",
"v5.15.91",
"v6.1.29",
"v6.1.28",
"v6.1.27",
"v6.1.26",
"v6.1.25",
"v6.1.24",
"v6.1.23",
"v6.1.22",
"v6.1.21",
"v6.1.20",
"v6.1.19",
"v6.1.18",
"v6.1.17",
"v6.1.16",
"v6.1.15",
"v6.1.14",
"v6.1.13",
"v6.1.12",
"v6.1.11",
"v6.1.10",
"v6.1.9"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53566.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "5.10.181"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.113"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.30"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.3.4"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53566.json"
}
}
],
"modified": "2026-10-28T02:30:22.419274162Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/3fa13203b6d90cc3a33af47b058739f92ab82eef",
"https://git.kernel.org/stable/c/61ae320a29b0540c16931816299eb86bf2b66c08",
"https://git.kernel.org/stable/c/899aa5638568abf5d69de7a7bb95e4615157375b",
"https://git.kernel.org/stable/c/a337706c1fb35aac3f26b48aca80421bdbe1d33a",
"https://git.kernel.org/stable/c/a836be60a3aabcedcd9c79f545d409ace1f20ba6",
"https://git.kernel.org/stable/c/b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56",
"https://git.kernel.org/stable/c/ec5caa765f7f6960011c919c9aeb1467940421f6",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53566.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53566",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53566.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53566",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 488471,
"published_at": "2025-10-04T15:17:08.598+00:00"
}