Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 503193DD524 for ; Fri, 24 Apr 2026 14:37:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041464; cv=none; b=GgP3S9QnQ8Nlx8KYxkLD/a8PxHafwXDIS8iEES5+WGAeYeDGV9bADy5zlxlZQKjw9mu23iZffn8chBHeLDHXIxW6jJWF90EI2ZZkSjJAzldjWznZIskixliU+sbNESmAFD3Rpw7gFDWFro+TVbxAkR4wu6ykbwsw7IXTTXukAvk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041464; c=relaxed/simple; bh=Vaj8qccdi9PmqLvh5psmVqE8KoFY0oCVRp10KC5GByc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EU/r9qyU8ilBUPo9hHq9jV4N6syPq7eGxa3MksbsNvLvhmg8vFoRoKUoksMsTb3njGdfama91X/iWHGv+figzFsqI08eXEqH/ppWGV7ke26SmtTuAiS6TjxRYWldCfzoOaOnxbBCBJOescs21rmup3scgfjj0l2gaVFd38uBPe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Qic0I1a3; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Qic0I1a3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE0DAC19425; Fri, 24 Apr 2026 14:37:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041464; bh=Vaj8qccdi9PmqLvh5psmVqE8KoFY0oCVRp10KC5GByc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Qic0I1a3bwCbrnjH37OSnHGupaWB0OCIayoKBUKIklHQP7EW7Aenl6l8+nnN99E3t sRJMiJ2Zcu3a5IIUh9e/NsH535+Dnc/JQpJVvChzMSe2DkqoFEHsDhy9J9mVCbOoyb bkQFrSdjH93/2yKMuaLykDMa9yF1mDm90hwHHSqw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31567: PM: sleep: Drop spurious WARN_ON() from pm_restore_gfp_mask() Date: Fri, 24 Apr 2026 16:36:11 +0200 Message-ID: <2026042400-CVE-2026-31567-6abf@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2825; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jtPK+/xlJHwgs1jnm2XWCD3ehBPKsraHzuMx3Q3j/so=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmv6y/e+P/wTqugcd6/pEXzv5feCxdXkXO+O1Eoe863z m8WGT0RHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRb0cY5vDm3ebOTHzDtcrU rKrn2KYL/7Wn+TLMdzgb+THrTNvUvm3a6wU9Hst+kwmUAAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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 ] The Linux kernel CVE team has assigned CVE-2026-31567 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d and fixed in 6.18.21 with commit 3025ca5daa9d682b629c0c958b538e41deeb559d Issue introduced in 6.18 with commit 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d and fixed in 6.19.11 with commit f19d1323aa3dd7ead469aef47d9085f8939565d9 Issue introduced in 6.18 with commit 35e4a69b2003f20a69e7d19ae96ab1eef1aa8e8d and fixed in 7.0 with commit a8d51efb5929ae308895455a3e496b5eca2cd143 Issue introduced in 6.17.8 with commit 4ddf7293928cb619077724b7d828734da8181e6c Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-31567 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/power/main.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/3025ca5daa9d682b629c0c958b538e41deeb559d https://git.kernel.org/stable/c/f19d1323aa3dd7ead469aef47d9085f8939565d9 https://git.kernel.org/stable/c/a8d51efb5929ae308895455a3e496b5eca2cd143