{"id":"CVE-2026-139695","state":"PUBLISHED","title":"wifi: wfx: fix use-after-free of the cooling work on device removal","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wfx: fix use-after-free of the cooling work on device removal\n\nWhen the device reports that it is too hot, wfx_suspend_hot_dev() blocks\nthe Tx queues and arms cooling_timeout_work with a 10s delay. If the\ndevice recovers a normal temperature before the delay expires, the work\nis canceled. Else, the work declares the chip frozen and unblocks the Tx\nqueues.\n\nHowever, this work is never canceled when the device is removed.\ncooling_timeout_work is queued on the system workqueue, while struct\nwfx_dev is released by wfx_free_common() (through ieee80211_free_hw()).\nSo, if the device is unbound during this 10s window, the work fires\nafter struct wfx_dev has been freed and dereferences it.\n\nCancel the work during the teardown. It has to be done after\nwfx_bh_unregister(): the \"device too hot\" indication is processed by the\nbh, so canceling the work earlier would allow the bh to rearm it. On the\nother hand, the work calls wfx_tx_unlock(), which may in turn call\nwfx_bh_request_tx(). So it has to be canceled before bh_wq is destroyed.\n\nNote that the Tx queues are intentionally left blocked: the device is\ngoing away, so there is nothing to unblock.\n\nThe issue was reported by the Sashiko review bot and the fix has been\nwritten by Copilot (including the commit log). The use-case is difficult\nto reproduce, so this code has not been tested. However, I don't believe\nthis patch could cause any regression.","publishedAt":"2026-11-30T13:37:07.454Z","updatedAt":"2026-11-30T13:37:07.454Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"e7ed604396e274f0e88576cf570bb9428b25e002","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"d7b2899be9b8d0205f32d4982dcc862bf1a25c43","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"7f707686e6c33085727efa3d06b1d032ced70c16","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"2685883657ae157ceb6ef961da6075e8e21e9f8f","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"5435c507d45de6930e9754ce7b66a51b242741e7","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"17402a869778f6c17b88fd360d7a96378779f97c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/silabs/wfx/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","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":["drivers/net/wireless/silabs/wfx/main.c"]}],"references":["https://git.kernel.org/stable/c/e7ed604396e274f0e88576cf570bb9428b25e002","https://git.kernel.org/stable/c/d7b2899be9b8d0205f32d4982dcc862bf1a25c43","https://git.kernel.org/stable/c/7f707686e6c33085727efa3d06b1d032ced70c16","https://git.kernel.org/stable/c/2685883657ae157ceb6ef961da6075e8e21e9f8f","https://git.kernel.org/stable/c/5435c507d45de6930e9754ce7b66a51b242741e7","https://git.kernel.org/stable/c/17402a869778f6c17b88fd360d7a96378779f97c"],"weaknesses":[],"ingestedAt":"2026-11-30T13:54:04.526Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139695.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139695","state":"PUBLISHED","datePublished":"2026-11-30T13:37:07.454Z","dateUpdated":"2026-11-30T13:37:07.454Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.948Z"},"containers":{"cna":{"title":"wifi: wfx: fix use-after-free of the cooling work on device removal","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: wfx: fix use-after-free of the cooling work on device removal\n\nWhen the device reports that it is too hot, wfx_suspend_hot_dev() blocks\nthe Tx queues and arms cooling_timeout_work with a 10s delay. If the\ndevice recovers a normal temperature before the delay expires, the work\nis canceled. Else, the work declares the chip frozen and unblocks the Tx\nqueues.\n\nHowever, this work is never canceled when the device is removed.\ncooling_timeout_work is queued on the system workqueue, while struct\nwfx_dev is released by wfx_free_common() (through ieee80211_free_hw()).\nSo, if the device is unbound during this 10s window, the work fires\nafter struct wfx_dev has been freed and dereferences it.\n\nCancel the work during the teardown. It has to be done after\nwfx_bh_unregister(): the \"device too hot\" indication is processed by the\nbh, so canceling the work earlier would allow the bh to rearm it. On the\nother hand, the work calls wfx_tx_unlock(), which may in turn call\nwfx_bh_request_tx(). So it has to be canceled before bh_wq is destroyed.\n\nNote that the Tx queues are intentionally left blocked: the device is\ngoing away, so there is nothing to unblock.\n\nThe issue was reported by the Sashiko review bot and the fix has been\nwritten by Copilot (including the commit log). The use-case is difficult\nto reproduce, so this code has not been tested. However, I don't believe\nthis patch could cause any regression."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"e7ed604396e274f0e88576cf570bb9428b25e002","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"d7b2899be9b8d0205f32d4982dcc862bf1a25c43","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"7f707686e6c33085727efa3d06b1d032ced70c16","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"2685883657ae157ceb6ef961da6075e8e21e9f8f","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"5435c507d45de6930e9754ce7b66a51b242741e7","versionType":"git"},{"version":"1d52d29983e5daa18c441feed94259aaf03c582c","status":"affected","lessThan":"17402a869778f6c17b88fd360d7a96378779f97c","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/wireless/silabs/wfx/main.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.8","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.8","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":["drivers/net/wireless/silabs/wfx/main.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/e7ed604396e274f0e88576cf570bb9428b25e002"},{"url":"https://git.kernel.org/stable/c/d7b2899be9b8d0205f32d4982dcc862bf1a25c43"},{"url":"https://git.kernel.org/stable/c/7f707686e6c33085727efa3d06b1d032ced70c16"},{"url":"https://git.kernel.org/stable/c/2685883657ae157ceb6ef961da6075e8e21e9f8f"},{"url":"https://git.kernel.org/stable/c/5435c507d45de6930e9754ce7b66a51b242741e7"},{"url":"https://git.kernel.org/stable/c/17402a869778f6c17b88fd360d7a96378779f97c"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:37:07.454Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.8","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}