CVE-2026-31567

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

Configuration 1 (hide)

OR cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*

History

11 Nov 2026, 23:10

Type Values Removed Values Added
Summary
  • (es) En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: PM: sleep: Eliminar WARN_ON() espurio de pm_restore_gfp_mask() El 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. Algunas 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. Eliminar 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. [ rjw: Ajuste del asunto ]

27 Apr 2026, 20:32

Type Values Removed Values Added
CVSS v2 : unknown
v3 : unknown
v2 : unknown
v3 : 5.5
First Time Linux linux Kernel
Linux
CWE CWE-617
CPE cpe:2.3:o:linux:linux_kernel:7.0:rc3:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc4:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc2:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc5:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc6:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc1:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:6.18:-:*:*:*:*:*:*
cpe:2.3:o:linux:linux_kernel:7.0:rc7:*:*:*:*:*:*
References () https://git.kernel.org/stable/c/3025ca5daa9d682b629c0c958b538e41deeb559d - () https://git.kernel.org/stable/c/3025ca5daa9d682b629c0c958b538e41deeb559d - Patch
References () https://git.kernel.org/stable/c/a8d51efb5929ae308895455a3e496b5eca2cd143 - () https://git.kernel.org/stable/c/a8d51efb5929ae308895455a3e496b5eca2cd143 - Patch
References () https://git.kernel.org/stable/c/f19d1323aa3dd7ead469aef47d9085f8939565d9 - () https://git.kernel.org/stable/c/f19d1323aa3dd7ead469aef47d9085f8939565d9 - Patch

24 Apr 2026, 15:16

Type Values Removed Values Added
New CVE

Information

Published : 2026-04-24 15:16

Updated : 2026-11-11 23:10


NVD link : CVE-2026-31567

Mitre link : CVE-2026-31567

CVE.ORG link : CVE-2026-31567


JSON object : View

Products Affected

linux

  • linux_kernel
CWE
CWE-617

Reachable Assertion