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 02D9B436372 for ; Wed, 6 May 2026 11:34:09 +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=1778067249; cv=none; b=IdBw4vBH1XZhtZVob8KDhEWv9nQWxrcy6KDyXfpPBX/rrZmxTheHlj/bwjO3zu6kQ52SnEP8E1WmEPs2nz+5QRVht2HlgKtPYgDrK+CPO1gobJYPCASoaXFSN7wZgGRXOuARxfspunkb7tdP8+5cudZhOqTouirMVWYm7JpM1dw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778067249; c=relaxed/simple; bh=1AKw64yVT3j8I8X6ux6KiADvF9oYM/EuCDG+Cqb7lhs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QJt6Djk+I4JZM+8lqzWpxje1p1qs+45YOJwf9WfPCrljcVuikMlbK5oCKJP8zuvjaMOJSymv6xdjgE8AF3j1GpjjV2KdHKo7iyzdwIVaH4qpPg45papdZ0a7EuJN6iX72FrdT7eHe18/TdF8fs6akRMPHZQiLNDllaC4asRYP7U= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=vEzReDwx; 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="vEzReDwx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8658DC2BCB8; Wed, 6 May 2026 11:34:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778067248; bh=1AKw64yVT3j8I8X6ux6KiADvF9oYM/EuCDG+Cqb7lhs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=vEzReDwxZVMMQ60Lc4/xruUTEHDtHgE8bmzm92ftGWmrG5EqqMNRLchIVPVTXIf59 e2OzjgC6gTZmpAPhJPJ3BxA6TQPLs3mHqadCTDQflKZXI1yhUqYJPmgrmK0NFvXvHu vrLOmAJYGpi0n/9IwDBSUZ6RxGb8OY04G4fNz9CI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43245: ntfs: ->d_compare() must not block Date: Wed, 6 May 2026 13:29:21 +0200 Message-ID: <2026050601-CVE-2026-43245-6e9f@gregkh> X-Mailer: git-send-email 2.54.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=2312; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JI5LWQEZMUDqrLrhtuMFsbyAcR0iyhZuSuBwfmz630A=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm/VQ8+ri6p3POI9Y+rl1tthfwMNfftr5yv5bZcjc25y R98QeVxRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzkxhmGBbPvTA73d7+i7rc3 4YJnKEf8tvPrGRjmR5nIZtqyTmE+5CZ8RULFKGeifWMuAA== 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: ->d_compare() must not block ... so don't use __getname() there. Switch it (and ntfs_d_hash(), while we are at it) to kmalloc(PATH_MAX, GFP_NOWAIT). Yes, ntfs_d_hash() almost certainly can do with smaller allocations, but let ntfs folks deal with that - keep the allocation size as-is for now. Stop abusing names_cachep in ntfs, period - various uses of that thing in there have nothing to do with pathnames; just use k[mz]alloc() and be done with that. For now let's keep sizes as-in, but AFAICS none of the users actually want PATH_MAX. The Linux kernel CVE team has assigned CVE-2026-43245 to this issue. Affected and fixed versions =========================== Fixed in 6.18.16 with commit 142c444a395f4d26055c8a4473e228bb86283f1e Fixed in 6.19.6 with commit fb4b1f969ba01fa1d4088467a02fc1e5f0806710 Fixed in 7.0 with commit ca2a04e84af79596e5cd9cfe697d5122ec39c8ce 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-43245 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/dir.c fs/ntfs3/fsntfs.c fs/ntfs3/inode.c fs/ntfs3/namei.c fs/ntfs3/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/142c444a395f4d26055c8a4473e228bb86283f1e https://git.kernel.org/stable/c/fb4b1f969ba01fa1d4088467a02fc1e5f0806710 https://git.kernel.org/stable/c/ca2a04e84af79596e5cd9cfe697d5122ec39c8ce