# CVE-2022-50533: wifi: mac80211: mlme: fix null-ptr deref on failed assoc

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 7% of CVEs (2026-11-30)
- Published: 2025-10-07T15:19:23.277Z
- Modified: 2026-06-17T05:23:44.387Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

wifi: mac80211: mlme: fix null-ptr deref on failed assoc

If association to an AP without a link 0 fails, then we crash in
tracing because it assumes that either ap_mld_addr or link 0 BSS
is valid, since we clear sdata->vif.valid_links and then don't
add the ap_mld_addr to the struct.

Since we clear also sdata->vif.cfg.ap_addr, keep a local copy of
it and assign it earlier, before clearing valid_links, to fix
this.

(As written by CVE List.)

## Affected

- Linux Linux: from 81151ce462e533551f3284bfdb8e0f461c9220e6 before c695dfba8dfb82dc7ace4f22be088916cbf621ca; from 81151ce462e533551f3284bfdb8e0f461c9220e6 before bb7743955a929e44b308cc3f63f8cc03873c1bee; from 81151ce462e533551f3284bfdb8e0f461c9220e6 before 78a6a43aaf87180ec7425a2a90468e1b4d09a1ec; 6.0 (not affected: before 6.0; from 6.0.16 up to 6.0.*; from 6.1.2 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 6.0 before 6.0.16; from 6.1 before 6.1.2

## References

- <https://git.kernel.org/stable/c/c695dfba8dfb82dc7ace4f22be088916cbf621ca> (patch)
- <https://git.kernel.org/stable/c/bb7743955a929e44b308cc3f63f8cc03873c1bee> (patch)
- <https://git.kernel.org/stable/c/78a6a43aaf87180ec7425a2a90468e1b4d09a1ec> (patch)

## Sources

- CVE List: [CVE-2022-50533](https://www.cve.org/CVERecord?id=CVE-2022-50533), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-50533](https://nvd.nist.gov/vuln/detail/CVE-2022-50533), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-50533 · Whole record: https://cve.day/CVE-2022-50533.json · Rebuilt by cve.day 2026-11-25T22:58:21.260Z
