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 A8BEF349AED for ; Tue, 16 Dec 2025 13:41:01 +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=1765892461; cv=none; b=GJBML8odi+cUGXqtt/S2OgGcg2FX6GpabNkGswnIkIp7eP8k1MTFzttDG/zlnv5LFLzicrC+TJG7tSkS+wT0K78BLgNpNDJD1/nxq4843GxgGqlL/AeTCRZlzdPCuA9QWOi+UxhPBr/1uT+DHirs/cRZjNg0ceA7zZqRo5SdwCg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892461; c=relaxed/simple; bh=uFfPb6CRw05pnXFH/l26iHuYBnw/HiocZzw1bjB62Tk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZFkt/xS11FK4PCvo8movhB5VGQeKNmQPO1hIg5G4IYX5s2/8VH1X8XHlSwMQRDGVuM2E7lME9Z4Jf28nVT6XFJviqYYdJS0fHRlWeerQf7TPgnRD1gjkW5T2E/piatEw8GS4/yKWZha6FB6mW7WXzqPx+BGyGXa7ro5tQpwwE3k= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fmg1HTU1; 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="Fmg1HTU1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DF2AEC4CEF1; Tue, 16 Dec 2025 13:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892461; bh=uFfPb6CRw05pnXFH/l26iHuYBnw/HiocZzw1bjB62Tk=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Fmg1HTU1pD3BDRwCel3ghLfPt89qp9iIOf/tqq8SF5UKKzPmksU3DyiQD1h6Zk4aN JBoK6m97AhTxH9iEtYfhC6eOWX21pvrA2dhiPnIAI5Tz6TYhygD3opUS/A5G9APIZp irBYdSatjyDb0J3h8cgPH58BIfxGnhKNdJLqCcUc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40361: fs: ext4: change GFP_KERNEL to GFP_NOFS to avoid deadlock Date: Tue, 16 Dec 2025 14:40:47 +0100 Message-ID: <2025121644-CVE-2025-40361-50ca@gregkh> X-Mailer: git-send-email 2.52.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=2493; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=kDSQarPtJfvl2bAMyDqJInCw9afIbPeGTvMzeacIFsw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOiTGiLWtCv2cu8lS3mRmqzr1+2rw7a78zCT6bLzHh1 lKRydvZO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizmIM8x353dhcPu9c8WZP TcacuecUS7xs/zLMd9tVb3dwrlfm7/PmmSe+/XjrPf/JEwA= 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: fs: ext4: change GFP_KERNEL to GFP_NOFS to avoid deadlock The parent function ext4_xattr_inode_lookup_create already uses GFP_NOFS for memory alloction, so the function ext4_xattr_inode_cache_find should use same gfp_flag. The Linux kernel CVE team has assigned CVE-2025-40361 to this issue. Affected and fixed versions =========================== Fixed in 5.10.247 with commit 5e6b27f4e68682aa3db9f83ca04adef89903159b Fixed in 5.15.197 with commit bb7d0d13c6e1f061464d1c425b08348a4e0c235d Fixed in 6.1.159 with commit add8458cac0b33a5e7a6b98457b38baea9600859 Fixed in 6.6.117 with commit 199ab7b43c5ef7d384f6a08e786e107b3509acda Fixed in 6.12.58 with commit 238f7a7356c33a9797a6297c6fdfd87f113b2325 Fixed in 6.17.8 with commit 009127b0fc013aed193961686c28c2b541a5b2f3 Fixed in 6.18 with commit 1534f72dc2a11ded38b0e0268fbcc0ca24e9fd4a 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-2025-40361 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: fs/ext4/xattr.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/5e6b27f4e68682aa3db9f83ca04adef89903159b https://git.kernel.org/stable/c/bb7d0d13c6e1f061464d1c425b08348a4e0c235d https://git.kernel.org/stable/c/add8458cac0b33a5e7a6b98457b38baea9600859 https://git.kernel.org/stable/c/199ab7b43c5ef7d384f6a08e786e107b3509acda https://git.kernel.org/stable/c/238f7a7356c33a9797a6297c6fdfd87f113b2325 https://git.kernel.org/stable/c/009127b0fc013aed193961686c28c2b541a5b2f3 https://git.kernel.org/stable/c/1534f72dc2a11ded38b0e0268fbcc0ca24e9fd4a