{"id":"CVE-2026-139167","state":"PUBLISHED","title":"net-sysfs: reject a one-entry RPS flow table","description":"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.","publishedAt":"2026-11-30T13:32:12.125Z","updatedAt":"2026-11-30T13:32:12.125Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f3483c8e1da62993fe0f57af23b925de7661adaa","status":"affected","lessThan":"8ddc9a086da47489e7ca60a479782d1873b96f9e","versionType":"git"},{"version":"f3483c8e1da62993fe0f57af23b925de7661adaa","status":"affected","lessThan":"cc4002090acfe2d3662b919c89b01bac3764b05a","versionType":"git"},{"version":"f3483c8e1da62993fe0f57af23b925de7661adaa","status":"affected","lessThan":"24927bdf0f62f63470a065c21d80fff7e4e9f207","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net-sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net-sysfs.c"]}],"references":["https://git.kernel.org/stable/c/8ddc9a086da47489e7ca60a479782d1873b96f9e","https://git.kernel.org/stable/c/cc4002090acfe2d3662b919c89b01bac3764b05a","https://git.kernel.org/stable/c/24927bdf0f62f63470a065c21d80fff7e4e9f207"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139167.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139167","state":"PUBLISHED","datePublished":"2026-11-30T13:32:12.125Z","dateUpdated":"2026-11-30T13:32:12.125Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"net-sysfs: reject a one-entry RPS flow table","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f3483c8e1da62993fe0f57af23b925de7661adaa","status":"affected","lessThan":"8ddc9a086da47489e7ca60a479782d1873b96f9e","versionType":"git"},{"version":"f3483c8e1da62993fe0f57af23b925de7661adaa","status":"affected","lessThan":"cc4002090acfe2d3662b919c89b01bac3764b05a","versionType":"git"},{"version":"f3483c8e1da62993fe0f57af23b925de7661adaa","status":"affected","lessThan":"24927bdf0f62f63470a065c21d80fff7e4e9f207","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net-sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.15","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/net-sysfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8ddc9a086da47489e7ca60a479782d1873b96f9e"},{"url":"https://git.kernel.org/stable/c/cc4002090acfe2d3662b919c89b01bac3764b05a"},{"url":"https://git.kernel.org/stable/c/24927bdf0f62f63470a065c21d80fff7e4e9f207"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:12.125Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.15","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}