# CVE-2022-50202: PM: hibernate: defer device probing when resuming from hibernation

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **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
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.28% (percentile 13, 2026-11-26)
- **Published:** 2025-06-18T11:03:43.874Z
- **Modified:** 2026-11-05T20:17:27.223Z

## 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

## 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

- Linux: \>= c751085943362143f84346d274e0011419c84202, \< 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91; \>= c751085943362143f84346d274e0011419c84202, \< 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb; \>= c751085943362143f84346d274e0011419c84202, \< 3c48d3067eaf878642276f053575a5c642600a50; \>= c751085943362143f84346d274e0011419c84202, \< 003a456ae6f70bb97e436e02fc5105be577c1570; \>= c751085943362143f84346d274e0011419c84202, \< 2f0e18e0db42f4f8bc87d3d98333680065ceeff8; \>= c751085943362143f84346d274e0011419c84202, \< b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258; \>= c751085943362143f84346d274e0011419c84202, \< f7042cf9dd40733f387b7cac021e626c74b8856f; \>= c751085943362143f84346d274e0011419c84202, \< 8386c414e27caba8501119948e9551e52b527f59 (cvelist)
- Linux: 2.6.30 (cvelist)

## Mitigation

- Upgrade Linux to 8386c414e27caba8501119948e9551e52b527f59 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
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.
```

## 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.

## References

- patch: <https://git.kernel.org/stable/c/8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91>
- patch: <https://git.kernel.org/stable/c/5a283b59bce72c05c60e9f0fa92a28b5b850d8bb>
- patch: <https://git.kernel.org/stable/c/3c48d3067eaf878642276f053575a5c642600a50>
- patch: <https://git.kernel.org/stable/c/003a456ae6f70bb97e436e02fc5105be577c1570>
- patch: <https://git.kernel.org/stable/c/2f0e18e0db42f4f8bc87d3d98333680065ceeff8>
- patch: <https://git.kernel.org/stable/c/b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258>
- patch: <https://git.kernel.org/stable/c/f7042cf9dd40733f387b7cac021e626c74b8856f>
- patch: <https://git.kernel.org/stable/c/8386c414e27caba8501119948e9551e52b527f59>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50202>

HTML: <https://flawdb.com/CVE-2022-50202> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50202>
