CVE-2022-49305
drivers: staging: rtl8192u: Fix deadlock in ieee80211_beacons_stop()
Check your servers for CVE-2022-49305
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-49305 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:
drivers: staging: rtl8192u: Fix deadlock in ieee80211_beacons_stop()
There is a deadlock in ieee80211_beacons_stop(), which is shown below:
(Thread 1) | (Thread 2) | ieee80211_send_beacon() ieee80211_beacons_stop() | mod_timer() spin_lock_irqsave() //(1) | (wait a time) ... | ieee80211_send_beacon_cb() del_timer_sync() | spin_lock_irqsave() //(2) (wait timer to stop) | ...
We hold ieee->beacon_lock in position (1) of thread 1 and use del_timer_sync() to wait timer to stop, but timer handler also need ieee->beacon_lock in position (2) of thread 2. As a result, ieee80211_beacons_stop() will block forever.
This patch extracts del_timer_sync() from the protection of spin_lock_irqsave(), which could let timer handler to obtain the needed lock.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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 none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.20%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 10.9% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 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
- partial: limited control or limited data
Weakness
- CWE-667 Improper Locking
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before b465bb2ebf666116c1ac745cb80c65154dc0d27e affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before 1fbe033c52480f7954c057510040fa6286c4ea25 affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before 66f769762f65d957f688f3258755c6ec410bf710 affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before 042915c1bfedd684c1d98a841794ee203200571a affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before ffc9cab7243f8151be37966301307bfd3cda2db3 affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before b34cb54923a6e5ddefbaf358c85c922c6ab456e2 affected from 8fc8598e61f6f384f3eaf1d9b09500c12af47b37, before 806c7b53414934ba2a39449b31fd1a038e500273
Other versions: unaffected
|
| Linux |
affected 2.6.33 unaffected before 2.6.33 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.122 up to and including 5.10.* unaffected from 5.15.47 up to and including 5.15.* unaffected from 5.17.15 up to and including 5.17.* unaffected from 5.18.4 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-49305 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49305
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-49305
trivy image --scanners vuln IMAGE | grep CVE-2022-49305
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/b465bb2ebf666116c1ac745cb80c65154dc0d27e git.kernel.org
- https://git.kernel.org/stable/c/1fbe033c52480f7954c057510040fa6286c4ea25 git.kernel.org
- https://git.kernel.org/stable/c/66f769762f65d957f688f3258755c6ec410bf710 git.kernel.org
- https://git.kernel.org/stable/c/042915c1bfedd684c1d98a841794ee203200571a git.kernel.org
- https://git.kernel.org/stable/c/ffc9cab7243f8151be37966301307bfd3cda2db3 git.kernel.org
- https://git.kernel.org/stable/c/b34cb54923a6e5ddefbaf358c85c922c6ab456e2 git.kernel.org
- https://git.kernel.org/stable/c/806c7b53414934ba2a39449b31fd1a038e500273 git.kernel.org
Source: the record CVE-2022-49305 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