CVE-2026-139280

netfilter: nft_set_rbtree: narrow down range completion to anonymous sets

Published Nov 30, 2026 CVSS 3.1 · 7.1 High EPSS n/a KEV · Not listed
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

Analysis

AI-generated

Technical impact

The bug occurs when deleting the end marker of an anonymous set in nft_set_rbtree. The kernel mistakenly uses the next start element as the interval’s end, causing an INTERVAL_END query to return a verdict that belongs to a different range. This results in a use‑after‑free in the nft_verdict_dump path, as evidenced by KASAN tracebacks. The corruption can lead to kernel crashes, data leakage, or potential privilege escalation if an attacker can trigger the flaw.

Affected Systems

The flaw affects the Linux kernel’s netfilter nft_set_rbtree implementation. All Linux distributions running kernel versions prior to the patch that introduced the fix are vulnerable. Specific vendor/product mapping is identified as Linux:Linux. No particular version numbers are supplied in the CNA data.

Risk and Exploitability

The CVSS score is 7.1, indicating a high severity. EPSS score is not available, suggesting limited public exploitation evidence. The bug is not listed in CISA KEV. However, as a kernel‑level use‑after‑free, it is inferred from the description that the vulnerability could be exploitable by a local attacker with privileges sufficient to interact with netfilter or by a remote attacker who can influence packet classification. The lack of an exploit projection does not diminish the criticality of the underlying memory corruption.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the nft_set_rbtree range completion fix
  • Reboot the system to load the updated kernel and modules
  • Configure the firewall to avoid using nft_set_rbtree sets, or disable advanced range lookups until a kernel update is applied

Generated by OpenCVE AI on December 1, 2026 at 08:32 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.1, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H'}

Type Values Removed Values Added
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
Title netfilter: nft_set_rbtree: narrow down range completion to anonymous sets
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:42 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM
Severity
Important
Public date
Nov 30, 2026, 1:33 PM