CVE-2022-49416
JSON

8.8high

wifi: mac80211: fix use-after-free in chanctx code

Severity
8.8high CVSS:3.1 by Linux
Exploit likelihood
0.38% (higher than 24% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix use-after-free in chanctx code In ieee80211_vif_use_reserved_context(), when we have an old context and the new context's replace_state is set to IEEE80211_CHANCTX_REPLACE_NONE, we free the old context in ieee80211_vif_use_reserved_reassign(). Therefore, we cannot check the old_ctx anymore, so we should set it to NULL after this point. However, since the new_ctx replace state is clearly not IEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do anything else in this function and can just return to avoid accessing the freed old_ctx.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 88cc8f963febe192d6ded9df7217f92f380b449a, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 4ba81e794f0fad6234f644c2da1ae14d5b95e1c4, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 9f1e5cc85ad77e52f54049a94db0407445ae2a34, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 265bec4779a38b65e86a25120370f200822dfa76, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 6118bbdf69f4718b02d26bbcf2e497eb66004331, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before b79110f2bf6022e60e590d2e094728a8eec3e79e, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c, from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f before 4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c and 2 more
Not affected: before 3.17, from 4.9.318 up to 4.9.*, from 4.14.283 up to 4.14.*, from 4.19.247 up to 4.19.*, from 5.4.198 up to 5.4.*, from 5.10.121 up to 5.10.*
CVE List
linux linux_kernelfrom 3.17 before 4.9.318, from 4.10 before 4.14.283, from 4.15 before 4.19.247, from 4.20 before 5.4.198, from 5.5 before 5.10.121, from 5.11 before 5.15.46, from 5.16 before 5.17.14, from 5.18 before 5.18.3NVD

All scores

Linux8.8high CVSS:3.1CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CISA-ADP7.8high CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Classification

CWE-416

SSVC (CISA-ADP): exploitation none, automatable no, technical impact total.

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: wifi: mac80211: fix use-after-free in chanctx code In ieee80211_vif_use_reserved_context(), when we have an old context and the new context's replace_state is set to IEEE80211_CHANCTX_REPLACE_NONE, we free the old context in ieee80211_vif_use_reserved_reassign(). Therefore, we cannot check the old_ctx anymore, so we should set it to NULL after this point. However, since the new_ctx replace state is clearly not IEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do anything else in this function and can just return to avoid accessing the freed old_ctx.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: wifi: mac80211: corrección de use-after-free en el código chanctx En ieee80211_vif_use_reserved_context(), cuando tenemos un contexto antiguo y el replace_state del nuevo contexto está configurado en IEEE80211_CHANCTX_REPLACE_NONE, liberamos el contexto antiguo en ieee80211_vif_use_reserved_reassign(). Por lo tanto, ya no podemos verificar el old_ctx, por lo que deberíamos configurarlo en NULL después de este punto. Sin embargo, dado que el estado de reemplazo de new_ctx claramente no es IEEE80211_CHANCTX_REPLACES_OTHER, no vamos a hacer nada más en esta función y podemos simplemente regresar para evitar acceder al old_ctx liberado.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49416 changed 2026-08-05CVE Terms of Use
NVDCVE-2022-49416 changed 2026-08-04Public domain