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 52B5039150D for ; Sun, 19 Jul 2026 12:03:41 +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=1784462622; cv=none; b=sF6KCz8NfAtSPSqnC6XOI6f90jvgO23qnnLpGppuzjeuVsIPgz6Wu7J+eMbPy1r8GHXd8wHLv60VtD5nJv8/6jQAhWF/WsOaumLscya3kmzCOGAn0hi+UJ+sELa/Vp6ujpRVHvI1a5drmgo1f5Nci80bEKbcMLOPf84zHAuFVlY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462622; c=relaxed/simple; bh=zSirxgp5i4TNR9TI6VegWLLZyIdm0Mjfg91Fl42IMWg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=bFgp6QgAmvrPxQZNmH+dOFhKnFCsBFBJ7emLGw4aJxBHeITFUctS7W+EzGEL4yOC+Zof6uE+FXCut6eHUNUt7OItqH+m6WAwvTmDaRxz3HJ1lsCsygLHivWh5N6J0lhqLweCBmI+MvDszyEPwSgRYJHkWpt6eCSY1zGuQGsSSWo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IR6pVjBD; 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="IR6pVjBD" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA7EC1F000E9; Sun, 19 Jul 2026 12:03:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462621; bh=GLAV8bobQgXKK/pogHlrLDthH4KQEFOkwCaLMZMJwzI=; h=From:To:Cc:Subject:Date:Reply-To; b=IR6pVjBDsw51R8LkM7heY9Flnlk8JZ8wP2kr876JLG+nlHKd2rSxyC9eT7brEmaH/ EIDZde9RwoiuF2fanhEWeDeALH3Z4gHSPa+4kgZW8vomG/WismKag4irUidTTCFTVq sbCF4w56WveNUFD9DBkOBvtm+yLQKi2r5sNvEsWQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63817: f2fs: validate compress cache inode only when enabled Date: Sun, 19 Jul 2026 14:02:34 +0200 Message-ID: <2026071905-CVE-2026-63817-2f5c@gregkh> X-Mailer: git-send-email 2.55.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=3558; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mZV3KYa+6l6Gi9j6I30H3Vvp+VutcZLmgmEsG8n0k0U=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe/aWy7WoOhhe3OEi67lM6rn0tKC5x3d6HVFQmRqva a6Tu1u/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACbydRPDPJPVhpO72ypDek/p yXhEH/q17PKFEwwLDi5d6KZ2jVt47t0FogLnpu/Zsm/6CQA= 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: f2fs: validate compress cache inode only when enabled F2FS_COMPRESS_INO() uses NM_I(sbi)->max_nid as the synthetic inode number for the compressed page cache inode. That inode only exists when the compress_cache mount option is enabled. When compress_cache is disabled, max_nid is outside the valid inode range. A corrupted directory entry that points to ino == max_nid should therefore be rejected by f2fs_check_nid_range(). However, is_meta_ino() currently treats F2FS_COMPRESS_INO() as a meta inode unconditionally, so f2fs_iget() bypasses do_read_inode() and its nid range check, and instantiates a fake internal inode instead. Gate the compressed cache inode case on COMPRESS_CACHE, matching f2fs_init_compress_inode(). With compress_cache disabled, ino == max_nid now follows the normal inode path and is rejected as an out-of-range nid. The Linux kernel CVE team has assigned CVE-2026-63817 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 6ce19aff0b8cd386860855185c6cd79337fc4d2b and fixed in 6.1.177 with commit 29115b8c9172d34e67ab26cc4f6c209b7a236d7a Issue introduced in 5.14 with commit 6ce19aff0b8cd386860855185c6cd79337fc4d2b and fixed in 6.6.144 with commit 13e4b59d3a9413f66f116fa6c4828519b960a5ea Issue introduced in 5.14 with commit 6ce19aff0b8cd386860855185c6cd79337fc4d2b and fixed in 6.12.95 with commit 16161444c30d8dff9428abbae42b72ce4e32a932 Issue introduced in 5.14 with commit 6ce19aff0b8cd386860855185c6cd79337fc4d2b and fixed in 6.18.38 with commit 77f216ff9ce5cde8eed9f6d12707e906dffdc9f7 Issue introduced in 5.14 with commit 6ce19aff0b8cd386860855185c6cd79337fc4d2b and fixed in 7.1.3 with commit 0969926d987bbde9a1aa49da317582ba37095805 Issue introduced in 5.14 with commit 6ce19aff0b8cd386860855185c6cd79337fc4d2b and fixed in 7.2-rc1 with commit 5073c66a96a9c23c0c2533ed4ed06e42f9021208 Issue introduced in 5.13.19 with commit a23706426da9b611be5beae0f3faa260fb453b4e 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-63817 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/f2fs/inode.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/29115b8c9172d34e67ab26cc4f6c209b7a236d7a https://git.kernel.org/stable/c/13e4b59d3a9413f66f116fa6c4828519b960a5ea https://git.kernel.org/stable/c/16161444c30d8dff9428abbae42b72ce4e32a932 https://git.kernel.org/stable/c/77f216ff9ce5cde8eed9f6d12707e906dffdc9f7 https://git.kernel.org/stable/c/0969926d987bbde9a1aa49da317582ba37095805 https://git.kernel.org/stable/c/5073c66a96a9c23c0c2533ed4ed06e42f9021208