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 6C83030E0CE for ; Fri, 12 Sep 2025 15:59:39 +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=1757692780; cv=none; b=L+ClhWwbDu5i0SakEq61NNWkaMf80QW/4j8TVyGWe2C1a/LSTtI+LCPw7NLyRua7uhk2l8ZBzgnL+eKIziHpPItvOomg8ilgsmlOfrVYGI9cgYwHYWgULDV10WKXlZTubMgqlGMjAoaKORb4RaufOtg/TuF5nHt6M5TcVDnIP64= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1757692780; c=relaxed/simple; bh=XovSBCzk9N0sL5ZmXYARf19nL0fWS0GPYrpQoTW7EsU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ofnzAzrhMJw5bCZye/XiSqc5O3OCN/L9lQ4zmb5P3wWl+cDTYBUupFFT2hoYSXrI6G8Bth2h7BizlfDAPYCrwlKju9ME1lL3tFZr9dpZEcRofHZ+3fsSW4RfAk8xoyOxxSMD6KNaj3MfjnnazgXCZAbgkH7dYDxcc+BQ/R+ibp4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=VOaYumb+; 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="VOaYumb+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76F7FC4CEF9; Fri, 12 Sep 2025 15:59:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1757692779; bh=XovSBCzk9N0sL5ZmXYARf19nL0fWS0GPYrpQoTW7EsU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=VOaYumb+NVzkrOUl5xvqj/3cRAyHXpmCw1arL6bEfDJgIEk8T0/uzGzb97gNCmMrc 29UiHCV2HSavbZv/BPXpYNKfgJ9qIg02sGx7XR0rj1diF09AwA3KE1t+Jj+SYmaoMR Q8jw92a5HGzF5KlxJl97mKtRSMCClyQxIzgLsbE0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39795: block: avoid possible overflow for chunk_sectors check in blk_stack_limits() Date: Fri, 12 Sep 2025 17:59:25 +0200 Message-ID: <2025091223-CVE-2025-39795-c418@gregkh> X-Mailer: git-send-email 2.51.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2782; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=1G8VsY+qbqdQDPch944xi257zcrASo+RPe3ievwFyZs=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlHnKOnOuqsqNx59smEYpOaBIV3HSvfyj//2vOwV+/v8 0nygs2LOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi4RwMC05c+L3cKMGjq1s/ hm+GVvFSy7UaPAzz9DgcUvyP3thhJ5f+ryNpJ1PkgUQ/AA== 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: block: avoid possible overflow for chunk_sectors check in blk_stack_limits() In blk_stack_limits(), we check that the t->chunk_sectors value is a multiple of the t->physical_block_size value. However, by finding the chunk_sectors value in bytes, we may overflow the unsigned int which holds chunk_sectors, so change the check to be based on sectors. The Linux kernel CVE team has assigned CVE-2025-39795 to this issue. Affected and fixed versions =========================== Fixed in 5.10.241 with commit 418751910044649baa2b424ea31cce3fc4dcc253 Fixed in 5.15.190 with commit 8b3ce085b52e674290cbfdd07034e7653ffbe4dc Fixed in 6.1.149 with commit 31f2f080898e50cbf2bae62d35f9f2a997547b38 Fixed in 6.6.103 with commit 3b9d69f0e68aa6b0acd9791c45d445154a8c66e9 Fixed in 6.12.43 with commit 46aa80ef49594ed7de685ecbc673b291e9a2c159 Fixed in 6.15.11 with commit 5e276e6ff9aacf8901b9c3265c3cdd2568c9fff2 Fixed in 6.16.2 with commit 14beeef4aafecc8a41de534e31fb5be94739392f Fixed in 6.17-rc1 with commit 448dfecc7ff807822ecd47a5c052acedca7d09e8 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-2025-39795 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: block/blk-settings.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/418751910044649baa2b424ea31cce3fc4dcc253 https://git.kernel.org/stable/c/8b3ce085b52e674290cbfdd07034e7653ffbe4dc https://git.kernel.org/stable/c/31f2f080898e50cbf2bae62d35f9f2a997547b38 https://git.kernel.org/stable/c/3b9d69f0e68aa6b0acd9791c45d445154a8c66e9 https://git.kernel.org/stable/c/46aa80ef49594ed7de685ecbc673b291e9a2c159 https://git.kernel.org/stable/c/5e276e6ff9aacf8901b9c3265c3cdd2568c9fff2 https://git.kernel.org/stable/c/14beeef4aafecc8a41de534e31fb5be94739392f https://git.kernel.org/stable/c/448dfecc7ff807822ecd47a5c052acedca7d09e8