From mboxrd@z Thu Jan 1 00:00:00 1970 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 9457633F5A4 for ; Fri, 8 May 2026 14:22:34 +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=1778250154; cv=none; b=SCTbqPU3tXq9FlFzKHpyYH+E2IYm4YwgbqAislN/k1wKxD1riLqLdquqhYnE0EM/fNM75e98txR2CKqwRX/bKwPNg8l7rwsDm4V4aHqilL5aaAkw8y1wXXR/bcXHm1a3bznvBcqJ//wzC7Wh62MvESO54Bu5SEnpEjQKyXjeLic= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250154; c=relaxed/simple; bh=TVl3QJpu5f9J8FgLWX+shX+RDj569Phmyav52jRKs+0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Un0SnAU+ISkeO/n0DR0YTioFuG3/mugL+gXzeGHWVofeUzEZcqE71+QNG1h6GjrbgyANCy7rTo0mZGUIex1m5kM4yTH0cZLw7a5NmlJr19Fefmq++pR1FvgrozB3+d7JVnbPo7HCUdPqkqv+VFGhovHr5iaRwixY0h1KCwJ1pp0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RPtkmttC; 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="RPtkmttC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E659DC2BCB0; Fri, 8 May 2026 14:22:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778250154; bh=TVl3QJpu5f9J8FgLWX+shX+RDj569Phmyav52jRKs+0=; h=From:To:Cc:Subject:Date:Reply-To:From; b=RPtkmttCTHZopEezInvaeoLgtQxDaAcWgmhxmSdYBhxYIMBA65hC8QmtwtmNfxvB3 vUI7HmlT8u++Yv0qs4zmwP6xP+ez2BfSnUOA7R3ipkxDsh4KYW+lE4kAgSPZ4Iw+0v dYfc0a0TpjYl0gVs6vd6Qy8AbAGAhlCwhj2wLXwk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43365: xfs: fix undersized l_iclog_roundoff values Date: Fri, 8 May 2026 16:21:34 +0200 Message-ID: <2026050827-CVE-2026-43365-b7ce@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=4894; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AU9srXH0Z86JGh21onxk/J+PFH9AGdlJNRaTxBtVbQw=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/P6ZbrEzNUZzx70vdd4ervW+2fU5/tC/KYu6ejtOr7 hWfjQz61BHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATMXdmmGe7lmvdzvitT3cL WF3P8Ods8gvfosowV6Domer1C1cKXwZ+LGOpcA5NqKmrBQA= 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: fix undersized l_iclog_roundoff values If the superblock doesn't list a log stripe unit, we set the incore log roundoff value to 512. This leads to corrupt logs and unmountable filesystems in generic/617 on a disk with 4k physical sectors... XFS (sda1): Mounting V5 Filesystem ff3121ca-26e6-4b77-b742-aaff9a449e1c XFS (sda1): Torn write (CRC failure) detected at log block 0x318e. Truncating head block from 0x3197. XFS (sda1): failed to locate log tail XFS (sda1): log mount/recovery failed: error -74 XFS (sda1): log mount failed XFS (sda1): Mounting V5 Filesystem ff3121ca-26e6-4b77-b742-aaff9a449e1c XFS (sda1): Ending clean mount ...on the current xfsprogs for-next which has a broken mkfs. xfs_info shows this... meta-data=/dev/sda1 isize=512 agcount=4, agsize=644992 blks = sectsz=4096 attr=2, projid32bit=1 = crc=1 finobt=1, sparse=1, rmapbt=1 = reflink=1 bigtime=1 inobtcount=1 nrext64=1 = exchange=1 metadir=1 data = bsize=4096 blocks=2579968, imaxpct=25 = sunit=0 swidth=0 blks naming =version 2 bsize=4096 ascii-ci=0, ftype=1, parent=1 log =internal log bsize=4096 blocks=16384, version=2 = sectsz=4096 sunit=0 blks, lazy-count=1 realtime =none extsz=4096 blocks=0, rtextents=0 = rgcount=0 rgsize=268435456 extents = zoned=0 start=0 reserved=0 ...observe that the log section has sectsz=4096 sunit=0, which means that the roundoff factor is 512, not 4096 as you'd expect. We should fix mkfs not to generate broken filesystems, but anyone can fuzz the ondisk superblock so we should be more cautious. I think the inadequate logic predates commit a6a65fef5ef8d0, but that's clearly going to require a different backport. The Linux kernel CVE team has assigned CVE-2026-43365 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 5.15.203 with commit 5afae524f83d6a18517298491a5624cb0eae5029 Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 6.1.167 with commit 2ecda4b83749c1fef0c9dea4fd5e8b513aba3e40 Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 6.6.130 with commit 41e91dff2d3974730b5ee50daa8e27ec254cbf91 Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 6.12.78 with commit e88ce9f0536f3b2149afb70625cfc4bd74a4ac6d Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 6.18.19 with commit 446a1f5bb64ba38adb93cb043ff0f7b85e8937ca Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 6.19.9 with commit 5e7148402dfc4a5b7894d8e97b15e5c2e70924aa Issue introduced in 5.14 with commit a6a65fef5ef8d0a6a0ce514eb66b2f3dfa777b48 and fixed in 7.0 with commit 52a8a1ba883defbfe3200baa22cf4cd21985d51a 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-43365 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_log.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/5afae524f83d6a18517298491a5624cb0eae5029 https://git.kernel.org/stable/c/2ecda4b83749c1fef0c9dea4fd5e8b513aba3e40 https://git.kernel.org/stable/c/41e91dff2d3974730b5ee50daa8e27ec254cbf91 https://git.kernel.org/stable/c/e88ce9f0536f3b2149afb70625cfc4bd74a4ac6d https://git.kernel.org/stable/c/446a1f5bb64ba38adb93cb043ff0f7b85e8937ca https://git.kernel.org/stable/c/5e7148402dfc4a5b7894d8e97b15e5c2e70924aa https://git.kernel.org/stable/c/52a8a1ba883defbfe3200baa22cf4cd21985d51a