CVE-2026-139167: Linux kernel accepts a one-entry RPS flow table and then indexes it with a 32-bit shift

ByLinuxtastic

December 2, 2026 #CVE, #Linux Kernel

Receive Flow Steering keeps a per-queue table that maps packet hashes to the CPU that last handled each flow, sized by writing a count to /sys/class/net/<dev>/queues/rx-<n>/rps_flow_cnt. The kernel CNA record says the sysfs handler “accepts rps_flow_cnt == 1”, and for a one-entry table the mask comes out as zero, so the lookup on the packet path “calls rfs_slot() -> hash_32(hash, rps_tag_to_log(tag_ptr)) with log == 0”, a shift by 32 that C leaves undefined and that in practice “yields the full 32-bit hash, which is used to index the one-entry rps_dev_flow[] table unchecked”. Every packet steered through that queue then reads and writes kernel memory at a hash-chosen offset. Red Hat rates it Important at 7.8 as a local escalation for a user with network management rights. Check that no queue has rps_flow_cnt set to 1, and upgrade to 6.18.66, 7.3.6 or later; kernels before 6.15 are not affected.

CVE-2026-139167 at a glance.

ComponentLinux kernel, networking core sysfs (net/core/net-sysfs.c, store_rps_dev_flow_table_cnt()) with the out-of-bounds access in get_rps_cpu() on the receive path; built into every kernel with CONFIG_RPS
Affected versionsfrom f3483c8e1da6, the commit that packed the table size into a tagged pointer: 6.15 up to 6.18 before 6.18.66 and 7.3 before 7.3.6, and 7.4 before 7.4-rc1; the 5.10, 5.15, 6.1, 6.6 and 6.12 series are not affected
Fixed inmainline 7.4-rc1 (commit 24927bdf, “reject a one-entry RPS flow table”: the handler now requires at least two entries) and stable 6.18.66, 7.3.6; three commits in the record
SeverityRed Hat Important, CVSS 3.1 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, draft, CWE-787), bug 2587219 “out-of-bounds memory access via single-entry RPS flow table configuration”; the kernel CNA gives no score and NVD (Received, 30 November) carries none; Ubuntu Medium; SUSE could not be read on 2 December 2026
Exploited in the wildNot on the CISA KEV catalogue (2026.11.30). EPSS 0.00198 (10th percentile) on 1 December 2026
Who is exposedHosts on an affected kernel where something writes 1 to a queue’s rps_flow_cnt. The file is writable by root only, so the trigger is a privileged account or a tuning script, which is why Red Hat’s statement starts “a local user with network management privileges” and notes that standard installations do not configure single-entry tables. Once the value is set, every packet on that queue performs the out-of-bounds access, so a misconfiguration is as dangerous as an attacker, and a container or tuning daemon granted write access to the queue sysfs tree is the realistic escalation path
PublishedCVE record 30 November 2026 (kernel CNA); this page built 2 December 2026, last updated 2 December 2026

What it is

RFS tables are power-of-two sized. The sysfs handler rounds the requested count up to the next power of two, derives a mask, and since 6.15 stores the table’s size as a log-2 value packed into the low bits of the table pointer so that the receive path can find both with one load. The record’s point is what happens at the bottom of the range: for a count of one “the round-up loop leaves mask == 0, which is stored as log == 0 in the tag”. A log of zero is not a one-entry table to the lookup code; it is a zero-bit index, and hash_32() computes __hash_32(val) >> (32 - bits), a shift by 32 on a 32-bit type.

UBSAN flags that shift as undefined, and on the architectures that matter it returns the hash unchanged, so the slot index is the full 32-bit flow hash and the table has one entry. get_rps_cpu() then reads rflow->cpu from that slot and writes last_qtail back to it, out of bounds “on the packet path”: an attacker who can send traffic to the interface chooses the hash, through the flow’s addresses and ports, and so chooses the offset of a kernel memory read and a kernel memory write on every packet. That is the combination the Important rating rests on, even though the configuration step needs root.

The fix in net/core/net-sysfs.c rejects a count of one, so the smallest table is two entries and the log is never zero. git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message.

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. The code is in every kernel from 6.15; only a one-entry table exercises it.

