CVE-2026-139167: net-sysfs: reject a one-entry RPS flow table
In the Linux kernel, the following vulnerability has been resolved:
net-sysfs: reject a one-entry RPS flow table
storerpsdevflowtablecnt() accepts rpsflowcnt == 1. For count == 1 the round-up loop leaves mask == 0, which is stored as log == 0 in the tag (tagptr |= ilog2(mask) + 1). getrpscpu() then calls rfsslot() -> hash32(hash, rpstagtolog(tagptr)) with log == 0:
include/linux/hash.h:68 return hash32(val) >> (32 - bits); / bits == 0 -> shift by 32 /
The shift by 32 is undefined and yields the full 32-bit hash, which is used to index the one-entry rpsdevflow[] table unchecked:
UBSAN: shift-out-of-bounds in ./include/linux/hash.h:68:24 shift exponent 32 is too large for 32-bit type 'unsigned int' ubsanhandleshiftoutofbounds+0x11c/0x208 getrpscpu+0x12fc/0x1344 netifrxinternal+0x1e0/0x4d4
rpsdevflow[] is then read (rflow->cpu) and written (lastqtail) out of bounds on the packet path. Require at least two entries.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1 - Configuration
Require at least two entries; reject a one-entry RPS flow table.
Linux kernel RPS flow table rps_flow_cnt = at least 2
Event History
Frequently Asked Questions
What configuration is required for this issue to be reachable?
The affected receive packet steering (RPS) flow table must be configured with exactly one entry. The vulnerable sysfs handler accepts an RPS flow count of 1, creating a table whose packet-path indexing can go out of bounds.
Can this be triggered through normal packet processing after the configuration is set?
Yes. Once a one-entry RPS flow table is configured, packet processing can reach get_rps_cpu() and use an unchecked hash-derived index to read from and write to rps_dev_flow[] out of bounds.
What mitigation is available if the fix cannot be applied immediately?
Do not configure an RPS flow table with a count of exactly 1. Use at least two entries, which is the minimum enforced by the resolved change.