CVE-2026-31567
publishedPM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d to < 3025ca5daa9d682b629c0c958b538e41deeb559d · 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d to < f19d1323aa3dd7ead469aef47d9085f8939565d9 · 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d to < a8d51efb5929ae308895455a3e496b5eca2cd143 · 4ddf7293928cb619077724b7d828734da8181e6c · 6.17.8 to < 6.18 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.18 (affected) · 0 to < 6.18 (unaffected · semver) · 6.18.21 through 6.18.* (unaffected · semver) · 6.19.11 through 6.19.* (unaffected · semver) · 7.0 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2026-1746 | Fixed | Not stated | Amazon Linux assessment |
| Amazon Linux | AL2023 | kernel6.18aarch64 | Listed in advisory | Not stated | ALAS2023-2026-1746 |
| Amazon Linux | AL2023 | kernel6.18src | Listed in advisory | Not stated | ALAS2023-2026-1746 |
| Amazon Linux | AL2023 | kernel6.18x86_64 | Listed in advisory | Not stated | ALAS2023-2026-1746 |
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 ]
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d to < 3025ca5daa9d682b629c0c958b538e41deeb559d (affected · git)35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d to < f19d1323aa3dd7ead469aef47d9085f8939565d9 (affected · git)35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d to < a8d51efb5929ae308895455a3e496b5eca2cd143 (affected · git)4ddf7293928cb619077724b7d828734da8181e6c (affected · git)6.17.8 to < 6.18 (affected · semver)Default: unaffected | Linux · cna |
| Linux | Linux | 6.18 (affected)0 to < 6.18 (unaffected · semver)6.18.21 through 6.18.* (unaffected · semver)6.19.11 through 6.19.* (unaffected · semver)7.0 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
3Provider assertions
1Linux · cna
PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- d4f957a776b49d1081a020cd97b4055471e0baaa0fd95c9d76d9c4ecb33266be
- Ingested
- 23 Sep 2026, 09:09:24 UTC
- Source record
- Official CVE record