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 DCB12391512 for ; Sun, 19 Jul 2026 12:03:43 +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=1784462625; cv=none; b=jKvhBorG82nJuNuIjMWMT5T2wrKZhPzlrWj/guxV+kDCiQECCUADij5Vh8YhqrtPYhysmVnUZnva+swTUAdleiOvywCGeV06KApvShruOmQlOICP488gkblCnV53LSxzjcDdr5xk8gKIX1x/7LlLoDeiV0QywTjUFE8mMC+HaHk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462625; c=relaxed/simple; bh=dz9Er2UwvjdPOPeRrNlt3O5J7l8BhMXg3yQK0kOvudQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TgrtuDHqbfTLrCbRxICtmf7hOgxXkqDva363QIfqozeVgBIq1Ww0qxgiD4sSRKpiSQ5BfiwJXxUMygaaX3tZqXwvnMN1IM9yxZUadjvSclPOIsy518PQtf+antpiXADal/XjG1msn/uwgvaFvZxa7sQ61Xmz5yV/3vYOJxysuXE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=K6kmep4k; 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="K6kmep4k" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4E91F1F000E9; Sun, 19 Jul 2026 12:03:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462623; bh=NMI2sy30r5eChy1tBWoObxh5rwG9Vbc+ElyQKAPSzfw=; h=From:To:Cc:Subject:Date:Reply-To; b=K6kmep4kHTr5M6hFLZPsyyZ/OhIV3Xo81OdOokB+PEEux4yFMzKtOwQgc4xvEhiPR 0+esaQisgS5gnDSalBnB2y8bAk25QrOgqYnlecNDQOx/c2AqP09ZXJA3loc0UyJ3ac aPsAmWy1NKOQrdDjVBwjWZD8dxMg58YU+M7WlxzU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63818: f2fs: validate orphan inode entry count Date: Sun, 19 Jul 2026 14:02:35 +0200 Message-ID: <2026071905-CVE-2026-63818-f404@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=3042; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SaHOvPXwsnAd2z/ktq9ghpV8G+tDG7GCZ6u6wmAXUok=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe/bGv3AtOrta71jdhgNRm9NPMm0PNnilnxjc6un+8 5GtbapiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyE/wrDXEEGtkf92+7vf/be 3iKZpc6Zs5l1FcM8E/HGqrR5Ak9u6/Z/+LM/PWeVjuthAA== 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 orphan inode entry count f2fs_recover_orphan_inodes() trusts the orphan block entry_count when replaying orphan inodes from the checkpoint pack. A corrupted entry_count larger than F2FS_ORPHANS_PER_BLOCK makes the recovery loop read past the ino[] array and interpret footer or following data as inode numbers. On a crafted image, mounting an unpatched kernel can drive orphan recovery into f2fs_bug_on() and panic the kernel. Validate entry_count before consuming entries so corrupted checkpoint data fails the mount with -EFSCORRUPTED and requests fsck instead. Set ERROR_INCONSISTENT_ORPHAN as well, so the corruption reason can be recorded in the superblock s_errors[] field. This gives fsck a persistent hint even though mount-time orphan recovery failure may leave no chance to persist SBI_NEED_FSCK through a checkpoint. The Linux kernel CVE team has assigned CVE-2026-63818 to this issue. Affected and fixed versions =========================== Issue introduced in 3.8 with commit 127e670abfa7fa150f6550d620ded930f5bdb4e7 and fixed in 6.12.96 with commit 550511a2470f6d204fa07b331f048bd2d3c51280 Issue introduced in 3.8 with commit 127e670abfa7fa150f6550d620ded930f5bdb4e7 and fixed in 6.18.38 with commit 8aad54746c251f2c2370118df766c0c82e2d2091 Issue introduced in 3.8 with commit 127e670abfa7fa150f6550d620ded930f5bdb4e7 and fixed in 7.1.3 with commit 2e12381d4495dc8b0ff042c6856022b2e359835c Issue introduced in 3.8 with commit 127e670abfa7fa150f6550d620ded930f5bdb4e7 and fixed in 7.2-rc1 with commit 846c499a65816d13f1186e3090e825e8bb8bcb8b 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-63818 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/checkpoint.c include/linux/f2fs_fs.h 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/550511a2470f6d204fa07b331f048bd2d3c51280 https://git.kernel.org/stable/c/8aad54746c251f2c2370118df766c0c82e2d2091 https://git.kernel.org/stable/c/2e12381d4495dc8b0ff042c6856022b2e359835c https://git.kernel.org/stable/c/846c499a65816d13f1186e3090e825e8bb8bcb8b