CVE-2022-50202
PM: hibernate: defer device probing when resuming from hibernation
Mitigation
- Upgrade Linux to 8386c414e27caba8501119948e9551e52b527f59 or later.
Who should check
- Anyone running Linux >= c751085943362143f84346d274e0011419c84202, < 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91; >= c751085943362143f84346d274e0011419c84202, < 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb; >= c751085943362143f84346d274e0011419c84202, < 3c48d3067eaf878642276f053575a5c642600a50; >= c751085943362143f84346d274e0011419c84202, < 003a456ae6f70bb97e436e02fc5105be577c1570; >= c751085943362143f84346d274e0011419c84202, < 2f0e18e0db42f4f8bc87d3d98333680065ceeff8; >= c751085943362143f84346d274e0011419c84202, < b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258; >= c751085943362143f84346d274e0011419c84202, < f7042cf9dd40733f387b7cac021e626c74b8856f; >= c751085943362143f84346d274e0011419c84202, < 8386c414e27caba8501119948e9551e52b527f59
- Anyone running Linux 2.6.30
Vulnerability facts
- Affected
- Linux >= c751085943362143f84346d274e0011419c84202, < 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91; >= c751085943362143f84346d274e0011419c84202, < 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb; >= c751085943362143f84346d274e0011419c84202, < 3c48d3067eaf878642276f053575a5c642600a50; >= c751085943362143f84346d274e0011419c84202, < 003a456ae6f70bb97e436e02fc5105be577c1570; >= c751085943362143f84346d274e0011419c84202, < 2f0e18e0db42f4f8bc87d3d98333680065ceeff8; >= c751085943362143f84346d274e0011419c84202, < b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258; >= c751085943362143f84346d274e0011419c84202, < f7042cf9dd40733f387b7cac021e626c74b8856f; >= c751085943362143f84346d274e0011419c84202, < 8386c414e27caba8501119948e9551e52b527f59; Linux 2.6.30
- Fixed in
- Linux 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91, Linux 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb, Linux 3c48d3067eaf878642276f053575a5c642600a50, Linux 003a456ae6f70bb97e436e02fc5105be577c1570, Linux 2f0e18e0db42f4f8bc87d3d98333680065ceeff8, Linux 8386c414e27caba8501119948e9551e52b527f59
- 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, NVD)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.28% chance of exploitation in 30 days (percentile 13, 2026-11-26)
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: PM: hibernate: defer device probing when resuming from hibernation syzbot is reporting hung task at misc_open() [1], for there is a race window of AB-BA deadlock which involves probe_count variable. Currently wait_for_device_probe() from snapshot_open() from misc_open() can sleep forever with misc_mtx held if probe_count cannot become 0. When a device is probed by hub_event() work function, probe_count is incremented before the probe function starts, and probe_count is decremented after the probe function completed. There are three cases that can prevent probe_count from dropping to 0. (a) A device being probed stopped responding (i.e. broken/malicious hardware). (b) A process emulating a USB device using /dev/raw-gadget interface stopped responding for some reason. (c) New device probe requests keeps coming in before existing device probe requests complete. The phenomenon syzbot is reporting is (b). A process which is holding system_transition_mutex and misc_mtx is waiting for probe_count to become 0 inside wait_for_device_probe(), but the probe function which is called from hub_event() work function is waiting for the processes which are blocked at mutex_lock(&misc_mtx) to respond via /dev/raw-gadget interface. This patch mitigates (b) by deferring wait_for_device_probe() from snapshot_open() to snapshot_write() and snapshot_ioctl(). Please note that the possibility of (b) remains as long as any thread which is emulating a USB device via /dev/raw-gadget interface can be blocked by uninterruptible blocking operations (e.g. mutex_lock()). Please also note that (a) and (c) are not addressed. Regarding (c), we should change the code to wait for only one device which contains the image for resuming from hibernation. I don't know how to address (a), for use of timeout for wait_for_device_probe() might result in loss of user data in the image. Maybe we should require the userland to wait for the image device before opening /dev/snapshot interface.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= c751085943362143f84346d274e0011419c84202, < 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91; >= c751085943362143f84346d274e0011419c84202, < 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb; >= c751085943362143f84346d274e0011419c84202, < 3c48d3067eaf878642276f053575a5c642600a50; >= c751085943362143f84346d274e0011419c84202, < 003a456ae6f70bb97e436e02fc5105be577c1570; >= c751085943362143f84346d274e0011419c84202, < 2f0e18e0db42f4f8bc87d3d98333680065ceeff8; >= c751085943362143f84346d274e0011419c84202, < b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258; >= c751085943362143f84346d274e0011419c84202, < f7042cf9dd40733f387b7cac021e626c74b8856f; >= c751085943362143f84346d274e0011419c84202, < 8386c414e27caba8501119948e9551e52b527f59 | — | cvelist |
| Linux | 2.6.30 | — | 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-50202. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50202.md Affected: Linux >= c751085943362143f84346d274e0011419c84202, < 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91; >= c751085943362143f84346d274e0011419c84202, < 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb; >= c751085943362143f84346d274e0011419c84202, < 3c48d3067eaf878642276f053575a5c642600a50; >= c751085943362143f84346d… Fixed in: Linux 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91, Linux 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb, Linux 3c48d3067eaf878642276f053575a5c642600a50, Linux 003a456ae6f70bb97e436e02fc5105be577c1570, Linux 2f0e18e0db42f4f8bc87d3d98333680065ceeff8, Linux 8386c414e27caba8501119948e9551e52b527f59 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
Patches
- https://git.kernel.org/stable/c/8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91
- https://git.kernel.org/stable/c/5a283b59bce72c05c60e9f0fa92a28b5b850d8bb
- https://git.kernel.org/stable/c/3c48d3067eaf878642276f053575a5c642600a50
- https://git.kernel.org/stable/c/003a456ae6f70bb97e436e02fc5105be577c1570
- https://git.kernel.org/stable/c/2f0e18e0db42f4f8bc87d3d98333680065ceeff8
- https://git.kernel.org/stable/c/b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258
- https://git.kernel.org/stable/c/f7042cf9dd40733f387b7cac021e626c74b8856f
- https://git.kernel.org/stable/c/8386c414e27caba8501119948e9551e52b527f59
FAQ
Is CVE-2022-50202 being exploited?
There is no confirmed exploitation: CVE-2022-50202 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.28% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50202?
Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50202?
Linux >= c751085943362143f84346d274e0011419c84202, < 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91; >= c751085943362143f84346d274e0011419c84202, < 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb; >= c751085943362143f84346d274e0011419c84202, < 3c48d3067eaf878642276f053575a5c642600a50; >= c751085943362143f84346d274e0011419c84202, < 003a456ae6f70bb97e436e02fc5105be577c1570; >= c751085943362143f84346d274e0011419c84202, < 2f0e18e0db42f4f8bc87d3d98333680065ceeff8; >= c751085943362143f84346d274e0011419c84202, < b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258; >= c751085943362143f84346d274e0011419c84202, < f7042cf9dd40733f387b7cac021e626c74b8856f; >= c751085943362143f84346d274e0011419c84202, < 8386c414e27caba8501119948e9551e52b527f59; Linux 2.6.30.
Is there a fix for CVE-2022-50202?
Yes. Fixed in Linux 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91, Linux 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb, Linux 3c48d3067eaf878642276f053575a5c642600a50, Linux 003a456ae6f70bb97e436e02fc5105be577c1570, Linux 2f0e18e0db42f4f8bc87d3d98333680065ceeff8, Linux 8386c414e27caba8501119948e9551e52b527f59. Upgrade Linux to 8386c414e27caba8501119948e9551e52b527f59 or later.
How do I check if I'm affected by CVE-2022-50202?
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.