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 025F33D410E for ; Fri, 24 Apr 2026 14:44:10 +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=1777041851; cv=none; b=A2FngVckyjBiYVMYnaCQfTgsadjp3RjK/NcwxRmAtLG+COK3WIUdpknQS59HKtRJolagNF78vD6JjGsIWFUw1VjWtUSxcXHIlpMWn5D2O6krsv1qw9Dk4XTmie1UiHkBreeC8/YBFALampRaPjWRT4rgQFxR0ltbmMBlbO9ersY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777041851; c=relaxed/simple; bh=l5VlAPqQ5WiqVhZybYEKZzWrG/HgRR72s/0FYiaTBLY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=n1PsNIIeGnLAL2gWSK9iiK0GGv6Dqh0CzWoGqEo+oRboq2JtIa5YzzQGgzaZmeZjEoFp6EcaBIr2Sl+ZWjGs4SFSATxhrp2VE+oPn9eLBFCZ6PMKWZTcbZvMfvOF4NM83OSYNv79ezICRdpUEzLOTuOC4gI3FdWr9NcCJ4kjbKw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Iw6S4rLO; 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="Iw6S4rLO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 56DA1C19425; Fri, 24 Apr 2026 14:44:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777041850; bh=l5VlAPqQ5WiqVhZybYEKZzWrG/HgRR72s/0FYiaTBLY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=Iw6S4rLOJ+p7p6F0BOWhD3x+uyA3cfiTpVxvOUhPj1ZJWVdx4yXtT6VI8626sgKzs QZUOyzKdJq98s99AcODHuvbxKisGjFUoy1+DLTvSGrUgTbx6GoGDDTJXGbu2udJRY0 5JaIt7tmqIxiui7HToiotF4BJg6g9XuVlZ2yjI4U= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31577: nilfs2: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map Date: Fri, 24 Apr 2026 16:43:13 +0200 Message-ID: <2026042410-CVE-2026-31577-5e81@gregkh> X-Mailer: git-send-email 2.53.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=2595; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Ylhh+3CyXY2fFACrx4RZXTNhi/TW0BdlEcNaS81zXXE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmvG+tyU62dM9zfmx0wFPpb8enF13nXTzo3V+4XN+VSb Pl+hLW0I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay2IxhwVlLaWaFY2lfnlza +Xe5kGun0D2z1QwL5rAxnNCzk9zM+l9ZcfqBZc+f/7tkBAA= 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: fix NULL i_assoc_inode dereference in nilfs_mdt_save_to_shadow_map The DAT inode's btree node cache (i_assoc_inode) is initialized lazily during btree operations. However, nilfs_mdt_save_to_shadow_map() assumes i_assoc_inode is already initialized when copying dirty pages to the shadow map during GC. If NILFS_IOCTL_CLEAN_SEGMENTS is called immediately after mount before any btree operation has occurred on the DAT inode, i_assoc_inode is NULL leading to a general protection fault. Fix this by calling nilfs_attach_btree_node_cache() on the DAT inode in nilfs_dat_read() at mount time, ensuring i_assoc_inode is always initialized before any GC operation can use it. The Linux kernel CVE team has assigned CVE-2026-31577 to this issue. Affected and fixed versions =========================== Fixed in 6.12.83 with commit 449ec5fc99f45974525ba9eea16b6670c45cd363 Fixed in 6.18.24 with commit c36e206f302f1ddefed92d09ecbba070e1ae079e Fixed in 6.19.14 with commit 41de342278ae025c99cc8d33648773f05e306cf1 Fixed in 7.0.1 with commit 97fb7afec404912d967a7d4715f37742666b3084 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-31577 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/dat.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/449ec5fc99f45974525ba9eea16b6670c45cd363 https://git.kernel.org/stable/c/c36e206f302f1ddefed92d09ecbba070e1ae079e https://git.kernel.org/stable/c/41de342278ae025c99cc8d33648773f05e306cf1 https://git.kernel.org/stable/c/97fb7afec404912d967a7d4715f37742666b3084 https://git.kernel.org/stable/c/4a4e0328edd9e9755843787d28f16dd4165f8b48