CVE-2022-49311
drivers: staging: rtl8192bs: Fix deadlock in rtw_joinbss_event_prehandle()
Mitigation
- Upgrade Linux to 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc or later.
Who should check
- Anyone running Linux >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < ae60744d5fad840b9d056d35b4b652d95e755846; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < eca9748d9267a38d532464e3305a38629e9c35a9; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc
- Anyone running Linux 4.12
Vulnerability facts
- Affected
- Linux >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < ae60744d5fad840b9d056d35b4b652d95e755846; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < eca9748d9267a38d532464e3305a38629e9c35a9; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc; Linux 4.12
- Fixed in
- Linux 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee, Linux 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.21% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-667
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: drivers: staging: rtl8192bs: Fix deadlock in rtw_joinbss_event_prehandle() There is a deadlock in rtw_joinbss_event_prehandle(), which is shown below: (Thread 1) | (Thread 2) | _set_timer() rtw_joinbss_event_prehandle()| mod_timer() spin_lock_bh() //(1) | (wait a time) ... | _rtw_join_timeout_handler() del_timer_sync() | spin_lock_bh() //(2) (wait timer to stop) | ... We hold pmlmepriv->lock in position (1) of thread 1 and use del_timer_sync() to wait timer to stop, but timer handler also need pmlmepriv->lock in position (2) of thread 2. As a result, rtw_joinbss_event_prehandle() will block forever. This patch extracts del_timer_sync() from the protection of spin_lock_bh(), which could let timer handler to obtain the needed lock. What`s more, we change spin_lock_bh() to spin_lock_irq() in _rtw_join_timeout_handler() in order to prevent deadlock.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < ae60744d5fad840b9d056d35b4b652d95e755846; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < eca9748d9267a38d532464e3305a38629e9c35a9; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc | — | cvelist |
| Linux | 4.12 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-49311. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-49311.md Affected: Linux >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < ae60744d5fad840b9d056d35b4b652d95e755846; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < eca9748d9267a38d532464e3305a38629e9c35a9; >= 554c0a3abf216c991c5ebdd… Fixed in: Linux 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee, Linux 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2022-49311 being exploited?
There is no confirmed exploitation: CVE-2022-49311 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-49311?
Medium: CVSS 5.5 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-49311?
Linux >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < ae60744d5fad840b9d056d35b4b652d95e755846; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < eca9748d9267a38d532464e3305a38629e9c35a9; >= 554c0a3abf216c991c5ebddcdb2c08689ecd290b, < 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc; Linux 4.12.
Is there a fix for CVE-2022-49311?
Yes. Fixed in Linux 1f6c99b94ca3caad346876b3e22e3ca3d25bc8ee, Linux 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc. Upgrade Linux to 041879b12ddb0c6c83ed9c0bdd10dc82a056f2fc or later.
How do I check if I'm affected by CVE-2022-49311?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.