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 2D3FB1DDCE for ; Sun, 19 May 2024 10:12:24 +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=1716113544; cv=none; b=p08D1ttMQyfg0a0wUEiFKEm/sa5gGubq7Btq/+tas0f24dTSPxuDwBnFUIKTsxAnLdk3JFeybChHHry4M9A+6ECo2LmSVzAXyG1btlAAG+5LzUVLf0cn8KxGlY5QglmiFvE038MI9AnIfsrmJPTbg61QXRqdn9Mm6CHTlU7RdAs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716113544; c=relaxed/simple; bh=ikb+UP4BOvxDY/iJgYE7INVALmMyjLPjtcivAJx1mVM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SzEPGWLfvBrXH0497Xsz/ZUiLe93tnzLIo4LVOrpYaWd/LwJxxjXJkhcSh+69EW/XgWwXG8nUC8Okl49/34APJY5ncBudWtauKsUsjLgte31JFCluUOuLfhU6A1Prrs0y+hFFqGdUwvfdgGt4aVXK3sX6fwybsV7Stk0P5pZjyE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cQEQh5vP; 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="cQEQh5vP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A8B7BC32781; Sun, 19 May 2024 10:12:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716113544; bh=ikb+UP4BOvxDY/iJgYE7INVALmMyjLPjtcivAJx1mVM=; h=From:To:Cc:Subject:Date:Reply-to:From; b=cQEQh5vPPTus16YiW4GcQyaK1xGt4wUvsfH8MQZ6QFnkk0QOnI1q3Zbyeq4bghBp7 PmF/zHnQz/DDhowSjmxpmVIEaAqEXe2AOgrAS+Lr5zCmdhPRwlpReH08LF1jm63dkn JwXUr94JmaYsr/Ti/b7NUOuyub21c5wpaWiwxu3E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-35922: fbmon: prevent division by zero in fb_videomode_from_videomode() Date: Sun, 19 May 2024 12:11:16 +0200 Message-ID: <2024051913-CVE-2024-35922-650f@gregkh> X-Mailer: git-send-email 2.45.1 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=2484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ikb+UP4BOvxDY/iJgYE7INVALmMyjLPjtcivAJx1mVM=; b=owGbwMvMwCRo6H6F97bub03G02pJDGmeF5xEdt0/mKv4sknE7Mr/v08tk88+OcPXlbFD9frX7 1f+sKZd6IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHLJjWNAjOqH1yrHn6b27 pn3a9CsujP3YFmOGBVcLE8wtuey0LLjePnU8sEdbWch8GgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: fbmon: prevent division by zero in fb_videomode_from_videomode() The expression htotal * vtotal can have a zero value on overflow. It is necessary to prevent division by zero like in fb_var_to_videomode(). Found by Linux Verification Center (linuxtesting.org) with Svace. The Linux kernel CVE team has assigned CVE-2024-35922 to this issue. Affected and fixed versions =========================== Fixed in 4.19.312 with commit 1fb52bc1de55 Fixed in 5.4.274 with commit 72d091b7515e Fixed in 5.10.215 with commit 951838fee462 Fixed in 5.15.155 with commit 48d6bcfc3175 Fixed in 6.1.86 with commit 664206ff8b01 Fixed in 6.6.27 with commit 3d4b909704bf Fixed in 6.8.6 with commit 1b107d637fed Fixed in 6.9 with commit c2d953276b8b 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-2024-35922 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: drivers/video/fbdev/core/fbmon.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/1fb52bc1de55e9e0bdf71fe078efd4da0889710f https://git.kernel.org/stable/c/72d091b7515e0532ee015e144c906f3bcfdd6270 https://git.kernel.org/stable/c/951838fee462aa01fa2a6a91d56f9a495082e7f0 https://git.kernel.org/stable/c/48d6bcfc31751ca2e753d901a2d82f27edf8a029 https://git.kernel.org/stable/c/664206ff8b019bcd1e55b10b2eea3add8761b971 https://git.kernel.org/stable/c/3d4b909704bf2114f64f87363fa22b5ef8ac4a33 https://git.kernel.org/stable/c/1b107d637fed68a787da77a3514ad06e57abd0b4 https://git.kernel.org/stable/c/c2d953276b8b27459baed1277a4fdd5dd9bd4126