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 C9427374E76 for ; Sat, 15 Aug 2026 06:24:53 +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=1786775094; cv=none; b=e22xUDOVxhLqNZXinKoJ1C4RxZZ6rGJl85o51W9nPM43eMdEKhMbCP81Rzl1G1bz+5H8K6HZkTRw+ASNGrsrGsATeNA4Rd/I6ieeVVIzrBOQWuNKMgZAf5K9T8nm/hNg8JZ8n/PPmT9gdtVVF2S1Z/XRV+Q5DlRFw2s8QMS7pLc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775094; c=relaxed/simple; bh=Ydz9MiJ+WyMdPG4JzRZ1tz7apFDVKlWe5w0Pyjzd/zk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ba648CLi3lOjMnJT+UITfhYymGw0CbpA3YwmzTKvPS4LDo1ggWIrfw86M2hs2eL2D9qaK+RXwIWsF4PzjZqOz3A70eGomcDMcRD4sqxCFBOOkTd9fES6cScRZgOTu2wdaUkYtbzbLwuU8l/gpxvZ7LzyLqqPkAMq00cl0YehLB0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A8lWp6+A; 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="A8lWp6+A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2564F1F000E9; Sat, 15 Aug 2026 06:24:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775093; bh=J9TOcPv0Do2IukxsCcdsWk+VRUyBtosaJXRAxj7Hlds=; h=From:To:Cc:Subject:Date:Reply-To; b=A8lWp6+AFcV9e9rgwezNGlcmIPy3LK8TXDfEptrA86PF0dm7SA41mQTT7mrHcVEkO bW4/RP5d1agd87DGZa0BGM3kEEuPUhQe7i3dsP3ER3IAYJij4j7SX5fzyBw017oMhW gmhSgDbr5/krw5Y+8IPKmt2cJ7LtfIBmKVKawA0A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-72369: minix: avoid overflow in bitmap block count calculation Date: Sat, 15 Aug 2026 15:07:28 +0900 Message-ID: <2026081515-CVE-2026-72369-1ec9@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=3911; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EBr1RgXr33zDWf6bvQmPDJ8StcSMoqKfNugUdR3p2Is=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNDM/d+59mznti++zH0zmrlVMKGZZM6jhrLRDucN91Q /nnqn9HOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAizzQZ5ldureHyUHgp3/v5 ckPcPDHL67/+9DAsWPI52UmsqGGRyXXLOy1bjzNOFgjIBgA= 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: minix: avoid overflow in bitmap block count calculation minix_check_superblock() uses minix_blocks_needed() to verify that the on-disk imap and zmap block counts are large enough for the advertised inode and zone counts. The helper currently performs DIV_ROUND_UP() in unsigned int arithmetic. A Minix v3 image can set s_ninodes or s_zones near UINT_MAX so the addition inside DIV_ROUND_UP() wraps to zero. That makes a zero imap/zmap block count look valid, after which minix_fill_super() can dereference s_imap[0] or s_zmap[0] even though no bitmap buffers were allocated. Impact: mounting a crafted Minix v3 image whose s_ninodes or s_zones is near UINT_MAX makes minix_check_superblock() accept a zero bitmap-block count and minix_fill_super() dereference s_imap[0]/s_zmap[0], panicking the kernel. The divisor is the bitmap capacity in bits, blocksize * 8, which is always a power of two: minix_fill_super() obtains the block size through sb_set_blocksize(), and blk_validate_block_size() rejects any size that is not a power of two. Use DIV_ROUND_UP_POW2(), which divides before adding the round-up term and so cannot overflow for a power-of-two divisor. The Linux kernel CVE team has assigned CVE-2026-72369 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6.128 with commit 2bb588cede1c1969e49c0a2822c8cb8b346b7682 and fixed in 6.6.145 with commit a11ebaab50d27d6c4c78506f84ff36452e0b901d Issue introduced in 6.12.75 with commit f57ccd4657c7f082dc47e5b9e18a883bb5f9118f and fixed in 6.12.97 with commit 959c95340a9e19cd333b4c18935fdeecbb2f319d Issue introduced in 6.18.16 with commit 31fefc18096cdc5549cfa54964d90e0b3229aedc and fixed in 6.18.40 with commit abe3536a4bedcc43de80b6d4d7e3d57e9ba382a5 Issue introduced in 7.0 with commit 8c97a6ddc95690a938ded44b4e3202f03f15078c and fixed in 7.1.5 with commit 8a29e60e2176b02e04f8737c8b32b696230eb0c5 Issue introduced in 7.0 with commit 8c97a6ddc95690a938ded44b4e3202f03f15078c and fixed in 7.2-rc2 with commit fb3e566cafc38fe3ba35e6843a2d529a3748870c Issue introduced in 5.10.252 with commit a051ecf5c5b0387840dc210413ed3bc7fbdaa69c Issue introduced in 5.15.202 with commit d791c544efd6b9c944b43cf7f502e5bcb02fb941 Issue introduced in 6.1.165 with commit 66c7c239c65341f99ae388d4d53dc9df2bcb9925 Issue introduced in 6.19.6 with commit 1efc128ee4adbc23e082715425ff895449d233bc 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-72369 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/minix/minix.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/a11ebaab50d27d6c4c78506f84ff36452e0b901d https://git.kernel.org/stable/c/959c95340a9e19cd333b4c18935fdeecbb2f319d https://git.kernel.org/stable/c/abe3536a4bedcc43de80b6d4d7e3d57e9ba382a5 https://git.kernel.org/stable/c/8a29e60e2176b02e04f8737c8b32b696230eb0c5 https://git.kernel.org/stable/c/fb3e566cafc38fe3ba35e6843a2d529a3748870c