{"id":"CVE-2026-139255","state":"PUBLISHED","title":"xsk: freeze deferred pool teardown without blocking unregister","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: freeze deferred pool teardown without blocking unregister\n\nDeferred pool destruction calls ndo_bpf() under RTNL. system_wq is\nnot frozen during system sleep, so that callback can run after a\ndevice has suspended and gated its clocks. Use system_freezable_wq\nso running destruction finishes before device suspend and new work\nwaits until process thaw.\n\nKeep assigned pools visible to NETDEV_UNREGISTER independently of\nthe socket list. A released socket has already left that list, but\nits final pool put can queue destruction after workqueues freeze.\nA resume-time unregister would then wait for a device reference\nwhose release cannot run until the resume completes.\n\nTrack assigned pools per netdev with netdev operations locking and detach\nremaining pools after the notifier socket walk, including copy-mode pools.\nThis also covers leased queues without scanning pools from unrelated\ndevices or network namespaces. Remove the entry on assignment failure and\nnormal teardown. The deferred worker still owns the pool and later observes\nthe cleared device pointer, avoiding a second driver detach or put.\n\nThe lifetime problem was identified by code inspection of the deferred\nrelease and system-sleep paths.","publishedAt":"2026-11-30T13:33:03.357Z","updatedAt":"2026-11-30T13:33:03.357Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"b63d4baaa5b5450f07e85ae36311fbe770e0f43e","versionType":"git"},{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"d20aa0909529597e07b83771a980e070d767c945","versionType":"git"},{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"e20e5f49c083eeba97f5cb14e02f637473c799e2","versionType":"git"},{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"fece8420e76fe53ee84f0439f18d026b4c7641da","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/netdevice.h","include/net/xsk_buff_pool.h","net/xdp/xsk.c","net/xdp/xsk_buff_pool.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","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":["include/linux/netdevice.h","include/net/xsk_buff_pool.h","net/xdp/xsk.c","net/xdp/xsk_buff_pool.c"]}],"references":["https://git.kernel.org/stable/c/b63d4baaa5b5450f07e85ae36311fbe770e0f43e","https://git.kernel.org/stable/c/d20aa0909529597e07b83771a980e070d767c945","https://git.kernel.org/stable/c/e20e5f49c083eeba97f5cb14e02f637473c799e2","https://git.kernel.org/stable/c/fece8420e76fe53ee84f0439f18d026b4c7641da"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139255.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139255","state":"PUBLISHED","datePublished":"2026-11-30T13:33:03.357Z","dateUpdated":"2026-11-30T13:33:03.357Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.923Z"},"containers":{"cna":{"title":"xsk: freeze deferred pool teardown without blocking unregister","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nxsk: freeze deferred pool teardown without blocking unregister\n\nDeferred pool destruction calls ndo_bpf() under RTNL. system_wq is\nnot frozen during system sleep, so that callback can run after a\ndevice has suspended and gated its clocks. Use system_freezable_wq\nso running destruction finishes before device suspend and new work\nwaits until process thaw.\n\nKeep assigned pools visible to NETDEV_UNREGISTER independently of\nthe socket list. A released socket has already left that list, but\nits final pool put can queue destruction after workqueues freeze.\nA resume-time unregister would then wait for a device reference\nwhose release cannot run until the resume completes.\n\nTrack assigned pools per netdev with netdev operations locking and detach\nremaining pools after the notifier socket walk, including copy-mode pools.\nThis also covers leased queues without scanning pools from unrelated\ndevices or network namespaces. Remove the entry on assignment failure and\nnormal teardown. The deferred worker still owns the pool and later observes\nthe cleared device pointer, avoiding a second driver detach or put.\n\nThe lifetime problem was identified by code inspection of the deferred\nrelease and system-sleep paths."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"b63d4baaa5b5450f07e85ae36311fbe770e0f43e","versionType":"git"},{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"d20aa0909529597e07b83771a980e070d767c945","versionType":"git"},{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"e20e5f49c083eeba97f5cb14e02f637473c799e2","versionType":"git"},{"version":"1c1efc2af158869795d3334a12fed2afd9c51539","status":"affected","lessThan":"fece8420e76fe53ee84f0439f18d026b4c7641da","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["include/linux/netdevice.h","include/net/xsk_buff_pool.h","net/xdp/xsk.c","net/xdp/xsk_buff_pool.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","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":["include/linux/netdevice.h","include/net/xsk_buff_pool.h","net/xdp/xsk.c","net/xdp/xsk_buff_pool.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/b63d4baaa5b5450f07e85ae36311fbe770e0f43e"},{"url":"https://git.kernel.org/stable/c/d20aa0909529597e07b83771a980e070d767c945"},{"url":"https://git.kernel.org/stable/c/e20e5f49c083eeba97f5cb14e02f637473c799e2"},{"url":"https://git.kernel.org/stable/c/fece8420e76fe53ee84f0439f18d026b4c7641da"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:33:03.357Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}