{"id":"CVE-2022-49416","aliases":["CVE-2022-49416"],"related":[],"kind":"vulnerability","state":"published","title":"wifi: mac80211: fix use-after-free in chanctx code","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: fix use-after-free in chanctx code\n\nIn ieee80211_vif_use_reserved_context(), when we have an\nold context and the new context's replace_state is set to\nIEEE80211_CHANCTX_REPLACE_NONE, we free the old context\nin ieee80211_vif_use_reserved_reassign(). Therefore, we\ncannot check the old_ctx anymore, so we should set it to\nNULL after this point.\n\nHowever, since the new_ctx replace state is clearly not\nIEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do\nanything else in this function and can just return to\navoid accessing the freed old_ctx.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nwifi: mac80211: fix use-after-free in chanctx code\n\nIn ieee80211_vif_use_reserved_context(), when we have an\nold context and the new context's replace_state is set to\nIEEE80211_CHANCTX_REPLACE_NONE, we free the old context\nin ieee80211_vif_use_reserved_reassign(). Therefore, we\ncannot check the old_ctx anymore, so we should set it to\nNULL after this point.\n\nHowever, since the new_ctx replace state is clearly not\nIEEE80211_CHANCTX_REPLACES_OTHER, we're not going to do\nanything else in this function and can just return to\navoid accessing the freed old_ctx.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-02-26T02:12:37.173Z","modified":"2026-08-05T08:55:08.558Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":8.8,"rating":"HIGH"},{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"88cc8f963febe192d6ded9df7217f92f380b449a","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"4ba81e794f0fad6234f644c2da1ae14d5b95e1c4","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"9f1e5cc85ad77e52f54049a94db0407445ae2a34","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"265bec4779a38b65e86a25120370f200822dfa76","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"6118bbdf69f4718b02d26bbcf2e497eb66004331","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"b79110f2bf6022e60e590d2e094728a8eec3e79e","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c","status":"affected"},{"type":"git","introduced":"5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f","fixed":"2965c4cdf7ad9ce0796fac5e57debb9519ea721e","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.17","status":"unaffected"},{"type":"semver","introduced":"4.9.318","lastAffected":"4.9.*","status":"unaffected"},{"type":"semver","introduced":"4.14.283","lastAffected":"4.14.*","status":"unaffected"},{"type":"semver","introduced":"4.19.247","lastAffected":"4.19.*","status":"unaffected"},{"type":"semver","introduced":"5.4.198","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.121","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.46","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.17.14","lastAffected":"5.17.*","status":"unaffected"},{"type":"semver","introduced":"5.18.3","lastAffected":"5.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"3.17","fixed":"4.9.318"},{"status":"affected","introduced":"4.10","fixed":"4.14.283"},{"status":"affected","introduced":"4.15","fixed":"4.19.247"},{"status":"affected","introduced":"4.20","fixed":"5.4.198"},{"status":"affected","introduced":"5.5","fixed":"5.10.121"},{"status":"affected","introduced":"5.11","fixed":"5.15.46"},{"status":"affected","introduced":"5.16","fixed":"5.17.14"},{"status":"affected","introduced":"5.18","fixed":"5.18.3"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/88cc8f963febe192d6ded9df7217f92f380b449a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4ba81e794f0fad6234f644c2da1ae14d5b95e1c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f1e5cc85ad77e52f54049a94db0407445ae2a34","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/265bec4779a38b65e86a25120370f200822dfa76","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/6118bbdf69f4718b02d26bbcf2e497eb66004331","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b79110f2bf6022e60e590d2e094728a8eec3e79e","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2965c4cdf7ad9ce0796fac5e57debb9519ea721e","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2025-02-27T18:16:18.774Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49416","url":"https://www.cve.org/CVERecord?id=CVE-2022-49416","licence":"CVE Terms of Use","modified":"2026-08-05T08:55:08.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49416","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49416","licence":"Public domain","modified":"2026-08-04T10:17:47.600Z"}],"updatedAt":"2026-11-25T22:58:20.514Z","epss":{"score":0.00379,"percentile":0.23796,"date":"2026-11-30T12:00:22.000Z"}}