{"id":"CVE-2026-31567","aliases":["CVE-2026-31567"],"related":[],"kind":"vulnerability","state":"published","title":"PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()\n\nCommit 35e4a69b2003f (\"PM: sleep: Allow pm_restrict_gfp_mask()\nstacking\") introduced refcount-based GFP mask management that warns\nwhen pm_restore_gfp_mask() is called with saved_gfp_count == 0.\n\nSome hibernation paths call pm_restore_gfp_mask() defensively where\nthe GFP mask may or may not be restricted depending on the execution\npath. For example, the uswsusp interface invokes it in\nSNAPSHOT_CREATE_IMAGE, SNAPSHOT_UNFREEZE, and snapshot_release().\nBefore the stacking change this was a silent no-op; it now triggers\na spurious WARNING.\n\nRemove the WARN_ON() wrapper from the !saved_gfp_count check while\nretaining the check itself, so that defensive calls remain harmless\nwithout producing false warnings.\n\n[ rjw: Subject tweak ]","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask()\n\nCommit 35e4a69b2003f (\"PM: sleep: Allow pm_restrict_gfp_mask()\nstacking\") introduced refcount-based GFP mask management that warns\nwhen pm_restore_gfp_mask() is called with saved_gfp_count == 0.\n\nSome hibernation paths call pm_restore_gfp_mask() defensively where\nthe GFP mask may or may not be restricted depending on the execution\npath. For example, the uswsusp interface invokes it in\nSNAPSHOT_CREATE_IMAGE, SNAPSHOT_UNFREEZE, and snapshot_release().\nBefore the stacking change this was a silent no-op; it now triggers\na spurious WARNING.\n\nRemove the WARN_ON() wrapper from the !saved_gfp_count check while\nretaining the check itself, so that defensive calls remain harmless\nwithout producing false warnings.\n\n[ rjw: Subject tweak ]","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nPM: sleep: Eliminar WARN_ON() espurio de pm_restore_gfp_mask()\n\nEl commit 35e4a69b2003f (’PM: sleep: Permitir el apilamiento de pm_restrict_gfp_mask()’) introdujo la gestión de la máscara GFP basada en recuento de referencias que advierte cuando se llama a pm_restore_gfp_mask() con saved_gfp_count == 0.\n\nAlgunas rutas de hibernación llaman a pm_restore_gfp_mask() de forma defensiva donde la máscara GFP puede o no estar restringida dependiendo de la ruta de ejecución. Por ejemplo, la interfaz uswsusp lo invoca en SNAPSHOT_CREATE_IMAGE, SNAPSHOT_UNFREEZE y snapshot_release(). Antes del cambio de apilamiento, esto era una operación nula silenciosa; ahora activa una ADVERTENCIA espuria.\n\nEliminar el envoltorio WARN_ON() de la comprobación !saved_gfp_count mientras se mantiene la comprobación en sí, para que las llamadas defensivas sigan siendo inofensivas sin producir advertencias falsas.\n\n[ rjw: Ajuste del asunto ]","source":"nvd"}],"published":"2026-04-24T14:35:47.453Z","modified":"2026-11-11T23:10:00.263Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-617"],"affected":[{"ranges":[{"type":"git","introduced":"35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d","fixed":"3025ca5daa9d682b629c0c958b538e41deeb559d","status":"affected"},{"type":"git","introduced":"35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d","fixed":"f19d1323aa3dd7ead469aef47d9085f8939565d9","status":"affected"},{"type":"git","introduced":"35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d","fixed":"a8d51efb5929ae308895455a3e496b5eca2cd143","status":"affected"},{"type":"git","version":"4ddf7293928cb619077724b7d828734da8181e6c","status":"affected"},{"type":"semver","introduced":"6.17.8","fixed":"6.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.21","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.11","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.17.8","fixed":"6.18"},{"status":"affected","introduced":"6.18.1","fixed":"6.18.21"},{"status":"affected","introduced":"6.19","fixed":"6.19.11"},{"status":"affected","version":"6.18"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3025ca5daa9d682b629c0c958b538e41deeb559d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f19d1323aa3dd7ead469aef47d9085f8939565d9","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a8d51efb5929ae308895455a3e496b5eca2cd143","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-31567","url":"https://www.cve.org/CVERecord?id=CVE-2026-31567","licence":"CVE Terms of Use","modified":"2026-05-23T16:05:25.080Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-31567","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31567","licence":"Public domain","modified":"2026-11-11T23:10:00.263Z"}],"updatedAt":"2026-11-25T22:59:19.487Z","epss":{"score":0.00133,"percentile":0.03049,"date":"2026-12-01T12:00:22.000Z"}}