CVE-2022-49315
drivers: staging: rtl8192e: Fix deadlock in rtllib_beacons_stop()
Check your servers for CVE-2022-49315
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-49315 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: rtl8192e: Fix deadlock in rtllib_beacons_stop()
There is a deadlock in rtllib_beacons_stop(), which is shown below:
(Thread 1) | (Thread 2) | rtllib_send_beacon() rtllib_beacons_stop() | mod_timer() spin_lock_irqsave() //(1) | (wait a time) ... | rtllib_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, rtllib_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.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.2% 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 94a799425eee8225a1e3fbe5f473d2ef04002577, before 4681129fda9e8555392eaaadb239ec6a6e2b3e12 affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before 381045dc64d23a2229c47c5524c06bfc33d34446 affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before 08bacf871c019163ccd1389d0bc957a43324967a affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before 64b05fa212c7e4d057676e8b7e7120c6eb2f615b affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before 0f69d7d5e918aa43423d86bd17ddb11b1b5e8ada affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before fef451f0fbbe85dbd2962b18379d02e2965610db affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before 46c861009bf437a18417df24cea0d181741b7d72 affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before ffd4c4d5293e4985092ea45ba21cad9326e2e434 affected from 94a799425eee8225a1e3fbe5f473d2ef04002577, before 9b6bdbd9337de3917945847bde262a34a87a6303
Other versions: unaffected
|
| Linux |
affected 3.2 unaffected before 3.2 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.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-49315 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-49315
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-49315
trivy image --scanners vuln IMAGE | grep CVE-2022-49315
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/4681129fda9e8555392eaaadb239ec6a6e2b3e12 git.kernel.org
- https://git.kernel.org/stable/c/381045dc64d23a2229c47c5524c06bfc33d34446 git.kernel.org
- https://git.kernel.org/stable/c/08bacf871c019163ccd1389d0bc957a43324967a git.kernel.org
- https://git.kernel.org/stable/c/64b05fa212c7e4d057676e8b7e7120c6eb2f615b git.kernel.org
- https://git.kernel.org/stable/c/0f69d7d5e918aa43423d86bd17ddb11b1b5e8ada git.kernel.org
- https://git.kernel.org/stable/c/fef451f0fbbe85dbd2962b18379d02e2965610db git.kernel.org
- https://git.kernel.org/stable/c/46c861009bf437a18417df24cea0d181741b7d72 git.kernel.org
- https://git.kernel.org/stable/c/ffd4c4d5293e4985092ea45ba21cad9326e2e434 git.kernel.org
- https://git.kernel.org/stable/c/9b6bdbd9337de3917945847bde262a34a87a6303 git.kernel.org
Source: the record CVE-2022-49315 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