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 A60F63043C2 for ; Tue, 19 Aug 2025 17:23:15 +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=1755624195; cv=none; b=Yud1UHPXtXokNp9R6BnbGlOMtFDhaRqISOdHjVdHo2Q9Q5hSkebrECLrOhKhYFYlNQO9ZpfQjEP+d3iBO10X4fpShcUpfkYwL2U2mivkFrVX/FM37FfUQPX6IrUIGmvxkWqlcRh0bpNjkBQwOlBtPE4+7Lh2VnAXJGvirp5vRRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755624195; c=relaxed/simple; bh=LnFri+Cb4o2ROxXtxXlgrP8p5btVQkR6Tt6SN6pkSRo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gYNMShwYHV5uiUElmvgkee+kDTL1IoshZI/1V/50zGXzeeWsdPLqYznyWdn29PfRt0zgQ1vWOfBZgtueUS1k51ERhCEBIJwRzTNkhLNGaMLw4uFOVRgggSBz/5nOFGRiq6WQmzAYp4667BKu5VX9c2GkxreLRRYgDGAWObLHTzo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=lhoRo9V7; 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="lhoRo9V7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A97EEC4CEF1; Tue, 19 Aug 2025 17:23:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755624195; bh=LnFri+Cb4o2ROxXtxXlgrP8p5btVQkR6Tt6SN6pkSRo=; h=From:To:Cc:Subject:Date:Reply-to:From; b=lhoRo9V7p+wY41Uc3FxDla/3FB0d8HKViegbZMNqnAYhEp+nVvFVXL6tSf/rlHye1 5qrLI5B3tMujhkcF0lklkHsytXK73RAowG3nRIO8TFARd8M2wMAcCMU+D4o6m0Lhtl jVo32CEwvmYBHJoATZCPDkMlkkQ9qYTgZjsdZbVA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38615: fs/ntfs3: cancle set bad inode after removing name fails Date: Tue, 19 Aug 2025 19:19:01 +0200 Message-ID: <2025081925-CVE-2025-38615-5f57@gregkh> X-Mailer: git-send-email 2.50.1 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=3155; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=y1jRNpGEnmhGfoCvbv37CApPA4BfNxM7xmF/Itl47z8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlLNj4UfNJ1ImTaxKLctNI39yZ/WFmzUy2Zyyb5cWTQT fOIq8F/O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiPE0MC5YvXzjbwav85sWN vXetMx4p9a5nP8Uwz1bgwbydz2vWVgie1Hpand/KYHnzFwA= 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: cancle set bad inode after removing name fails The reproducer uses a file0 on a ntfs3 file system with a corrupted i_link. When renaming, the file0's inode is marked as a bad inode because the file name cannot be deleted. The underlying bug is that make_bad_inode() is called on a live inode. In some cases it's "icache lookup finds a normal inode, d_splice_alias() is called to attach it to dentry, while another thread decides to call make_bad_inode() on it - that would evict it from icache, but we'd already found it there earlier". In some it's outright "we have an inode attached to dentry - that's how we got it in the first place; let's call make_bad_inode() on it just for shits and giggles". The Linux kernel CVE team has assigned CVE-2025-38615 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 78ab59fee07f22464f32eafebab2bd97ba94ff2d and fixed in 6.6.102 with commit b35a50d639ca5259466ef5fea85529bb4fb17d5b Issue introduced in 5.15 with commit 78ab59fee07f22464f32eafebab2bd97ba94ff2d and fixed in 6.12.42 with commit 3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc Issue introduced in 5.15 with commit 78ab59fee07f22464f32eafebab2bd97ba94ff2d and fixed in 6.15.10 with commit 358d4f821c03add421a4c49290538a705852ccf1 Issue introduced in 5.15 with commit 78ab59fee07f22464f32eafebab2bd97ba94ff2d and fixed in 6.16.1 with commit a285395020780adac1ffbc844069c3d700bf007a Issue introduced in 5.15 with commit 78ab59fee07f22464f32eafebab2bd97ba94ff2d and fixed in 6.17-rc1 with commit d99208b91933fd2a58ed9ed321af07dacd06ddc3 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-38615 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/frecord.c fs/ntfs3/namei.c fs/ntfs3/ntfs_fs.h 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/b35a50d639ca5259466ef5fea85529bb4fb17d5b https://git.kernel.org/stable/c/3ed2cc6a6e93fbeb8c0cafce1e7fb1f64a331dcc https://git.kernel.org/stable/c/358d4f821c03add421a4c49290538a705852ccf1 https://git.kernel.org/stable/c/a285395020780adac1ffbc844069c3d700bf007a https://git.kernel.org/stable/c/d99208b91933fd2a58ed9ed321af07dacd06ddc3