{"id":"CVE-2026-139293","state":"PUBLISHED","title":"bpf, cpumap: Hold the device of frames in the queue","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, cpumap: Hold the device of frames in the queue\n\nA frame that is redirected to another CPU waits in the queue of the cpumap\nentry with a plain pointer to the device it came from, and an skb from\ngeneric XDP with skb->dev.  Nothing keeps that device.  Closing and\nunregistering it waits for its NAPI and for RCU, but not for the kthread\nof the entry.  If the kthread is late by more than that, since its CPU is\nbusy with something of a higher priority, it builds skbs for a device that\nhas been freed and hands them to the stack:\n\n  BUG: KASAN: use-after-free in dev_gro_receive+0x1f51/0x2b30\n  Read of size 8 at addr ffff88800a7340b0 by task cpumap/1/map:1/54\n\nTake a reference to the device for each entry of the queue.  The kthread\ncannot drop it at the end of the batch, since its GRO node may keep the skb\nfor longer.  Let it note the devices and drop the references behind a full\nGRO flush, which it does whenever the queue is empty, and from now on also\nwhen it has noted about 2048 of them.\n\nA device whose frames are stuck in a queue is now unregistered only when\nthe kthread has got to them.  RTNL is not held meanwhile, but if the device\ngoes with its network namespace, the cleanup of all namespaces waits.","publishedAt":"2026-11-30T13:33:24.921Z","updatedAt":"2026-11-30T13:33:24.921Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"ca49e768168cb2f7da4a59b3f2005c02855a064e","versionType":"git"},{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"1bcbe066d9cb6176092a60e284568bc1124ae58c","versionType":"git"},{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"0bb45ba23b0e03a68964fafb65b03b8e964a6069","versionType":"git"},{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"f99351272933ba2e1221484a5e53b7a5d2c035f0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/cpumap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.15","versionType":"semver"},{"version":"6.12.120","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":["kernel/bpf/cpumap.c"]}],"references":["https://git.kernel.org/stable/c/ca49e768168cb2f7da4a59b3f2005c02855a064e","https://git.kernel.org/stable/c/1bcbe066d9cb6176092a60e284568bc1124ae58c","https://git.kernel.org/stable/c/0bb45ba23b0e03a68964fafb65b03b8e964a6069","https://git.kernel.org/stable/c/f99351272933ba2e1221484a5e53b7a5d2c035f0"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139293.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139293","state":"PUBLISHED","datePublished":"2026-11-30T13:33:24.921Z","dateUpdated":"2026-11-30T13:33:24.921Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.925Z"},"containers":{"cna":{"title":"bpf, cpumap: Hold the device of frames in the queue","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf, cpumap: Hold the device of frames in the queue\n\nA frame that is redirected to another CPU waits in the queue of the cpumap\nentry with a plain pointer to the device it came from, and an skb from\ngeneric XDP with skb->dev.  Nothing keeps that device.  Closing and\nunregistering it waits for its NAPI and for RCU, but not for the kthread\nof the entry.  If the kthread is late by more than that, since its CPU is\nbusy with something of a higher priority, it builds skbs for a device that\nhas been freed and hands them to the stack:\n\n  BUG: KASAN: use-after-free in dev_gro_receive+0x1f51/0x2b30\n  Read of size 8 at addr ffff88800a7340b0 by task cpumap/1/map:1/54\n\nTake a reference to the device for each entry of the queue.  The kthread\ncannot drop it at the end of the batch, since its GRO node may keep the skb\nfor longer.  Let it note the devices and drop the references behind a full\nGRO flush, which it does whenever the queue is empty, and from now on also\nwhen it has noted about 2048 of them.\n\nA device whose frames are stuck in a queue is now unregistered only when\nthe kthread has got to them.  RTNL is not held meanwhile, but if the device\ngoes with its network namespace, the cleanup of all namespaces waits."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"ca49e768168cb2f7da4a59b3f2005c02855a064e","versionType":"git"},{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"1bcbe066d9cb6176092a60e284568bc1124ae58c","versionType":"git"},{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"0bb45ba23b0e03a68964fafb65b03b8e964a6069","versionType":"git"},{"version":"1c601d829ab0d7ac3ac44853f83db2206afe67fc","status":"affected","lessThan":"f99351272933ba2e1221484a5e53b7a5d2c035f0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["kernel/bpf/cpumap.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.15","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.15","versionType":"semver"},{"version":"6.12.120","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":["kernel/bpf/cpumap.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ca49e768168cb2f7da4a59b3f2005c02855a064e"},{"url":"https://git.kernel.org/stable/c/1bcbe066d9cb6176092a60e284568bc1124ae58c"},{"url":"https://git.kernel.org/stable/c/0bb45ba23b0e03a68964fafb65b03b8e964a6069"},{"url":"https://git.kernel.org/stable/c/f99351272933ba2e1221484a5e53b7a5d2c035f0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:24.921Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.15","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}