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.
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53566.json"
}[
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56",
"deprecated": false,
"id": "CVE-2023-53566-023d1be2",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@61ae320a29b0540c16931816299eb86bf2b66c08",
"deprecated": false,
"id": "CVE-2023-53566-09aa1ef7",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@899aa5638568abf5d69de7a7bb95e4615157375b",
"deprecated": false,
"id": "CVE-2023-53566-62330c89",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec5caa765f7f6960011c919c9aeb1467940421f6",
"deprecated": false,
"id": "CVE-2023-53566-7f4d7cee",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ec5caa765f7f6960011c919c9aeb1467940421f6",
"deprecated": false,
"id": "CVE-2023-53566-9aad8096",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a337706c1fb35aac3f26b48aca80421bdbe1d33a",
"deprecated": false,
"id": "CVE-2023-53566-9c9b6e18",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56",
"deprecated": false,
"id": "CVE-2023-53566-9f719a14",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a836be60a3aabcedcd9c79f545d409ace1f20ba6",
"deprecated": false,
"id": "CVE-2023-53566-a20eb218",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a836be60a3aabcedcd9c79f545d409ace1f20ba6",
"deprecated": false,
"id": "CVE-2023-53566-a61eb73e",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@899aa5638568abf5d69de7a7bb95e4615157375b",
"deprecated": false,
"id": "CVE-2023-53566-a7dc3af7",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3fa13203b6d90cc3a33af47b058739f92ab82eef",
"deprecated": false,
"id": "CVE-2023-53566-b6d06e57",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@3fa13203b6d90cc3a33af47b058739f92ab82eef",
"deprecated": false,
"id": "CVE-2023-53566-bb0a3bd8",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"199529884605088447810693254215276390463",
"25349708768935070683294622952889850387",
"20591642910093583732959200060763740142",
"338148124679311301444463353082590941956",
"108773085362341208981204621890191050298",
"72924014662912462338469033635247086685",
"105919283221140333394967828768463178582",
"63901303270504665388294267614881104654",
"207267448997991820784992407744505587893",
"64111422838397810972995643862869445296",
"195907831055661592285921167646831824825",
"77911002829176314052147322597667025210",
"321889340635776298014986424535856828756",
"16624141500309919529368760989870835289",
"68020662064945569108782561993089882574",
"255233476816369712863768445901939614150",
"64477485973244114635102813827864465059",
"22612764278087463412084603857453019237",
"93699552734832551051774200241168673907",
"145073498323849880002763290719236146011",
"269699412461383300717568168398753814864",
"126295148714061953662040352170117152714",
"263696712555414645248997037936850596256",
"71001864002012032869045484951607240148"
]
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@61ae320a29b0540c16931816299eb86bf2b66c08",
"deprecated": false,
"id": "CVE-2023-53566-cf50cc98",
"signature_type": "Line",
"target": {
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
},
{
"digest": {
"length": 580.0,
"function_hash": "328323744994753842151126362471496276349"
},
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a337706c1fb35aac3f26b48aca80421bdbe1d33a",
"deprecated": false,
"id": "CVE-2023-53566-ff8aeb62",
"signature_type": "Function",
"target": {
"function": "nft_rbtree_gc_elem",
"file": "net/netfilter/nft_set_rbtree.c"
},
"signature_version": "v1"
}
]
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53566.json"