{"id":"CVE-2024-50235","state":"PUBLISHED","title":"wifi: cfg80211: clear wdev->cqm_config pointer on free","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: clear wdev->cqm_config pointer on free\n\nWhen we free wdev->cqm_config when unregistering, we also\nneed to clear out the pointer since the same wdev/netdev\nmay get re-registered in another network namespace, then\ndestroyed later, running this code again, which results in\na double-free.","publishedAt":"2024-11-09T10:14:45.222Z","updatedAt":"2026-08-05T11:42:40.071Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c797498e860e9a435a651bbf0789433684ce6dd8","status":"affected","lessThan":"ba392e1355ba74b1d4fa11b85f71ab6ed7ecc058","versionType":"git"},{"version":"37c20b2effe987b806c8de6d12978e4ffeff026f","status":"affected","lessThan":"6c44abb2d4c3262737d5d67832daebc8cf48b8c9","versionType":"git"},{"version":"37c20b2effe987b806c8de6d12978e4ffeff026f","status":"affected","lessThan":"64e4c45d23cd7f6167f69cc2d2877bc7f54292e5","versionType":"git"},{"version":"37c20b2effe987b806c8de6d12978e4ffeff026f","status":"affected","lessThan":"d5fee261dfd9e17b08b1df8471ac5d5736070917","versionType":"git"},{"version":"32fb9b7d98c3e586bddfb978d383aa8d2b1211bc","status":"affected","versionType":"git"},{"version":"6.1.57","status":"affected","lessThan":"6.1.116","versionType":"semver"},{"version":"6.5.7","status":"affected","lessThan":"6.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.1.116","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.60","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.7","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/core.c"]}],"references":["https://git.kernel.org/stable/c/ba392e1355ba74b1d4fa11b85f71ab6ed7ecc058","https://git.kernel.org/stable/c/6c44abb2d4c3262737d5d67832daebc8cf48b8c9","https://git.kernel.org/stable/c/64e4c45d23cd7f6167f69cc2d2877bc7f54292e5","https://git.kernel.org/stable/c/d5fee261dfd9e17b08b1df8471ac5d5736070917","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":["CWE-415"],"ingestedAt":"2026-10-29T20:07:56.516Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/50xxx/CVE-2024-50235.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-50235","state":"PUBLISHED","datePublished":"2024-11-09T10:14:45.222Z","dateUpdated":"2026-08-05T11:42:40.071Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-10-21T19:36:19.975Z"},"containers":{"cna":{"title":"wifi: cfg80211: clear wdev->cqm_config pointer on free","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: cfg80211: clear wdev->cqm_config pointer on free\n\nWhen we free wdev->cqm_config when unregistering, we also\nneed to clear out the pointer since the same wdev/netdev\nmay get re-registered in another network namespace, then\ndestroyed later, running this code again, which results in\na double-free."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"c797498e860e9a435a651bbf0789433684ce6dd8","status":"affected","lessThan":"ba392e1355ba74b1d4fa11b85f71ab6ed7ecc058","versionType":"git"},{"version":"37c20b2effe987b806c8de6d12978e4ffeff026f","status":"affected","lessThan":"6c44abb2d4c3262737d5d67832daebc8cf48b8c9","versionType":"git"},{"version":"37c20b2effe987b806c8de6d12978e4ffeff026f","status":"affected","lessThan":"64e4c45d23cd7f6167f69cc2d2877bc7f54292e5","versionType":"git"},{"version":"37c20b2effe987b806c8de6d12978e4ffeff026f","status":"affected","lessThan":"d5fee261dfd9e17b08b1df8471ac5d5736070917","versionType":"git"},{"version":"32fb9b7d98c3e586bddfb978d383aa8d2b1211bc","status":"affected","versionType":"git"},{"version":"6.1.57","status":"affected","lessThan":"6.1.116","versionType":"semver"},{"version":"6.5.7","status":"affected","lessThan":"6.6","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/core.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.1.116","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.60","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.11.7","status":"unaffected","lessThanOrEqual":"6.11.*","versionType":"semver"},{"version":"6.12","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/wireless/core.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ba392e1355ba74b1d4fa11b85f71ab6ed7ecc058"},{"url":"https://git.kernel.org/stable/c/6c44abb2d4c3262737d5d67832daebc8cf48b8c9"},{"url":"https://git.kernel.org/stable/c/64e4c45d23cd7f6167f69cc2d2877bc7f54292e5"},{"url":"https://git.kernel.org/stable/c/d5fee261dfd9e17b08b1df8471ac5d5736070917"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The vulnerability is reached through nl80211/MAC80211_HWSIM generic netlink commands (`NL80211_CMD_SET_CQM`, `NL80211_CMD_SET_WIPHY_NETNS`) issued by a local process. No remote or adjacent network input is needed to create or trigger the double free.\nAC:L - The sequence is deterministic straight-line netlink configuration — set CQM thresholds, move the wiphy to another netns, then unregister again — with no race to win. The attacker also chooses `n_thresholds`, controlling the kmalloc bucket of the freed object and making heap reclaim reliable.\nPR:L - Every required command uses `GENL_UNS_ADMIN_PERM`, i.e. CAP_NET_ADMIN in the socket's user namespace, which an unprivileged user obtains via `unshare -Urn`; `get_net_ns_by_fd()` performs no additional capability check and hwsim radios are created in the caller's own netns.\nUI:N - The attacker performs all steps itself through netlink sockets; no victim action, mount, or file open is required.\nS:U - The corruption is confined to the kernel's own slab allocator and results in kernel-level compromise within the same security authority, with no VM, IOMMU, or sandbox boundary crossed.\nC:H - The double free lets the attacker overlap the freed chunk with a live victim object of a size they control, and the stale pointer is additionally read by `cfg80211_cqm_rssi_notify_work()`/`cfg80211_cqm_rssi_update()`, yielding a use-after-free read that can be escalated to arbitrary kernel memory disclosure.\nI:H - `kfree_rcu()` on the dangling pointer clobbers the first 16 bytes of a reclaimed object with an rcu_head and frees it a second time, and `cfg80211_cqm_rssi_notify()` writes attacker-influenced RSSI values into freed memory — a classic double-free/UAF write primitive leading to arbitrary write and control-flow hijack.\nA:H - A double free corrupts the SLUB freelist, causing immediate slab corruption BUG/KASAN reports and kernel panics, and can be triggered repeatedly by an unprivileged local user."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T11:42:40.071Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.57","versionEndExcluding":"6.1.116"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.60"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.11.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.5.7"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"cvssV3_1":{"scope":"UNCHANGED","version":"3.1","baseScore":7.8,"attackVector":"LOCAL","baseSeverity":"HIGH","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","integrityImpact":"HIGH","userInteraction":"NONE","attackComplexity":"LOW","availabilityImpact":"HIGH","privilegesRequired":"LOW","confidentialityImpact":"HIGH"}},{"other":{"type":"ssvc","content":{"id":"CVE-2024-50235","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2025-10-01T20:16:25.988560Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-415","lang":"en","type":"CWE","description":"CWE-415 Double Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-10-01T20:17:26.957Z"}},{"title":"CVE Program Container","references":[{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T22:27:16.962Z"}}]}}}