CVE-2022-50202

PM: hibernate: defer device probing when resuming from hibernation

No CVSS score yet EPSS 0.27%

Published 18 Jun 2025 Updated 5 Nov 2026 CNA: Linux

Check your servers for CVE-2022-50202

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

Check my servers

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.

Exploitation

EPSS 0.27%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 20.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 5 Nov 2026):

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from c751085943362143f84346d274e0011419c84202, before 8c90947e5f1801e6c7120021c6ea0f3ad6a4eb91
affected from c751085943362143f84346d274e0011419c84202, before 5a283b59bce72c05c60e9f0fa92a28b5b850d8bb
affected from c751085943362143f84346d274e0011419c84202, before 3c48d3067eaf878642276f053575a5c642600a50
affected from c751085943362143f84346d274e0011419c84202, before 003a456ae6f70bb97e436e02fc5105be577c1570
affected from c751085943362143f84346d274e0011419c84202, before 2f0e18e0db42f4f8bc87d3d98333680065ceeff8
affected from c751085943362143f84346d274e0011419c84202, before b8e1ae9433d7bd95f2dcc044a7a6f20a4c40d258
affected from c751085943362143f84346d274e0011419c84202, before f7042cf9dd40733f387b7cac021e626c74b8856f
affected from c751085943362143f84346d274e0011419c84202, before 8386c414e27caba8501119948e9551e52b527f59
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
unaffected from 4.14.291 up to and including 4.14.*
unaffected from 4.19.256 up to and including 4.19.*
unaffected from 5.4.211 up to and including 5.4.*
unaffected from 5.10.137 up to and including 5.10.*
unaffected from 5.15.61 up to and including 5.15.*
unaffected from 5.18.18 up to and including 5.18.*
unaffected from 5.19.2 up to and including 5.19.*
unaffected 6.0 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-50202 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2022-50202

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-50202
trivy image --scanners vuln IMAGE | grep CVE-2022-50202

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

Source: the record CVE-2022-50202 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.