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 E42E73BD643 for ; Fri, 26 Jun 2026 19:44:05 +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=1782503047; cv=none; b=byb8y5mmh3S40ZQxjY1giI8ixOLxrDw6dswxrCnp48OnCZzNUyHunjXfyP9XXJS/FAjV1Sc23VvuIOzshVRxkf6FAB2zcSqzz+L2ly7c7JcIF3SeZbsp8wmvVPSa+xpvWUbf8YmVtzbxvesxRDh34YMnNG7pnAJVzR9IFLDhuE8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782503047; c=relaxed/simple; bh=Y5tCO+7Fdq8iSL3eBFm29/RFDTWSs0QozSF/sNxcZNE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QvtDH3f0qVPFaO0vn/sT89pcAZ504dx5OP+Z9yAgBDKm73CfcBEdIMDk4JeyU0pLvY6kSFhMF1D61KcukfOYm/lhX6PhfrGmv+aO6FdZDQyyQrxlnVk2HF+aOgly2PIVGPVzFm4VbJGC+fr2Vx6UKzZiUJqEOpeMhKIc7m4OQ1w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=D9kkg1z0; 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="D9kkg1z0" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 314B91F000E9; Fri, 26 Jun 2026 19:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1782503045; bh=DmeuCa04M1GtY2I/a9HKDYTW2czSFYyVEyub+LAgDPk=; h=From:To:Cc:Subject:Date:Reply-To; b=D9kkg1z0nR0uPLETKsahfXjyMaGloZpSEoEQRt8KFvrfTedf5Bocg9SGsARliiUFu VQ9i5i/RNFgr2HTxw0Wq7RRWVCVuw0ANUd7Zv1JS6FbODtoxoSAk0glI+f3RP+OdU8 xmBSlLpWtP7cz1sgSYGRpGKvCvPLLKjDKSlFIauc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-53320: nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty() Date: Fri, 26 Jun 2026 20:40:53 +0100 Message-ID: <2026062622-CVE-2026-53320-a56a@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=4000; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=AqafmxBXQ9NRKKmNm/fVHlnt8VaR5o4dq3dp15UNLFY=; b=owGbwMvMwCRo6H6F97bub03G02pJDFl2V5d1WSS/3RrMFfM3jN3i0MRjzRMtrmbnHxHJcfc9O rexZFNQRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyEYyrDgumTnOsbvy6ta6pm SJIr/5mQqJfAwLBg6tXfuT8lUu7885lR/aYivj6z/dACAA== 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: nilfs2: reject zero bd_oblocknr in nilfs_ioctl_mark_blocks_dirty() nilfs_ioctl_mark_blocks_dirty() uses bd_oblocknr to detect dead blocks by comparing it with the current block number bd_blocknr. If they differ, the block is considered dead and skipped. However, bd_oblocknr should never be 0 since block 0 typically stores the primary superblock and is never a valid GC target block. A corrupted ioctl request with bd_oblocknr set to 0 causes the comparison to incorrectly match when the lookup returns -ENOENT and sets bd_blocknr to 0, bypassing the dead block check and calling nilfs_bmap_mark() on a non-existent block. This causes nilfs_btree_do_lookup() to return -ENOENT, triggering the WARN_ON(ret == -ENOENT). Fix this by rejecting ioctl requests with bd_oblocknr set to 0 at the beginning of each iteration. [ryusuke: slightly modified the commit message and comments for accuracy] The Linux kernel CVE team has assigned CVE-2026-53320 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 5.10.258 with commit e0a0c4903cbba351f0f5b5d104960d3a5b23202f Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 5.15.209 with commit 9472d37799a0b9ff9b99639f35961ac2f0b3c9be Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 6.1.175 with commit 65e07964b4b2daf9a54e686cf0fa72d74a9648a8 Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 6.6.141 with commit b88f905d4449b70da6bda547be546e365e44352e Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 6.12.91 with commit 4525658002be3ad310b16bf8db48c8adb6a55d32 Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 6.18.33 with commit e5ff0ba4b6983cdbcc826efc201e7179ece5d46f Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 7.0.10 with commit 94094e70fe292c9566502772d4d4d6d6a99204b1 Issue introduced in 2.6.30 with commit 7942b919f7321f95a777d396ff7894a7a83dc9b0 and fixed in 7.1 with commit be3e5d10643d3be1cbac9d9939f220a99253f980 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-53320 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/nilfs2/ioctl.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/e0a0c4903cbba351f0f5b5d104960d3a5b23202f https://git.kernel.org/stable/c/9472d37799a0b9ff9b99639f35961ac2f0b3c9be https://git.kernel.org/stable/c/65e07964b4b2daf9a54e686cf0fa72d74a9648a8 https://git.kernel.org/stable/c/b88f905d4449b70da6bda547be546e365e44352e https://git.kernel.org/stable/c/4525658002be3ad310b16bf8db48c8adb6a55d32 https://git.kernel.org/stable/c/e5ff0ba4b6983cdbcc826efc201e7179ece5d46f https://git.kernel.org/stable/c/94094e70fe292c9566502772d4d4d6d6a99204b1 https://git.kernel.org/stable/c/be3e5d10643d3be1cbac9d9939f220a99253f980