{"id":"CVE-2026-139167","aliases":["CVE-2026-139167"],"related":[],"kind":"vulnerability","state":"published","title":"net-sysfs: reject a one-entry RPS flow table","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet-sysfs: reject a one-entry RPS flow table\n\nstore_rps_dev_flow_table_cnt() accepts rps_flow_cnt == 1.  For count == 1\nthe round-up loop leaves mask == 0, which is stored as log == 0 in the\ntag (tag_ptr |= ilog2(mask) + 1).  get_rps_cpu() then calls\nrfs_slot() -> hash_32(hash, rps_tag_to_log(tag_ptr)) with log == 0:\n\n  include/linux/hash.h:68\n\treturn __hash_32(val) >> (32 - bits);   /* bits == 0 -> shift by 32 */\n\nThe shift by 32 is undefined and yields the full 32-bit hash, which is\nused to index the one-entry rps_dev_flow[] table unchecked:\n\n  UBSAN: shift-out-of-bounds in ./include/linux/hash.h:68:24\n  shift exponent 32 is too large for 32-bit type 'unsigned int'\n   __ubsan_handle_shift_out_of_bounds+0x11c/0x208\n   get_rps_cpu+0x12fc/0x1344\n   netif_rx_internal+0x1e0/0x4d4\n\nrps_dev_flow[] is then read (rflow->cpu) and written (last_qtail) out of\nbounds on the packet path.  Require at least two entries.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet-sysfs: reject a one-entry RPS flow table\n\nstore_rps_dev_flow_table_cnt() accepts rps_flow_cnt == 1.  For count == 1\nthe round-up loop leaves mask == 0, which is stored as log == 0 in the\ntag (tag_ptr |= ilog2(mask) + 1).  get_rps_cpu() then calls\nrfs_slot() -> hash_32(hash, rps_tag_to_log(tag_ptr)) with log == 0:\n\n  include/linux/hash.h:68\n\treturn __hash_32(val) >> (32 - bits);   /* bits == 0 -> shift by 32 */\n\nThe shift by 32 is undefined and yields the full 32-bit hash, which is\nused to index the one-entry rps_dev_flow[] table unchecked:\n\n  UBSAN: shift-out-of-bounds in ./include/linux/hash.h:68:24\n  shift exponent 32 is too large for 32-bit type 'unsigned int'\n   __ubsan_handle_shift_out_of_bounds+0x11c/0x208\n   get_rps_cpu+0x12fc/0x1344\n   netif_rx_internal+0x1e0/0x4d4\n\nrps_dev_flow[] is then read (rflow->cpu) and written (last_qtail) out of\nbounds on the packet path.  Require at least two entries.","source":"cvelist"}],"published":"2026-11-30T13:32:12.125Z","modified":"2026-11-30T14:18:35.653Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f3483c8e1da62993fe0f57af23b925de7661adaa","fixed":"8ddc9a086da47489e7ca60a479782d1873b96f9e","status":"affected"},{"type":"git","introduced":"f3483c8e1da62993fe0f57af23b925de7661adaa","fixed":"cc4002090acfe2d3662b919c89b01bac3764b05a","status":"affected"},{"type":"git","introduced":"f3483c8e1da62993fe0f57af23b925de7661adaa","fixed":"24927bdf0f62f63470a065c21d80fff7e4e9f207","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.15","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.15","status":"unaffected"},{"type":"semver","introduced":"6.18.66","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/8ddc9a086da47489e7ca60a479782d1873b96f9e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cc4002090acfe2d3662b919c89b01bac3764b05a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/24927bdf0f62f63470a065c21d80fff7e4e9f207","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139167","url":"https://www.cve.org/CVERecord?id=CVE-2026-139167","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:12.125Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139167","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139167","licence":"Public domain","modified":"2026-11-30T14:18:35.653Z"}],"updatedAt":"2026-11-30T14:32:46.150Z","epss":{"score":0.00198,"percentile":0.10117,"date":"2026-12-01T12:00:22.000Z"}}