Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 DC90D3655E0 for ; Sat, 15 Aug 2026 06:17:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774649; cv=none; b=UnQzL1Vci4ABM0s6NwehuuZJRa4bNS3o2bX26TDe1Z/e9F4RRXPXNYOuDMFj72wrwJq3acweCY7B7KdAZkdQFZOJFk4k3DwMxv3u6kw0ylZYW+nZrVNM20kBb/sMnIK6rmDzaUtZmAGPKLjgVhF/xSvctYhiMLYMqEEfUnQqshg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786774649; c=relaxed/simple; bh=Qga41e2ClZAp54YMqjB5u8UkhjLg60WLAI8uUOebPbc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZJmYAbAvMQVuzc1nLwL0VC+cCZxWmhU9BGClox5rBz6jyN9YdXFsgQu5Iq/eGr6wFxRUlmURYig0lt239rPz9JraMaUNg8Ai3Vtv7C66h/EfN2krOyRAt66yr0lyinFJllH8KfyTq4l+G3FI/vaBhUp/8/UOxmK6ZjMlU+c4Cmw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=O3e3IRIk; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="O3e3IRIk" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 339E31F000E9; Sat, 15 Aug 2026 06:17:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786774647; bh=zXhspk5Y99X0HQAuQK00S1ZeYQdxhEajAa1+n7ivUVU=; h=From:To:Cc:Subject:Date:Reply-To; b=O3e3IRIkg1k8AlGnlKhNtj84QJQB4qLWS5WslrUBEIFLqnxU9eFUw/Co/uAuMKDuT Z0Xs/bJYnxG7A9mu3xdMRTsvRmnK1SPFPcbqyxHFl3eBNRNpP6XC2PWs35MWwB01GR 8DA6MNgQQG2AM7HFnqNUhN/dE9BU0akFKZB3pRtw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72209: ntfs: validate attribute values on lookup Date: Sat, 15 Aug 2026 15:04:48 +0900 Message-ID: <2026081545-CVE-2026-72209-b7d3@gregkh> X-Mailer: git-send-email 2.55.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=3676; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=uHExl7Mtum7ZmodryN0yEBbnYxGLNqipscVfxwxKoW4=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDCePeMY73A5YPcGiLvvk5oP99pz5ZtFmL3em/F5Ys HVRQINQRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEykrYJhvkfW4QjHlVuvMB3M 5I28PbXiiHJAH8P8imlM+Tk/mF/8WrzHWItxcQlHgkswAA== 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: ntfs: validate attribute values on lookup ntfs_attr_find() and ntfs_external_attr_find() check that generic resident attribute values fit in their attribute records and that fixed-size resident values are large enough. For variable-length resident formats, however, the fixed part is not enough: embedded length fields can still point callers past the resident value. A crafted image can set a small resident $FILE_NAME value_length while leaving file_name_length large. Callers then trust file_name_length and read past the resident value when converting or comparing the name. This was reproduced with a crafted image under KASAN as a slab-out-of-bounds read from the kmalloc-1k MFT record copy. The stack included ntfs_lookup(), ntfs_iget(), ntfs_read_locked_inode(), ntfs_attr_name_get(), ntfs_ucstonls(), and utf16s_to_utf8s(). Add a shared attribute value validator and use it before a lookup path can return an attribute, including the AT_UNUSED enumeration case where callers inspect returned attributes directly. The helper validates resident value bounds, minimum resident value sizes, variable-length $FILE_NAME fields, and non-resident mapping-pairs metadata that was previously checked separately in both lookup paths. This also preserves the intended resident @val matching semantics in the external attribute lookup path. The old duplicated validation block overwrote the actual resident value length with the type-specific minimum length before comparing @val, so variable-length resident values could fail to match even when the bytes were identical. Keep the comparison on the actual value length, and make ntfs_attrlist_entry_add() compare resident attributes with lowest_vcn zero instead of reading the non-resident union member after a successful resident match. Reject non-resident $FILE_NAME records too: the format requires $FILE_NAME to be resident and callers treat returned records as resident. The Linux kernel CVE team has assigned CVE-2026-72209 to this issue. Affected and fixed versions =========================== Issue introduced in 7.1 with commit 6ceb4cc81ef3409ff79dcb959771f9110787397a and fixed in 7.1.5 with commit e4c36dfac57a7261e9aeb0f3a7f30944a8aefb56 Issue introduced in 7.1 with commit 6ceb4cc81ef3409ff79dcb959771f9110787397a and fixed in 7.2-rc1 with commit d5803e3345dae9c6470bb61869885236276b9a35 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-72209 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/ntfs/attrib.c fs/ntfs/attrlist.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/e4c36dfac57a7261e9aeb0f3a7f30944a8aefb56 https://git.kernel.org/stable/c/d5803e3345dae9c6470bb61869885236276b9a35