CVE-2026-139167

net-sysfs: reject a one-entry RPS flow table

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net-sysfs: reject a one-entry RPS flow table

store_rps_dev_flow_table_cnt() accepts rps_flow_cnt == 1. For count == 1
the round-up loop leaves mask == 0, which is stored as log == 0 in the
tag (tag_ptr |= ilog2(mask) + 1). get_rps_cpu() then calls
rfs_slot() -> hash_32(hash, rps_tag_to_log(tag_ptr)) with log == 0:

include/linux/hash.h:68
return __hash_32(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 rps_dev_flow[] 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'
__ubsan_handle_shift_out_of_bounds+0x11c/0x208
get_rps_cpu+0x12fc/0x1344
netif_rx_internal+0x1e0/0x4d4

rps_dev_flow[] is then read (rflow->cpu) and written (last_qtail) out of
bounds on the packet path. Require at least two entries.

Analysis

AI-generated

Technical impact

An unsigned integer shift by 32 bits, undefined behavior, occurs when the kernel stores an RPS flow table with a single entry. The kernel then uses a hash with an out‑of‑range shift, producing the full 32‑bit hash value that is used to index the rps_dev_flow array without bounds checking. This results in an out‑of‑bounds read of the cpu field and an out‑of‑bounds write to last_qtail on the packet path. The flaw can corrupt memory used by network stack processing, potentially allowing a compromised process or a local privileged user to execute arbitrary code or crash the system.

Affected Systems

The issue appears in the Linux kernel for all releases represented by the generic cpe:2.3:o:linux:linux_kernel. No specific version range is listed, implying that any kernel that still accepts an RPS flow table of a single entry is vulnerable until it is patched. The kernel maintainer has confirmed the defect in the net‑sysfs code path.

Risk and Exploitability

Because the bug is triggered by kernel state that can be manipulated by privileged users who configure RPS, the attack surface is limited to systems where a user can modify RPS flow tables. The CVSS score is not provided, and the EPSS score is not available. The vulnerability is not included in the CISA KEV catalogue. Nonetheless, the low‑level nature of the flaw, combined with the possibility of memory corruption, warrants cautious mitigation. A kernel update that removes support for one‑entry tables or corrects the shift logic is the recommended fix.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that includes the net-sysfs RPS flow table safety fix.
  • Until a patch is available, configure the kernel to use at least two entries in the rps_dev_flow table or disable RPS for interfaces that can be targeted by local users.
  • Verify kernel configuration for any custom RPS settings and enforce a minimum table size through configuration or scripts if possible.
  • If a system is running an older kernel, consider applying a local patch or backporting the fix until official updates are released.

Generated by OpenCVE AI on November 30, 2026 at 19:46 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-787
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net-sysfs: reject a one-entry RPS flow table store_rps_dev_flow_table_cnt() accepts rps_flow_cnt == 1. For count == 1 the round-up loop leaves mask == 0, which is stored as log == 0 in the tag (tag_ptr |= ilog2(mask) + 1). get_rps_cpu() then calls rfs_slot() -> hash_32(hash, rps_tag_to_log(tag_ptr)) with log == 0: include/linux/hash.h:68 return __hash_32(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 rps_dev_flow[] 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' __ubsan_handle_shift_out_of_bounds+0x11c/0x208 get_rps_cpu+0x12fc/0x1344 netif_rx_internal+0x1e0/0x4d4 rps_dev_flow[] is then read (rflow->cpu) and written (last_qtail) out of bounds on the packet path. Require at least two entries.
Title net-sysfs: reject a one-entry RPS flow table
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
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM