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 565991534E6 for ; Wed, 3 Apr 2024 17:33:37 +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=1712165617; cv=none; b=RTLunxURO6Vd/gShWssxhbyEwdd0893JrTaOxKAMMRY5k50mNdtpzcbrDXwQ700GezzbLyFYaGRw04nIX/EBqz5+OdkAxhhfrqNLr9z+MqHlTQCI+gR6XhvE3A3fQKyZU4lqzr0KvrUn7HAWotJks454c6Z9zgHAys0V4OsuLac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712165617; c=relaxed/simple; bh=JAH2gq7bH26N45a/FwyQlDtdHyHl+YPj3rqGFleaLUE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EH0FUQfCPdWW9fuoEblBCSvjWyYKU7d1BddudKfGSP2tC3Iv2Fjec78hX/faX15Va4aQNLs96J05HYFChU12HDnyUU+39GWYC3g0hcSHbGW3NUQ7hrkL6yTBI8wf8jNfw7E7RcY79F3eG3ogDjCYd5RnJb1cMw8aLwemCR1M8GY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=fQiDxNvW; 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="fQiDxNvW" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3A538C433F1; Wed, 3 Apr 2024 17:33:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1712165617; bh=JAH2gq7bH26N45a/FwyQlDtdHyHl+YPj3rqGFleaLUE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=fQiDxNvW9CdNZ+u6sbkqTYWpq/M6fRbfF97saJfkuisIVw90sof078P+yDONEZt8U hWJroMk1iJ4ts3r+JyM8HYKSJEUqmC/O00L4WKaywrbU/4GVKU7CeGklHcvg1f32Af q6ciEg3z+R++wQbGip/7H1B6aUaUvbiGNnI1gWe0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26778: fbdev: savage: Error out if pixclock equals zero Date: Wed, 3 Apr 2024 19:31:45 +0200 Message-ID: <2024040309-CVE-2024-26778-8137@gregkh> X-Mailer: git-send-email 2.44.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=2769; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=JAH2gq7bH26N45a/FwyQlDtdHyHl+YPj3rqGFleaLUE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGm8k2LDEm6EaU1b83xSdsWCnotRE/bkv3TP+zBPpeC3O NvZ3ktJHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCR6CMM87RCjO5vVX99k51z xiFFzs5rP+L++DPM03nhImayS3ex3qTg9bsWesWaFG8IBAA= 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: fbdev: savage: Error out if pixclock equals zero The userspace program could pass any values to the driver through ioctl() interface. If the driver doesn't check the value of pixclock, it may cause divide-by-zero error. Although pixclock is checked in savagefb_decode_var(), but it is not checked properly in savagefb_probe(). Fix this by checking whether pixclock is zero in the function savagefb_check_var() before info->var.pixclock is used as the divisor. This is similar to CVE-2022-3061 in i740fb which was fixed by commit 15cf0b8. The Linux kernel CVE team has assigned CVE-2024-26778 to this issue. Affected and fixed versions =========================== Fixed in 4.19.308 with commit 224453de8505 Fixed in 5.4.270 with commit 84dce0f6a4cc Fixed in 5.10.211 with commit 512ee6d6041e Fixed in 5.15.150 with commit 8c54acf33e5a Fixed in 6.1.80 with commit 070398d32c5f Fixed in 6.6.19 with commit bc3c2e58d73b Fixed in 6.7.7 with commit a9ca4e80d234 Fixed in 6.8 with commit 04e5eac8f3ab 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-26778 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/savage/savagefb_driver.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/224453de8505aede1890f007be973925a3edf6a1 https://git.kernel.org/stable/c/84dce0f6a4cc5b7bfd7242ef9290db8ac1dd77ff https://git.kernel.org/stable/c/512ee6d6041e007ef5bf200c6e388e172a2c5b24 https://git.kernel.org/stable/c/8c54acf33e5adaad6374bf3ec1e3aff0591cc8e1 https://git.kernel.org/stable/c/070398d32c5f3ab0e890374904ad94551c76aec4 https://git.kernel.org/stable/c/bc3c2e58d73b28b9a8789fca84778ee165a72d13 https://git.kernel.org/stable/c/a9ca4e80d23474f90841251f4ac0d941fa337a01 https://git.kernel.org/stable/c/04e5eac8f3ab2ff52fa191c187a46d4fdbc1e288