CVE-2026-31567

Source
https://cve.org/CVERecord?id=CVE-2026-31567
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31567.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-31567
Downstream
Published
2026-04-24T14:35:47Z
Modified
2026-11-17T07:03:35Z
Summary
PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()
Details

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 ]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31567.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d
Fixed
3025ca5daa9d682b629c0c958b538e41deeb559d
Fixed
f19d1323aa3dd7ead469aef47d9085f8939565d9
Fixed
a8d51efb5929ae308895455a3e496b5eca2cd143
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
4ddf7293928cb619077724b7d828734da8181e6c

Affected versions

v6.*
v6.17.10
v6.17.11
v6.17.12
v6.17.13
v6.17.8
v6.17.9

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31567.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
6.17.8
Fixed
6.18
Type
ECOSYSTEM
Events
Introduced
6.18.0
Fixed
6.18.21
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
6.19.11

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-31567.json"