# CVE-2023-53566: netfilter: nft\_set\_rbtree: fix null deref on element insertion

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-04T15:17:08.598Z
- **Modified:** 2026-10-15T22:17:43.140Z

## Who should check

- Anyone running Linux \>= 7ab87a326f20c52ff4d9972052d085be951c704b, \< b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56; \>= 181859bdfb9734aca449512fccaee4cacce64aed, \< 899aa5638568abf5d69de7a7bb95e4615157375b; \>= 4aacf3d78424293e318c616016865380b37b9cc5, \< 3fa13203b6d90cc3a33af47b058739f92ab82eef; \>= 2bf1435fa19d2c58054391b3bba40d5510a5758c, \< ec5caa765f7f6960011c919c9aeb1467940421f6; \>= 318cb24a4c3fce8140afaf84e4d45fcb76fb280b, \< a836be60a3aabcedcd9c79f545d409ace1f20ba6; \>= c9e6978e2725a7d4b6cd23b2facd3f11422c0643, \< a337706c1fb35aac3f26b48aca80421bdbe1d33a; \>= c9e6978e2725a7d4b6cd23b2facd3f11422c0643, \< 61ae320a29b0540c16931816299eb86bf2b66c08; \>= 5.10.166, \< 5.10.181; \>= 5.15.91, \< 5.15.113; \>= 6.1.9, \< 6.1.30
- Anyone running Linux 6.2

## Description

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.

## Affected and fixed versions

- Linux: \>= 7ab87a326f20c52ff4d9972052d085be951c704b, \< b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56; \>= 181859bdfb9734aca449512fccaee4cacce64aed, \< 899aa5638568abf5d69de7a7bb95e4615157375b; \>= 4aacf3d78424293e318c616016865380b37b9cc5, \< 3fa13203b6d90cc3a33af47b058739f92ab82eef; \>= 2bf1435fa19d2c58054391b3bba40d5510a5758c, \< ec5caa765f7f6960011c919c9aeb1467940421f6; \>= 318cb24a4c3fce8140afaf84e4d45fcb76fb280b, \< a836be60a3aabcedcd9c79f545d409ace1f20ba6; \>= c9e6978e2725a7d4b6cd23b2facd3f11422c0643, \< a337706c1fb35aac3f26b48aca80421bdbe1d33a; \>= c9e6978e2725a7d4b6cd23b2facd3f11422c0643, \< 61ae320a29b0540c16931816299eb86bf2b66c08; \>= 5.10.166, \< 5.10.181; \>= 5.15.91, \< 5.15.113; \>= 6.1.9, \< 6.1.30 (cvelist)
- Linux: 6.2 (cvelist)

## Mitigation

- Upgrade Linux to 6.1.30 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-53566. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-53566.md
Affected: Linux >= 7ab87a326f20c52ff4d9972052d085be951c704b, < b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56; >= 181859bdfb9734aca449512fccaee4cacce64aed, < 899aa5638568abf5d69de7a7bb95e4615157375b; >= 4aacf3d78424293e318c616016865380b37b9cc5, < 3fa13203b6d90cc3a33af47b058739f92ab82eef; >= 2bf1435fa19d2c58054391b…
Fixed in: Linux 899aa5638568abf5d69de7a7bb95e4615157375b, Linux 3fa13203b6d90cc3a33af47b058739f92ab82eef, Linux 61ae320a29b0540c16931816299eb86bf2b66c08, Linux 5.10.181, Linux 5.15.113, Linux 6.1.30

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-53566 being exploited?

There is no confirmed exploitation: CVE-2023-53566 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-53566?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-53566?

Linux \>= 7ab87a326f20c52ff4d9972052d085be951c704b, \< b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56; \>= 181859bdfb9734aca449512fccaee4cacce64aed, \< 899aa5638568abf5d69de7a7bb95e4615157375b; \>= 4aacf3d78424293e318c616016865380b37b9cc5, \< 3fa13203b6d90cc3a33af47b058739f92ab82eef; \>= 2bf1435fa19d2c58054391b3bba40d5510a5758c, \< ec5caa765f7f6960011c919c9aeb1467940421f6; \>= 318cb24a4c3fce8140afaf84e4d45fcb76fb280b, \< a836be60a3aabcedcd9c79f545d409ace1f20ba6; \>= c9e6978e2725a7d4b6cd23b2facd3f11422c0643, \< a337706c1fb35aac3f26b48aca80421bdbe1d33a; \>= c9e6978e2725a7d4b6cd23b2facd3f11422c0643, \< 61ae320a29b0540c16931816299eb86bf2b66c08; \>= 5.10.166, \< 5.10.181; \>= 5.15.91, \< 5.15.113; \>= 6.1.9, \< 6.1.30; Linux 6.2.

### Is there a fix for CVE-2023-53566?

Yes. Fixed in Linux 899aa5638568abf5d69de7a7bb95e4615157375b, Linux 3fa13203b6d90cc3a33af47b058739f92ab82eef, Linux 61ae320a29b0540c16931816299eb86bf2b66c08, Linux 5.10.181, Linux 5.15.113, Linux 6.1.30. Upgrade Linux to 6.1.30 or later.

### How do I check if I'm affected by CVE-2023-53566?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b76db53ee8802ee5683f8cb401d7e2ec6f9b3d56>
- patch: <https://git.kernel.org/stable/c/899aa5638568abf5d69de7a7bb95e4615157375b>
- patch: <https://git.kernel.org/stable/c/3fa13203b6d90cc3a33af47b058739f92ab82eef>
- patch: <https://git.kernel.org/stable/c/ec5caa765f7f6960011c919c9aeb1467940421f6>
- patch: <https://git.kernel.org/stable/c/a836be60a3aabcedcd9c79f545d409ace1f20ba6>
- patch: <https://git.kernel.org/stable/c/a337706c1fb35aac3f26b48aca80421bdbe1d33a>
- patch: <https://git.kernel.org/stable/c/61ae320a29b0540c16931816299eb86bf2b66c08>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-53566>

HTML: <https://flawdb.com/CVE-2023-53566> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-53566>
