{"id":"CVE-2022-50533","state":"PUBLISHED","title":"wifi: mac80211: mlme: fix null-ptr deref on failed assoc","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: mlme: fix null-ptr deref on failed assoc\n\nIf association to an AP without a link 0 fails, then we crash in\ntracing because it assumes that either ap_mld_addr or link 0 BSS\nis valid, since we clear sdata->vif.valid_links and then don't\nadd the ap_mld_addr to the struct.\n\nSince we clear also sdata->vif.cfg.ap_addr, keep a local copy of\nit and assign it earlier, before clearing valid_links, to fix\nthis.","publishedAt":"2025-10-07T15:19:23.277Z","updatedAt":"2026-05-11T19:21:15.984Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"c695dfba8dfb82dc7ace4f22be088916cbf621ca","versionType":"git"},{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"bb7743955a929e44b308cc3f63f8cc03873c1bee","versionType":"git"},{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"78a6a43aaf87180ec7425a2a90468e1b4d09a1ec","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.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","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/c695dfba8dfb82dc7ace4f22be088916cbf621ca","https://git.kernel.org/stable/c/bb7743955a929e44b308cc3f63f8cc03873c1bee","https://git.kernel.org/stable/c/78a6a43aaf87180ec7425a2a90468e1b4d09a1ec"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50533.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50533","state":"PUBLISHED","datePublished":"2025-10-07T15:19:23.277Z","dateUpdated":"2026-05-11T19:21:15.984Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-10-07T15:15:38.664Z"},"containers":{"cna":{"title":"wifi: mac80211: mlme: fix null-ptr deref on failed assoc","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: mlme: fix null-ptr deref on failed assoc\n\nIf association to an AP without a link 0 fails, then we crash in\ntracing because it assumes that either ap_mld_addr or link 0 BSS\nis valid, since we clear sdata->vif.valid_links and then don't\nadd the ap_mld_addr to the struct.\n\nSince we clear also sdata->vif.cfg.ap_addr, keep a local copy of\nit and assign it earlier, before clearing valid_links, to fix\nthis."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"c695dfba8dfb82dc7ace4f22be088916cbf621ca","versionType":"git"},{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"bb7743955a929e44b308cc3f63f8cc03873c1bee","versionType":"git"},{"version":"81151ce462e533551f3284bfdb8e0f461c9220e6","status":"affected","lessThan":"78a6a43aaf87180ec7425a2a90468e1b4d09a1ec","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.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","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/c695dfba8dfb82dc7ace4f22be088916cbf621ca"},{"url":"https://git.kernel.org/stable/c/bb7743955a929e44b308cc3f63f8cc03873c1bee"},{"url":"https://git.kernel.org/stable/c/78a6a43aaf87180ec7425a2a90468e1b4d09a1ec"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:21:15.984Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.0.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}