CVE-2026-139280
published high CVSS 3.1 · 7.1netfilter: nft_set_rbtree: narrow down range completion to anonymous sets
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxe4ea5be0b35fd2f772bb289e235e3836320957bd to < 60c1c825bdc40a0413d6ca4705b0403ee9489a49 · 2aa34191f06fc5af4f70241518a8554370d86054 to < 9e650c0a9f9b9c876826c036b2ab609f159d6f79 · 2aa34191f06fc5af4f70241518a8554370d86054 to < 86d47d4c84a1b8470ba3fc16df13ea2a220b74ff · ef1a8b85cc5fd721a092e86b2ce9907aec7ddf27 · 6.18.14 to < 6.18.65 · 6.19.4 to < 6.20 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux7.0 (affected) · 0 to < 7.0 (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected; Pending Fix | Not stated | Amazon Linux assessment |
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
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.1 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H
- Scenarios
- en: AV:L - All attacker input arrives as local nfnetlink messages (NFT_MSG_NEWSETELEM, DELSETELEM, DELCHAIN, GETSETELEM) on an AF_NETLINK socket. No packet or remote peer supplies anything that leads to nft_rbtree_commit() building the bad interval or nft_rbtree_get() returning it. The packet path nft_rbtree_lookup() only returns interval->from. AC:L - Every step is the attacker's own, and none is a race. They set the element timeout and delete the lone end element. Their NEWSETELEM sync-GCs the expired element in __nft_rbtree_insert(), then fails with -ENOTEMPTY and aborts the batch. They delete the now-unreferenced chain and issue GETSETELEM with INTERVAL_END. The outcome is deterministic. PR:L - nfnetlink_rcv() only checks netlink_net_capable(CAP_NET_ADMIN), so an unprivileged user can hold it via unshare -Urn in their own netns. Named interval maps with timeouts are served by the rbtree backend for single-field keys. No init-namespace capability is needed anywhere on the path. UI:N - No victim action is involved. The attacker builds the set, forces the abort, deletes the chain and sends the GET request entirely through their own netlink calls. S:U - Both the dangling-pointer read and its effects stay inside the kernel's own security authority. No VM, IOMMU or sandbox boundary is crossed. C:H - nft_rbtree_get() returns the next interval's GC'd start element. nft_verdict_dump() then runs nla_put_string(v->chain->name) on the kfree'd nft_chain and copies the result into the netlink reply (objref maps do the same with obj->key.name). If the freed slot is refilled with attacker data, the name pointer is attacker-chosen, which gives an arbitrary kernel read. I:N - The dangling chain or object pointer is only read in nf_tables_fill_setelem(). GETSETELEM_RESET touches only the stale element's own expressions, and that element stays allocated until the next commit publishes a new array. I found no write primitive. A:H - Reading the freed nft_chain is a slab use-after-free, which KASAN reports. If the refilled slot holds a garbage or non-canonical name pointer, strlen in nla_put_string() faults and oopses the kernel, and the attacker can repeat this at will.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | e4ea5be0b35fd2f772bb289e235e3836320957bd to < 60c1c825bdc40a0413d6ca4705b0403ee9489a49 (affected · git)2aa34191f06fc5af4f70241518a8554370d86054 to < 9e650c0a9f9b9c876826c036b2ab609f159d6f79 (affected · git)2aa34191f06fc5af4f70241518a8554370d86054 to < 86d47d4c84a1b8470ba3fc16df13ea2a220b74ff (affected · git)ef1a8b85cc5fd721a092e86b2ce9907aec7ddf27 (affected · git)6.18.14 to < 6.18.65 (affected · semver)6.19.4 to < 6.20 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 7.0 (affected)0 to < 7.0 (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
netfilter: nft_set_rbtree: narrow down range completion to anonymous sets
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 87bc7b530312842a2049d32d2f57fbd94d39a4e43e291070b31c8b6950ab6bf1
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record