CVE-2022-49416
wifi: mac80211: fix use-after-free in chanctx code
Check your servers for CVE-2022-49416
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2022-49416 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- adjacent: the attacker has to be on the same local network or link
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- none: the attacker does not need an account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.33%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 28.8% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 27 Feb 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- total: full control of the component or of its data
Weakness
- CWE-416 Use After Free
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 88cc8f963febe192d6ded9df7217f92f380b449a affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 4ba81e794f0fad6234f644c2da1ae14d5b95e1c4 affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 9f1e5cc85ad77e52f54049a94db0407445ae2a34 affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 265bec4779a38b65e86a25120370f200822dfa76 affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 6118bbdf69f4718b02d26bbcf2e497eb66004331 affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before b79110f2bf6022e60e590d2e094728a8eec3e79e affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c affected from 5bcae31d9cb1ebfad3ad5a3eea04c8cdc329a04f, before 2965c4cdf7ad9ce0796fac5e57debb9519ea721e
Other versions: unaffected
|
| Linux |
affected 3.17 unaffected before 3.17 unaffected from 4.9.318 up to and including 4.9.* unaffected from 4.14.283 up to and including 4.14.* unaffected from 4.19.247 up to and including 4.19.* unaffected from 5.4.198 up to and including 5.4.* unaffected from 5.10.121 up to and including 5.10.* unaffected from 5.15.46 up to and including 5.15.* unaffected from 5.17.14 up to and including 5.17.* unaffected from 5.18.3 up to and including 5.18.* unaffected 5.19 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2022-49416 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49416
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2022-49416
trivy image --scanners vuln IMAGE | grep CVE-2022-49416
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/88cc8f963febe192d6ded9df7217f92f380b449a git.kernel.org
- https://git.kernel.org/stable/c/4ba81e794f0fad6234f644c2da1ae14d5b95e1c4 git.kernel.org
- https://git.kernel.org/stable/c/9f1e5cc85ad77e52f54049a94db0407445ae2a34 git.kernel.org
- https://git.kernel.org/stable/c/265bec4779a38b65e86a25120370f200822dfa76 git.kernel.org
- https://git.kernel.org/stable/c/6118bbdf69f4718b02d26bbcf2e497eb66004331 git.kernel.org
- https://git.kernel.org/stable/c/b79110f2bf6022e60e590d2e094728a8eec3e79e git.kernel.org
- https://git.kernel.org/stable/c/82c8e7bbdd06c7ed58e22450cc5b37f33a25bb2c git.kernel.org
- https://git.kernel.org/stable/c/4f05a9e15edcdf5b97e0d86ab6ecd5f187289f6c git.kernel.org
- https://git.kernel.org/stable/c/2965c4cdf7ad9ce0796fac5e57debb9519ea721e git.kernel.org
Source: the record CVE-2022-49416 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse