8.8high
wifi: mac80211: fix potential key use-after-free
- Severity
- 8.8high CVSS:3.1 by Linux
- Exploit likelihood
- 0.34% (higher than 29% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix potential key use-after-free When ieee80211_key_link() is called by ieee80211_gtk_rekey_add() but returns 0 due to KRACK protection (identical key reinstall), ieee80211_gtk_rekey_add() will still return a pointer into the key, in a potential use-after-free. This normally doesn't happen since it's only called by iwlwifi in case of WoWLAN rekey offload which has its own KRACK protection, but still better to fix, do that by returning an error code and converting that to success on the cfg80211 boundary only, leaving the error for bad callers of ieee80211_gtk_rekey_add().
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from fdf7cb4185b60c68e1a75e61691c4afdc15dea0e before 2408f491ff998d674707725eadc47d8930aced09, from fdf7cb4185b60c68e1a75e61691c4afdc15dea0e before e8e599a635066c50ac214c3e10858f1d37e03022, from fdf7cb4185b60c68e1a75e61691c4afdc15dea0e before e8a834eb09bb95c2bf9c76f1a28ecef7d8c439d0, from fdf7cb4185b60c68e1a75e61691c4afdc15dea0e before 2f4e16e39e4f5e78248dd9e51276a83203950b36, from fdf7cb4185b60c68e1a75e61691c4afdc15dea0e before 65c72a7201704574dace708cbc96a8f367b1491d, from fdf7cb4185b60c68e1a75e61691c4afdc15dea0e before 31db78a4923ef5e2008f2eed321811ca79e7f71b, ef810e7c3d2a8fb3bbd23726599c487c30ea747e, a0a8a11d1630cd648dc1ce86da620b4e240e0315 and 13 more Not affected: before 4.14, from 5.4.285 up to 5.4.*, from 5.10.228 up to 5.10.*, from 5.15.169 up to 5.15.*, from 6.1.57 up to 6.1.*, from 6.5.7 up to 6.5.* | CVE List |
| linux linux_kernel | from 4.14 before 5.4.285, from 5.5 before 5.10.288, from 5.11 before 5.15.169, from 5.16 before 6.1.57, from 6.2 before 6.5.7, 6.6 | NVD |
All scores
| Linux | 8.8high CVSS:3.1 | CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.8high CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix potential key use-after-free When ieee80211_key_link() is called by ieee80211_gtk_rekey_add() but returns 0 due to KRACK protection (identical key reinstall), ieee80211_gtk_rekey_add() will still return a pointer into the key, in a potential use-after-free. This normally doesn't happen since it's only called by iwlwifi in case of WoWLAN rekey offload which has its own KRACK protection, but still better to fix, do that by returning an error code and converting that to success on the cfg80211 boundary only, leaving the error for bad callers of ieee80211_gtk_rekey_add().
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: mac80211: soluciona el posible Use After Free de la clave Cuando ieee80211_key_link() es llamado por ieee80211_gtk_rekey_add() pero devuelve 0 debido a la protección KRACK (reinstalación de clave idéntica), ieee80211_gtk_rekey_add() aún devolverá un puntero a la clave, en un posible Use After Free. Esto normalmente no sucede ya que iwlwifi solo lo llama en caso de descarga de recodificación de WoWLAN, que tiene su propia protección KRACK, pero aún es mejor solucionarlo, hágalo devolviendo un código de error y convirtiéndolo en exitoso solo en el límite cfg80211, dejando el error para personas que llaman mal de ieee80211_gtk_rekey_add().
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-52530 changed 2026-08-05 | CVE Terms of Use |
| NVD | CVE-2023-52530 changed 2026-08-04 | Public domain |