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 0DA012DE6E8 for ; Thu, 3 Jul 2025 08:39:17 +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=1751531957; cv=none; b=hgsQVWp/6n1g2xbjfV/GbXtLu4aTuC98c3B7DefZNWGJdPVATyNP0jgT7Dr0vQmQOQmQ0FIbRPVmh/zy3ILxFF6o5KRKWc5JOeBO0q7xG5qaIewqIoNQlaXpSlC/ezXzuKc9NzHrqof3O7/OSMDkxPPKF5p1ZbZVDp84Gjwm3jk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531957; c=relaxed/simple; bh=+jQIyKOuFJDPXaxIDHzvr5/h40BZTCcsgbUx7+4esZo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=E31AKoV5I+Xs/zXthXGGkWrKWkrTZm4roxqN22jXPNK74qranOLhzZiSS/NlqtR1LN6L161+UEJ4TJd2nhqLVOqjRAgLoBeZ3s9idf+r3PvW27JEFrQzShiW/4raGZSv01T1tzYONMGRs5QCIWlfgKNR/wLkoAnon2xhbNn6jZc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=uSVKQmMa; 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="uSVKQmMa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 87CEDC4CEE3; Thu, 3 Jul 2025 08:39:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531956; bh=+jQIyKOuFJDPXaxIDHzvr5/h40BZTCcsgbUx7+4esZo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=uSVKQmMaGIxlBF5HtxxjHc6jTnzEHLDvpypfH8n6E6J43i+BsWkd0XvV4E3x7BFHN n5Kr8xkZ/0iXwlyhXtrL8wxEzCKAQz7J3InfqB9+QIta6SV36STdZsoau+XjVchJ7k RfX++gli3Lpfqde1Kr4qnTzw+P265eznApeQ0gdY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38167: fs/ntfs3: handle hdr_first_de() return value Date: Thu, 3 Jul 2025 10:36:23 +0200 Message-ID: <2025070341-CVE-2025-38167-535f@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=3082; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9856HnGPevkGhAqhgbKHz2Xay3uBP+7245rd9mp9obM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDnf3vP2/wMDW5M3JvQycxlIXRJUmLyp8orL4hHdf2 lIxy61MHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARpbUMC7Zt4Ija9d+w5bn2 wWvLxKMZ+OQ23GdYcCNuxwbP36yta0TCuc0nSSz0UWaYDwA= 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/ntfs3: handle hdr_first_de() return value The hdr_first_de() function returns a pointer to a struct NTFS_DE. This pointer may be NULL. To handle the NULL error effectively, it is important to implement an error handler. This will help manage potential errors consistently. Additionally, error handling for the return value already exists at other points where this function is called. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2025-38167 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 5.15.186 with commit 5390b3d4c6d41d05bb9149d094d504cbc9ea85bf Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.1.142 with commit 83cd0aa74793384dbdffc140500b200e9776a302 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.6.94 with commit 701340a25b1ad210e6b8192195be21fd3fcc22c7 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.12.34 with commit 2d5879f64554181b89f44d4817b9ea86e8e913e1 Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.15.3 with commit 4ecd0cde89feee26525ccdf1af0c1ae156ca010b Issue introduced in 5.15 with commit 82cae269cfa953032fbb8980a7d554d60fb00b17 and fixed in 6.16-rc1 with commit af5cab0e5b6f8edb0be51a9f47f3f620e0b4fd70 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-38167 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/ntfs3/index.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/5390b3d4c6d41d05bb9149d094d504cbc9ea85bf https://git.kernel.org/stable/c/83cd0aa74793384dbdffc140500b200e9776a302 https://git.kernel.org/stable/c/701340a25b1ad210e6b8192195be21fd3fcc22c7 https://git.kernel.org/stable/c/2d5879f64554181b89f44d4817b9ea86e8e913e1 https://git.kernel.org/stable/c/4ecd0cde89feee26525ccdf1af0c1ae156ca010b https://git.kernel.org/stable/c/af5cab0e5b6f8edb0be51a9f47f3f620e0b4fd70