CVE-2023-53566

Source
https://cve.org/CVERecord?id=CVE-2023-53566
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53566.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-53566
Downstream
Related
Published
2025-10-04T15:17:08.598Z
Modified
2026-03-20T12:33:14.308540Z
Summary
netfilter: nft_set_rbtree: fix null deref on element insertion
Details

In the Linux kernel, the following vulnerability has been resolved:

netfilter: nftsetrbtree: fix null deref on element insertion

There is no guarantee that rbprev() will not return NULL in nftrbtreegcelem():

general protection fault, probably for non-canonical address 0xdffffc0000000003: 0000 [#1] PREEMPT SMP KASAN KASAN: null-ptr-deref in range [0x0000000000000018-0x000000000000001f] nftaddsetelem+0x14b0/0x2990 nftables_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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53566.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
7ab87a326f20c52ff4d9972052d085be951c704b
Fixed
b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
181859bdfb9734aca449512fccaee4cacce64aed
Fixed
899aa5638568abf5d69de7a7bb95e4615157375b
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4aacf3d78424293e318c616016865380b37b9cc5
Fixed
3fa13203b6d90cc3a33af47b058739f92ab82eef
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
2bf1435fa19d2c58054391b3bba40d5510a5758c
Fixed
ec5caa765f7f6960011c919c9aeb1467940421f6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
318cb24a4c3fce8140afaf84e4d45fcb76fb280b
Fixed
a836be60a3aabcedcd9c79f545d409ace1f20ba6
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
c9e6978e2725a7d4b6cd23b2facd3f11422c0643
Fixed
a337706c1fb35aac3f26b48aca80421bdbe1d33a
Fixed
61ae320a29b0540c16931816299eb86bf2b66c08

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-53566.json"