DistributionStatusFixed package
AlpineNot consulted for this page—
DebianNot affected in bookworm (6.1.192-3) and trixie (6.12.118-1): “vulnerable code not present”; forky and sid (7.3.6-1) fixed; no DSAunstable 7.3.6-1
UbuntuMedium; the linux package is needs evaluation on every release from 14.04 to 26.10 on 2 December 2026, nothing released; by the record only the 6.15 and later kernels (26.04, 26.10 and the newer HWE series) are in rangenothing on 2 December 2026
RHEL, Rocky, Alma, CentOS StreamImportant, 7.8 (bug 2587219, CWE-787), but kernel and kernel-rt are not affected in RHEL 6 to 10 and every OpenShift RHCOS image—
openSUSE/SLENot consulted: suse.com refused the automated reader on 2 December 2026 (client error)—
Fedora, Arch; self-built kernelsNot consulted; upstream stable versions apply. Anything on 6.14 or earlier is outside the range6.18.66 / 7.3.6 or later

How to check

Is the kernel in range, does any queue already have a one-entry table, and who can write to the queue sysfs files. The second check is the one that tells you whether the machine is corrupting memory right now.

# 1. the running kernel: affected from 6.15, fixed in 6.18.66, 7.3.6 or later
uname -r

# 2. is any receive queue configured with a one-entry flow table (the trigger)
grep -H '^1$' /sys/class/net/*/queues/rx-*/rps_flow_cnt 2>/dev/null || echo "no one-entry RPS flow table"
# for reference: what is set, and the global limit RFS tuning scripts usually set alongside it
grep -Hv '^0$' /sys/class/net/*/queues/rx-*/rps_flow_cnt 2>/dev/null
sysctl net.core.rps_sock_flow_entries

# 3. who can write the queue sysfs files (root by default; look for ACLs or a mounted /sys in containers)
ls -l /sys/class/net/eth0/queues/rx-0/rps_flow_cnt
grep -rl 'rps_flow_cnt' /etc/udev/rules.d /etc/tuned /etc/sysfs.d /etc/rc.local 2>/dev/null

A kernel before 6.15 is not affected whatever the files say. On an affected kernel, a 1 anywhere in step 2 means every packet on that queue is already doing the out-of-bounds read and write: set it to 0 or to a real size at once. Zero everywhere means the bug is dormant until something writes a one, and step 3 says who could; the usual sources are an RFS tuning snippet that divides rps_sock_flow_entries by the queue count and rounds badly, or an orchestration layer that lets a privileged container tune its own interface.

How to fix it

Update the kernel and reboot. The interim is entirely in configuration: make sure nothing sets a one-entry table, and correct any that exists.

# Immediate: replace any one-entry table with a sensible size (or 0 to disable RFS on that queue)
for f in /sys/class/net/*/queues/rx-*/rps_flow_cnt; do [ "$(cat $f)" = 1 ] && echo 4096 > $f; done
# a tuning script should size each queue as rps_sock_flow_entries / queue count, never below 2
sysctl -w net.core.rps_sock_flow_entries=32768
# Debian forky / sid (7.3.6-1) carry the fix; bookworm and trixie are not affected
apt update && apt install linux-image-amd64 && systemctl reboot
# Ubuntu: needs evaluation on 2 December 2026; once the linux package is released
apt update && apt install linux-generic && systemctl reboot
# RHEL / Rocky / Alma: not affected; nothing to do

What not to do: do not respond by disabling RFS fleet-wide on hosts that were tuned to use it; the bug is the value one, and any other size is safe on every kernel. Do not treat the root-only sysfs file as making this unexploitable: the write is a one-off configuration step, after which the memory corruption is driven by network traffic from anyone who can reach the interface, which is the reason the score is High for integrity and availability rather than a configuration note.

Sources

  • CVE-2026-139167 at CVE.org — the kernel CNA record: the mask and log arithmetic, the UBSAN shift report, the out-of-bounds read and write on the packet path, the version ranges (30 November 2026)
  • Fix commit 24927bdf (mainline 7.4-rc1, the commit Debian cites) and the stable backports 8ddc9a08, cc400209; git.kernel.org refuses automated readers, so the diff is described from the CNA’s copy of the commit message
  • NVD entry — Received on 30 November 2026; no CVSS metric, CWE or CPE on 2 December 2026
  • Distribution trackers: Debian (bookworm and trixie not affected, unstable fixed in 7.3.6-1) · Red Hat (Important 7.8, bug 2587219, CWE-787; every RHEL kernel not affected; the statement on network management privileges and default configuration) · Ubuntu (Medium, needs evaluation; read from the HTML page, the JSON endpoint refused) · SUSE (refused the automated reader on 2 December 2026)
  • CISA KEV catalogue 2026.11.30, not listed · EPSS 0.00198 (percentile 0.101) on 1 December 2026

Related reading

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.