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 6AC3C492181 for ; Fri, 25 Sep 2026 10:28:42 +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=1790332123; cv=none; b=piyN4XlJm4u9Ep1nNc6uCO8WGXyrSvUtJnufvSyWYzu+jW+lkmCtmaeLj8k0e5uIWH9o2TDYoxGvt0BV6kAldrako8Ei0TSkcFj2uzfaNY8tqLf72HOdG1cDLPdo1blW+t5yY840TSXOux6FQ3xpK+Hv7eA45op1hYGkwRUd8xg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790332123; c=relaxed/simple; bh=Wukhlhnuu3TWI+kO2Oi9cxpem8fpjreX2g4l3DkYnTE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ehCTqLTOhxquapOhcOpASNcaKJWvyvco0Zvxq1RX4y6cOzBNFXPPdjUdwgEgEVvtGIqUOv5ERDkHOEow0H1zzHubjgCyiQt/RnZMTTEqIR29RHjnpf8r3EQZY6qRZwhaGzr7GG5cXRpMHnDlwLyn7P/qaKoE8bjo0xqTrPMneI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IjaV60T+; 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="IjaV60T+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C74521F000FF; Fri, 25 Sep 2026 10:28:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790332122; bh=wdat3z5uhfNUovTJ+9pw/Uvca1VE+ett6tDFdKjRWqI=; h=From:To:Cc:Subject:Date:Reply-To; b=IjaV60T+pPWZAdzS86ZfjcnxX7JwedK1RtaR4ei/REW9ZqY7R0DDVOKV17hhSzbop LaUz9IDoG7ygeurEBhJnjOVyBfKY56XejWWdWM11Z1xrFsNbi4eaXFEfm+pYZ/qjAc wToG9LKQ4HRLxusCUcamLnDBGyIgzjleaKze5/wc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97926: ufs: validate cylinder group metadata before caching it Date: Fri, 25 Sep 2026 12:23:49 +0200 Message-ID: <2026092509-CVE-2026-97926-60c2@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=3514; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=QtmeZfs0MzsubLGYDz6wGVmJ0L87Fyt0lsH8Qnvz0m8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFnbvAM/6l5TYL9pK+MY+ilZkq/6z/zQuU2Hz2v7eQRsn +ggpV3eEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPJ6WeYZyLhwJzyRDmlbf5U 6fV1eWGXY8y4GObwaChKV/L178p4fOiOrvDDDIWX5q0A 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: ufs: validate cylinder group metadata before caching it ufs_read_cylinder() copies the cylinder group index and the rotor positions straight from the on-disk group and caches them without any check: ucpi->c_cgx = fs32_to_cpu(sb, ucg->cg_cgx); ucpi->c_rotor = fs32_to_cpu(sb, ucg->cg_rotor); ucpi->c_frotor = fs32_to_cpu(sb, ucg->cg_frotor); ucpi->c_irotor = fs32_to_cpu(sb, ucg->cg_irotor); They are then used as indices during allocation and free: - c_cgx indexes the cylinder summary array as UFS_SB(sb)->fs_cs(ucpi->c_cgx), so a value past s_ncg writes a 32 bit count outside the s_csp allocation. - c_frotor becomes a bitmap scan start, start = c_frotor >> 3, and then length = ((s_fpg + 7) >> 3) - start. A start beyond the block bitmap wraps the unsigned length to a huge value, so ubh_scanc() walks far past the cylinder group buffers. c_irotor drives the inode bitmap the same way. A crafted image can set any of these freely, turning an ordinary allocation into an out of bounds access. Reject a cylinder group whose recorded index does not match the group being read, or whose rotors fall outside the group, before the metadata is cached. Valid filesystems keep cg_cgx equal to the group number and the rotors within the group, so only malformed images are rejected. The Linux kernel CVE team has assigned CVE-2026-97926 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.111 with commit 5902a95066883cf96fa15b2680694fc5dd0c7d11 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.53 with commit 87b12dc360a002eb2d498aa4f01e84347019612d Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.7 with commit abde9eb33106850dfa367ad3965d3588bb8558d5 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc3 with commit c9d263be26806d388129fab8c6904bed197fc6af 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-97926 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/ufs/cylinder.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/5902a95066883cf96fa15b2680694fc5dd0c7d11 https://git.kernel.org/stable/c/87b12dc360a002eb2d498aa4f01e84347019612d https://git.kernel.org/stable/c/abde9eb33106850dfa367ad3965d3588bb8558d5 https://git.kernel.org/stable/c/c9d263be26806d388129fab8c6904bed197fc6af