netfilter: nft_set_rbtree: narrow down range completion to anonymous sets
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nft_set_rbtree: narrow down range completion to anonymous sets
For anonymous sets, when adjacent ranges are found, the end element is not added to the set to pack the set representation. Use next start element to complete this interval.
Jérémy Jean says:
Consider two ranges in a netfilter verdict map: * keys 10-19 accept packets, and * keys 30-39 jump to chain 'victim'. Now, delete the end marker at 20. The lookup array now uses element 30 as the first range's end, so an INTERVAL_END query for key 15 returns element 30, including its jump verdict and chain pointer. This can make KASAN reports a UAF after the GC releases reference chain for 30 that has expired:
BUG: KASAN: slab-use-after-free in nft_verdict_dump+0xdd/0x110 Read of size 8 at addr ff110000009dfb58 by task repro/50 ... Call Trace: ... nft_verdict_dump+0xdd/0x110 nft_data_dump+0x4d/0x80 nf_tables_fill_setelem+0x30b/0x8a0 ? __asan_memcpy+0x3c/0x60 nf_tables_fill_setelem_info+0x1b0/0x200 nft_get_set_elem+0x3fd/0x4b0 ... Freed by task 24: ... kfree+0x1a5/0x280 nf_tables_trans_destroy_work+0x2cb/0x520
| Product | Versions |
|---|---|
| Linux Linux | e4ea5be0b35fd2f772bb289e235e3836320957bd to before 60c1c825bdc40a0413d6ca4705b0403ee9489a49 Affected2aa34191f06fc5af4f70241518a8554370d86054 to before 9e650c0a9f9b9c876826c036b2ab609f159d6f79 Affected2aa34191f06fc5af4f70241518a8554370d86054 to before 86d47d4c84a1b8470ba3fc16df13ea2a220b74ff Affectedef1a8b85cc5fd721a092e86b2ce9907aec7ddf27 Affected6.18.14 to before 6.18.65 Affected6.19.4 to before 6.20 Affected |
| Linux Linux | 7.0 Affectedbefore 7.0 Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.