nftables interval sets are stored in a red-black tree of start and end elements. Kernel 7.0’s “use binary search array in get command” change (2aa34191f06f, backported to 6.18.14 and 6.19.4) added an optimisation for anonymous sets: when two ranges are adjacent, the first range’s end element is not stored and the next range’s start element is used to complete the interval. The kernel CNA record says the optimisation was applied too broadly, and quotes the reporter, Jérémy Jean: with “keys 10-19 accept packets, and keys 30-39 jump to chain ‘victim'”, if you “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”, and after garbage collection releases the expired element KASAN reports a slab use-after-free in nft_verdict_dump. The fix narrows the completion to anonymous sets. The CNA scores it 7.1; Red Hat 7.8 Important as a local privilege escalation. On kernels 7.0 and later, 6.18.14 to 6.18.64 and 6.19.4 onward, upgrade to 6.18.65, 7.3.6 or later; hosts that allow unprivileged user namespaces should treat it as reachable by any local user.
CVE-2026-139280 at a glance.
| Component | Linux kernel, nftables rbtree set backend (net/netfilter/nft_set_rbtree.c): the interval-completion step in nft_rbtree_commit() |
| Affected versions | from 2aa34191f06f (“netfilter: nft_set_rbtree: use binary search array in get command”): 7.0 up to 7.3 before 7.3.6 and 7.4 before 7.4-rc1, plus the stable series that took that commit, 6.18.14 up to 6.18 before 6.18.65 and 6.19.4 onward (6.19 is end of life). Kernels before 6.18.14, and 6.18.x without the backport, do not have the code; Debian marks bookworm (6.1) and trixie (6.12) not affected |
| Fixed in | mainline 7.4-rc1 (commit 86d47d4c, Pablo Neira Ayuso, authored 7 October 2026; net/netfilter/nft_set_rbtree.c +2/−1) and stable 6.18.65, 7.3.6. The change puts nft_set_is_anonymous(set) && in front of the existing interval-start and next-element tests in the commit path, so a named set never treats a following start element as the end of the preceding interval. Fixes 2aa34191f06f; reported by Jérémy Jean (ANSSI) |
| Severity | Kernel CNA CVSS 3.1 7.1 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H); NVD shows the CNA metric only; Red Hat Important, 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-825 expired pointer dereference), bug 2586946 “privilege escalation via use-after-free in netfilter nft_set_rbtree”; Ubuntu not consulted (its page refused the automated reader) |
| Exploited in the wild | Not on the CISA KEV catalogue (2026.11.30). EPSS 0.00174 (7th percentile) on 1 December 2026 |
| Who is exposed | A host on an affected kernel where someone can create and edit nftables named interval sets. Root can always do that; Red Hat points out that where unprivileged user namespaces are allowed, “often enabled for rootless containers”, an ordinary local user gets CAP_NET_ADMIN in a namespace of their own and can drive the same code, which is what makes it a local privilege escalation rather than an administrator’s own foot-gun |
| Published | CVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026 |
What it is
An interval set stores each range as a start element and an end element and answers a lookup by finding the nearest boundary at or below the key. Anonymous sets, the ones the nft front end creates inline for a single rule, are immutable once loaded, so 7.0 could pack them: if range A ends exactly where range B begins, A’s end element is left out and B’s start does double duty. That is safe only because an anonymous set never changes after commit.
Named sets do change, element by element, and the record’s scenario is the ordinary case of deleting one. A verdict map with 10-19 accept and 30-39 jump to victim loses its end marker at 20; the completion logic now believes 10-19 ends at element 30 and a lookup for 15 returns element 30, carrying a jump verdict and a pointer to the victim chain. That is already a firewall-logic bug, because packets in 10-19 take the wrong verdict. The memory-safety bug follows: when element 30 expires or is removed and the set’s garbage collector frees it, the range for 10-19 still refers to it, and the next dump or lookup reads freed memory. KASAN shows the read in nft_verdict_dump under a nft list-style netlink dump, with the free in nf_tables_trans_destroy_work.
Pablo Neira Ayuso’s fix, authored on 7 October 2026 after Jérémy Jean’s report from ANSSI, adds a leading nft_set_is_anonymous(set) && to the completion condition in nft_rbtree_commit(): two lines in, one out. Named sets keep their explicit end elements and deleting one behaves as it always did. Red Hat’s 7.8 differs from the CNA’s 7.1 on integrity, since a dangling verdict pointer in a firewall is a route to code execution as well as a crash; both agree the attacker is local with low privileges.
Who is affected on Linux
Each row is what the distribution’s own security tracker said on 2 December 2026; the link in the row is the tracker page, which will be newer than this one. Only kernels that carry the 7.0 binary-search-array commit have the bug: 7.x, 6.18.14 onward and 6.19.4 onward. Every long-term series a distribution ships for its stable releases predates it, which is why Debian marks both its stable kernels not affected and Red Hat lists only RHEL 10 as affected.
| Distribution | Status | Fixed package |
|---|---|---|
| Alpine | Not consulted for this page: the Alpine tracker refused the automated reader on 2 December 2026 | — |
| Debian | bookworm (6.1.x) and trixie (6.12.x) not affected (“vulnerable code not present”); fixed in forky and sid (7.3.6-1); no DSA | unstable 7.3.6-1 |
| Ubuntu | Not consulted for this page: ubuntu.com refused the automated reader on 2 December 2026 (the bulk list on run 18 onward and this page twice); the Ubuntu priority is not stated here | — |
| RHEL, Rocky, Alma, CentOS Stream | Important, 7.8 (bug 2586946, CWE-825); kernel affected in RHEL 10; RHEL 6, 7, 8 and 9 and every OpenShift RHCOS image not affected; no errata on 2 December 2026 | — |
| openSUSE/SLE | Not consulted: suse.com refused the automated reader on 2 December 2026 (client error) | — |
| Fedora, Arch; self-built kernels | Not consulted; upstream stable versions apply (Arch and Fedora ship 6.18/7.x kernels) | 6.18.65 / 7.3.6 or later |
How to check
The kernel version settles most hosts, since only 7.x and the two patched stable series have the code. On an affected kernel the next questions are whether named interval sets or verdict maps exist, and whether unprivileged users can create network namespaces.
# 1. the running kernel: affected 7.0 to 7.3.5, 6.18.14 to 6.18.64, 6.19.4+; fixed in 6.18.65, 7.3.6 or later
uname -r
# 2. named interval sets and maps in the live ruleset (anonymous sets are not the problem)
nft -a list ruleset 2>/dev/null | grep -nE '^\s+(set|map) .*\{|flags interval|type .* : verdict'
# 3. can an unprivileged user reach nftables through a user namespace
sysctl user.max_user_namespaces kernel.unprivileged_userns_clone 2>/dev/null
sysctl kernel.apparmor_restrict_unprivileged_userns 2>/dev/nullA kernel outside the ranges above does not contain the completion code and the page does not apply. On an affected kernel, any named set with flags interval that is edited over time is subject to the firewall-logic error, and if user.max_user_namespaces is non-zero and nothing (AppArmor on Ubuntu, a sysctl elsewhere) restricts unprivileged namespaces, an ordinary user can create their own table and set to reach the use-after-free without touching the host’s firewall.
How to fix it
Update the kernel and reboot; nftables state is reloaded from the ruleset file on boot. Until then, restricting unprivileged user namespaces removes the ordinary-user route, at the cost of rootless containers and sandboxes that rely on them; administrators editing their own named interval sets should avoid deleting end elements of adjacent ranges until the fix is in.
# Debian forky / sid (7.3.6-1 carries the fix); trixie and bookworm: watch the tracker row above
apt update && apt install linux-image-amd64 && systemctl reboot# RHEL 10 (the only RHEL release that carries the code): no errata yet on 2 December 2026; when the advisory lands
dnf update kernel && systemctl reboot# Arch / Fedora / self-built: move to a fixed upstream release
# (see "Fixed in" above), then reboot
uname -r# Interim: keep unprivileged users out of their own network namespaces (breaks rootless Podman/Docker, bubblewrap sandboxes)
sysctl -w user.max_user_namespaces=0
# Ubuntu-style AppArmor restriction instead, where available
sysctl -w kernel.apparmor_restrict_unprivileged_userns=1Restricting user namespaces is the mitigation Red Hat’s statement points at, and it is a blunt one: rootless containers stop working, so it is a choice for hosts where unprivileged users are not expected to run them. What not to do: do not convert named sets to anonymous ones to dodge the bug; anonymous sets cannot be edited and the issue is the packing being applied to named sets, which the two-line fix corrects. The firewall-logic effect, packets in one range taking another range’s verdict, is reason enough to patch even where no untrusted local users exist.
Sources
- CVE-2026-139280 at CVE.org — the kernel CNA record: Jérémy Jean’s 10-19 / 30-39 example, the “INTERVAL_END query for key 15 returns element 30” sentence, the KASAN report, the 7.0 lower bound with the 6.18.14 and 6.19.4 backport ranges, and the git ranges (30 November 2026)
- Fix commit 86d47d4c (mainline, 7.4-rc1; Pablo Neira Ayuso, 7 October 2026;
net/netfilter/nft_set_rbtree.c+2/−1; Fixes 2aa34191f06f, Reported-by Jérémy Jean) and the 6.18 and 6.19 stable backports in the record (read as the GitHub patch view on 2 December 2026; git.kernel.org refuses automated readers) - NVD entry — Received on 30 November 2026; shows the CNA’s metric as its only score, no NVD score or CWE on 2 December 2026
- Distribution trackers: Debian (bookworm and trixie not affected, forky and sid fixed in 7.3.6-1) · Ubuntu (refused the automated reader on 2 December 2026) · Red Hat (Important 7.8, bug 2586946, CWE-825, RHEL 10 affected only, statement on unprivileged user namespaces) · SUSE and Alpine (both refused the automated reader on 2 December 2026)
- CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00174 (percentile 0.072) on 1 December 2026
Related reading
- CVE-2026-139281: Linux kernel conntrack miscomputes an IPv6 next-header offset — netfilter’s Critical-rated entry from the same day
- CVE-2026-100026: Linux kernel nft reject on ingress overflows the stack — another nftables record from the November set
- CVE-2026-139326: Linux kernel XDP devmap returns a page to the wrong pool — a packet-path memory-safety fix from the same day
- CVE-2026-139219: Linux kernel skb dataref wraps at 65,537 clones — the networking use-after-free with the widest reach in this set
- The Kernel — how nftables stores interval sets and why an immutable set can be packed where a mutable one cannot
This advisory page was assembled from the primary sources listed above on 2 December 2026 and is updated when they change. The facts are theirs; the checks and the ordering are ours. If a row in the distribution table is out of date, the tracker link in that row is the current word.

