{"id":"CVE-2026-139179","state":"PUBLISHED","title":"net: xps: bound the cleanup loop by the old map's num_tc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: xps: bound the cleanup loop by the old map's num_tc\n\n__netif_set_xps_queue() walks the OLD dev_maps to free its entries.  The\nper-row trip count uses the NEW num_tc while the row stride uses the OLD\ndev_maps->num_tc, so when dev->num_tc was raised without rebuilding the\nXPS map the last row indexes attr_map[] past the allocation:\n\n  BUG: KASAN: slab-out-of-bounds in __netif_set_xps_queue+0x1458/0x1ee8\n  Read of size 8 at addr ffff000014f69458 by task insmod/112\n\nThe loop frees entries in dev_maps, so both the trip count and the stride\nmust come from dev_maps->num_tc.  The map is sized\nXPS_CPU_DEV_MAPS_SIZE(old num_tc)/XPS_RXQ_DEV_MAPS_SIZE(old num_tc, ...),\nso iterating the new (larger) num_tc reads past the end.","publishedAt":"2026-11-30T13:32:18.668Z","updatedAt":"2026-11-30T13:32:18.668Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"83c934f19095aefe5fe194c3061a2c5209052da8","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"709cd45ffaccd908b8fe55e187d27385dee18cbb","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"8278c52cceeaf5a2aee1c136f52f4f952e07477e","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"a41ea4632f8e471880a938506e2532e648c72cb2","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"67efd20563fcf0284cee7d4b3cd16bee90f59c7d","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"540c49f4cf0c62bbd4c56ceed0873b8ed7251400","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"6d5a2cb0b7d6caf170d37ae7ac74738d592d2a05","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","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/dev.c"]}],"references":["https://git.kernel.org/stable/c/83c934f19095aefe5fe194c3061a2c5209052da8","https://git.kernel.org/stable/c/709cd45ffaccd908b8fe55e187d27385dee18cbb","https://git.kernel.org/stable/c/8278c52cceeaf5a2aee1c136f52f4f952e07477e","https://git.kernel.org/stable/c/a41ea4632f8e471880a938506e2532e648c72cb2","https://git.kernel.org/stable/c/67efd20563fcf0284cee7d4b3cd16bee90f59c7d","https://git.kernel.org/stable/c/540c49f4cf0c62bbd4c56ceed0873b8ed7251400","https://git.kernel.org/stable/c/6d5a2cb0b7d6caf170d37ae7ac74738d592d2a05"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139179.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139179","state":"PUBLISHED","datePublished":"2026-11-30T13:32:18.668Z","dateUpdated":"2026-11-30T13:32:18.668Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.918Z"},"containers":{"cna":{"title":"net: xps: bound the cleanup loop by the old map's num_tc","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: xps: bound the cleanup loop by the old map's num_tc\n\n__netif_set_xps_queue() walks the OLD dev_maps to free its entries.  The\nper-row trip count uses the NEW num_tc while the row stride uses the OLD\ndev_maps->num_tc, so when dev->num_tc was raised without rebuilding the\nXPS map the last row indexes attr_map[] past the allocation:\n\n  BUG: KASAN: slab-out-of-bounds in __netif_set_xps_queue+0x1458/0x1ee8\n  Read of size 8 at addr ffff000014f69458 by task insmod/112\n\nThe loop frees entries in dev_maps, so both the trip count and the stride\nmust come from dev_maps->num_tc.  The map is sized\nXPS_CPU_DEV_MAPS_SIZE(old num_tc)/XPS_RXQ_DEV_MAPS_SIZE(old num_tc, ...),\nso iterating the new (larger) num_tc reads past the end."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"83c934f19095aefe5fe194c3061a2c5209052da8","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"709cd45ffaccd908b8fe55e187d27385dee18cbb","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"8278c52cceeaf5a2aee1c136f52f4f952e07477e","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"a41ea4632f8e471880a938506e2532e648c72cb2","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"67efd20563fcf0284cee7d4b3cd16bee90f59c7d","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"540c49f4cf0c62bbd4c56ceed0873b8ed7251400","versionType":"git"},{"version":"255c04a87f4381849fce9ed81e5efabf78a71a30","status":"affected","lessThan":"6d5a2cb0b7d6caf170d37ae7ac74738d592d2a05","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/core/dev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.13","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.13","versionType":"semver"},{"version":"5.15.226","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","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/dev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/83c934f19095aefe5fe194c3061a2c5209052da8"},{"url":"https://git.kernel.org/stable/c/709cd45ffaccd908b8fe55e187d27385dee18cbb"},{"url":"https://git.kernel.org/stable/c/8278c52cceeaf5a2aee1c136f52f4f952e07477e"},{"url":"https://git.kernel.org/stable/c/a41ea4632f8e471880a938506e2532e648c72cb2"},{"url":"https://git.kernel.org/stable/c/67efd20563fcf0284cee7d4b3cd16bee90f59c7d"},{"url":"https://git.kernel.org/stable/c/540c49f4cf0c62bbd4c56ceed0873b8ed7251400"},{"url":"https://git.kernel.org/stable/c/6d5a2cb0b7d6caf170d37ae7ac74738d592d2a05"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:18.668Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.13","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}