{"id":"CVE-2022-50413","state":"PUBLISHED","title":"wifi: mac80211: fix use-after-free","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: fix use-after-free\n\nWe've already freed the assoc_data at this point, so need\nto use another copy of the AP (MLD) address instead.","publishedAt":"2025-09-18T16:03:56.853Z","updatedAt":"2026-08-05T08:58:41.448Z","severity":{"score":8.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/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":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"aebef10affe16228462af680b88751bf137e2856","versionType":"git"},{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"40fb87129049ec5876dabf4a4d4aed6642b31f1a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mlme.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mlme.c"]}],"references":["https://git.kernel.org/stable/c/aebef10affe16228462af680b88751bf137e2856","https://git.kernel.org/stable/c/40fb87129049ec5876dabf4a4d4aed6642b31f1a"],"weaknesses":["CWE-416"],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50413.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50413","state":"PUBLISHED","datePublished":"2025-09-18T16:03:56.853Z","dateUpdated":"2026-08-05T08:58:41.448Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-09-17T14:53:07.002Z"},"containers":{"cna":{"title":"wifi: mac80211: fix use-after-free","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: fix use-after-free\n\nWe've already freed the assoc_data at this point, so need\nto use another copy of the AP (MLD) address instead."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"aebef10affe16228462af680b88751bf137e2856","versionType":"git"},{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"40fb87129049ec5876dabf4a4d4aed6642b31f1a","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mlme.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.0.3","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["net/mac80211/mlme.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/aebef10affe16228462af680b88751bf137e2856"},{"url":"https://git.kernel.org/stable/c/40fb87129049ec5876dabf4a4d4aed6642b31f1a"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":8.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:A - The UAF is reached by processing an over-the-air Association Response in ieee80211_sta_rx_queued_mgmt → ieee80211_rx_mgmt_assoc_resp during MLO association; an attacker on the same Wi-Fi segment (malicious/evil-twin MLO AP or BSSID-spoofed frame injection) delivers that frame.\nAC:L - Once an MLO association is in progress, a successful AssocResp with a valid multi-link element deterministically frees assoc_data then reuses assoc_data->ap_addr; the adjacent attacker fully controls that response, with no race or attacker-uncontrollable timing required.\nPR:N - The vulnerable path runs in the station RX/MLME soft path on the received AssocResp with no host authentication or capability check; an unauthenticated adjacent Wi-Fi peer needs no account on the victim.\nUI:N - In the worst reasonable case (auto-reconnect/evil twin of a known SSID, or an already-initiated MLO association), the AssocResp is processed automatically without a further victim action at attack time.\nS:U - The use-after-free corrupts mac80211/cfg80211 state inside the host kernel authority only and does not cross a VM, IOMMU, or sandbox boundary.\nC:H - After kfree(assoc_data), resp.ap_mld_addr points into freed heap memory and cfg80211 later memcpy's ETH_ALEN from it; that UAF enables heap reuse and arbitrary kernel disclosure.\nI:H - The same sprayable ieee80211_mgd_assoc_data UAF while the dangling AP MLD address is consumed into connection/result state yields write and control-flow primitives characteristic of exploitable kernel UAFs.\nA:H - Use of the freed assoc_data object can oops/panic the kernel in the association-response path, so availability impact is complete even without full code execution."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:58:41.448Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.0.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1"}]}]}],"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-2022-50413","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-01-14T19:09:34.201418Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-416","lang":"en","type":"CWE","description":"CWE-416 Use After Free"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-01-14T19:13:09.346Z"}}]}}}