Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795099327; b=sfIxy2nVrr9ftj0dWKMLSfMxy+FmG6IgkVOEVSNhirK3NLaGMwpRqtIvT/ug82jyNTEh +IrfkP0raVgO/bDGuIwbFd8RSPvpygEqMhm7I6lLawnt3UzklayHFCaR2vafrxBTvW5pu z98sxAJE6BgD9GDCJ8L162Yx6om75A0Qb6ucVgYbT8nNgjLX8cJUwl3utCta7oNaUaOCI tEf6zuY/YwMqVMQ5DRWNr6wuafZgVtHQih6Jl3XjjE4wCwsuRXWPWAQYBe180mYQE1iMv MfNrK4wAChkDFKt5Is1yWbKZUHrua3MmEEXcjty07beS30+HpL1REnYxmkO5y8IEH7g== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795099327; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=9stGH3PJ3mIhP77XU/+DPtwamdetIqS/iWjacnEeltY=; b=KqSfCq6j1Hb+KSsUga6c8duxhTuDU+E/NpqjzXlcu9yGbPY0vPlw5RYZxxE1iCbhEX3T Xr8E4phvbX/9lXnTqxzf5Vz7QZmwk/GE5fJDDmHkckdGkiqLYr5pWb/DIrCbKBhqBaImU rKpMGSMm1hlx/IIWfsSZsrzSyg7bSXBtLwGEZtStD4KTmGIm9r31wUeljfcpt3Fy0JQpK 9IlVGmNjDMP0EJVaqa1PlD0icnmXzca1h6P3wNz4XGJwDQBAYad29gpZTbzDVqAvjBmZ7 nXmGFaa/GnHagn7m7TSlxhj0u177cpcfIBDTO2i49dI0FJgX6wExMr8vCprkxh8k6Sg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=fmJgtqcl; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 8D338606A320 for ; Thu, 19 Nov 2026 14:42:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=fmJgtqcl Received: by smtp.kernel.org (Postfix) with ESMTPSA id 22DF51F000C5; Thu, 19 Nov 2026 14:42:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795099327; bh=9stGH3PJ3mIhP77XU/+DPtwamdetIqS/iWjacnEeltY=; h=From:To:Cc:Subject:Date:Reply-To; b=fmJgtqclRel78O4Vi15wThYwDBeqRAaahiSXPLU+o4PRJywRJy2hKuYLWg6AkWAVs 4cWuR2q2UkJOBFTXunD4pM7yjJuENevvcbkBEDQUJBppAmwHMNi41j2EDDaeMtvZR2 YKnjGrmOeg3lNxMZitOmKI1hgr5JX2Vb2pAtn3PM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99395: xfs: bound inode fork length against the fork size during log recovery Date: Thu, 19 Nov 2026 15:24:53 +0100 Message-ID: <2026111956-CVE-2026-99395-bb3a@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3188; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Wmu3WuB4RHGVh1uox+MWOgYtM0LPOveanG2OeTx/Ra8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFn/2WrC1h9q4dwoZp71P+DX4oeRze+e7zx3dvW6iJWZ6 /aH5qxX6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJtL1mWDBjf3519sTsR+ub s/938IsWuL55NJNhwZENVSXlqX/iHW496zyTsbz53oot9wA= 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: xfs: bound inode fork length against the fork size during log recovery xlog_recover_inode_commit_pass2() copies an inode log item's data/attr fork region into the inode buffer using the on-log region length without bounding it against the fork capacity, e.g.: len = item->ri_buf[2].iov_len; memcpy(XFS_DFORK_DPTR(dip), src, len); The only guard is an ASSERT, which is a no-op on production kernels (CONFIG_XFS_DEBUG off), and xfs_dinode_verify() runs only after the copy. A crafted image with a dirty log can therefore drive a heap out-of-bounds write at mount time. The XFS_ILOG_DBROOT sibling already passes XFS_DFORK_DSIZE as a bound; the DDATA/DEXT and ADATA/AEXT memcpy paths did not. Bound each logged fork region against the destination fork size before copying it, and reject the log item with -EFSCORRUPTED when it does not fit. Because the recovered inode is only verified after the fork data has been copied in, the checks are done up front, before any memcpy into the on-disk inode. The Linux kernel CVE team has assigned CVE-2026-99395 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 658fa68b6f34f73c7e4023489accd34c1db91cb1 and fixed in 6.12.117 with commit af559d87fdd921b90c86125f78d8b97d754432dd Issue introduced in 5.8 with commit 658fa68b6f34f73c7e4023489accd34c1db91cb1 and fixed in 6.18.61 with commit f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe Issue introduced in 5.8 with commit 658fa68b6f34f73c7e4023489accd34c1db91cb1 and fixed in 7.3.2 with commit e2768e65a5f2f942c831e3df3b06ad7332d423e6 Issue introduced in 5.8 with commit 658fa68b6f34f73c7e4023489accd34c1db91cb1 and fixed in 7.4-rc1 with commit 9232301894a06e664d8de2da97175cf98419bd16 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-99395 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/xfs/xfs_inode_item_recover.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/af559d87fdd921b90c86125f78d8b97d754432dd https://git.kernel.org/stable/c/f2cc5001ffcc1d8e5e16607ce4b6920ea30c2cfe https://git.kernel.org/stable/c/e2768e65a5f2f942c831e3df3b06ad7332d423e6 https://git.kernel.org/stable/c/9232301894a06e664d8de2da97175cf98419bd16