CVE-2026-31567

PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()

No CVSS score yet EPSS 0.13%

Published 24 Apr 2026 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2026-31567

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-2026-31567 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: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()

Commit 35e4a69b2003f ("PM: sleep: Allow pm_restrict_gfp_mask() stacking") introduced refcount-based GFP mask management that warns when pm_restore_gfp_mask() is called with saved_gfp_count == 0.

Some hibernation paths call pm_restore_gfp_mask() defensively where the GFP mask may or may not be restricted depending on the execution path. For example, the uswsusp interface invokes it in SNAPSHOT_CREATE_IMAGE, SNAPSHOT_UNFREEZE, and snapshot_release(). Before the stacking change this was a silent no-op; it now triggers a spurious WARNING.

Remove the WARN_ON() wrapper from the !saved_gfp_count check while retaining the check itself, so that defensive calls remain harmless without producing false warnings.

[ rjw: Subject tweak ]

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d, before 3025ca5daa9d682b629c0c958b538e41deeb559d
affected from 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d, before f19d1323aa3dd7ead469aef47d9085f8939565d9
affected from 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d, before a8d51efb5929ae308895455a3e496b5eca2cd143
affected 4ddf7293928cb619077724b7d828734da8181e6c
affected from 6.17.8, before 6.18
Other versions: unaffected
Linux
affected 6.18
unaffected before 6.18
unaffected from 6.18.21 up to and including 6.18.*
unaffected from 6.19.11 up to and including 6.19.*
unaffected 7.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-2026-31567 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31567

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-2026-31567
trivy image --scanners vuln IMAGE | grep CVE-2026-31567

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-2026-31567 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.