# CVE-2026-31567: PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-04-24T14:35:47.453Z
- Modified: 2026-11-11T23:10:00.263Z
- Weaknesses: CWE-617
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d before 3025ca5daa9d682b629c0c958b538e41deeb559d; from 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d before f19d1323aa3dd7ead469aef47d9085f8939565d9; from 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d before a8d51efb5929ae308895455a3e496b5eca2cd143; 4ddf7293928cb619077724b7d828734da8181e6c; from 6.17.8 before 6.18; 6.18 (not affected: before 6.18; from 6.18.21 up to 6.18.*; from 6.19.11 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.17.8 before 6.18; from 6.18.1 before 6.18.21; from 6.19 before 6.19.11; 6.18; 7.0

## References

- <https://git.kernel.org/stable/c/3025ca5daa9d682b629c0c958b538e41deeb559d> (patch)
- <https://git.kernel.org/stable/c/f19d1323aa3dd7ead469aef47d9085f8939565d9> (patch)
- <https://git.kernel.org/stable/c/a8d51efb5929ae308895455a3e496b5eca2cd143> (patch)

## Sources

- CVE List: [CVE-2026-31567](https://www.cve.org/CVERecord?id=CVE-2026-31567), CVE Terms of Use, modified 2026-05-23
- NVD: [CVE-2026-31567](https://nvd.nist.gov/vuln/detail/CVE-2026-31567), Public domain, modified 2026-11-11

---

Page: https://cve.day/CVE-2026-31567 · Whole record: https://cve.day/CVE-2026-31567.json · Rebuilt by cve.day 2026-11-25T22:59:19.487Z
