From mboxrd@z Thu Jan 1 00:00:00 1970 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 DC2F8446B4 for ; Tue, 21 May 2024 15:38:50 +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=1716305930; cv=none; b=uWshrc7NWeJA1Tfyru3ebflFW2YScUhmGl3CMAryQNqenV9EosMCcikXIFcAmF6r919R4pDMiCXydkNufw1a2ZYkvQCxJHtUSCYzuu8/91udXbKejY5OTC6V1qfDpRYVzQmcCWsDY+jmaQyyv8cBxcjWmv0hSQdeoSXjNUYq8mo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305930; c=relaxed/simple; bh=lAVdFUGAiXdNptIFy8G7l1MS8heefOjSYqyzF5Ex5Us=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=eeqIhqDL0zOKb8lGzKzGX7pNwWIo7E1ZwCDhScdfe+dER5muDrydTsuwVVoQZdEu20NmLt78fXNKF1Et9lLAxmibOdiO6S9sUsb5DhOc3BbmCUfL7d55l2lakGPl6C/+Pyrw0tUn198GKoZkCqEj5Z+1Y0b4zHt2CCa/O5SPmQk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=kSALFRms; 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="kSALFRms" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 65AAAC2BD11; Tue, 21 May 2024 15:38:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305930; bh=lAVdFUGAiXdNptIFy8G7l1MS8heefOjSYqyzF5Ex5Us=; h=From:To:Cc:Subject:Date:Reply-to:From; b=kSALFRmsPH4JClq4+tCKe6gi2YsGQmvHyxd27fKOo12qvKLAMmDqs4+wSS/xv3GBH vO2/fUuw+18NWQXy6U2CwsP5aW3dZ8Zg+3BsdnvX99aCnWzawaMG59lXOYBUjzhxw/ suvYfIpk369lOrDMx0dK4XkEb38emYTQRPAFXN7o= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52857: drm/mediatek: Fix coverity issue with unintentional integer overflow Date: Tue, 21 May 2024 17:32:33 +0200 Message-ID: <2024052116-CVE-2023-52857-e288@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=2220; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lAVdFUGAiXdNptIFy8G7l1MS8heefOjSYqyzF5Ex5Us=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk++1xikx/NOx2+8PjUFIm0eVKHJnkYv9kzadWp9su38 vfefz+ptyOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAm8mspwzzzJJ7cshX6xx3i pkxefFDYrT3ftYxhfvwn/3Nbjl5zfhCi77sw9N1CGdelEQA= 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: drm/mediatek: Fix coverity issue with unintentional integer overflow 1. Instead of multiplying 2 variable of different types. Change to assign a value of one variable and then multiply the other variable. 2. Add a int variable for multiplier calculation instead of calculating different types multiplier with dma_addr_t variable directly. The Linux kernel CVE team has assigned CVE-2023-52857 to this issue. Affected and fixed versions =========================== Issue introduced in 5.14 with commit 1a64a7aff8da and fixed in 6.5.12 with commit 0d8a1df39d3f Issue introduced in 5.14 with commit 1a64a7aff8da and fixed in 6.6.2 with commit 96312a251d4d Issue introduced in 5.14 with commit 1a64a7aff8da and fixed in 6.7 with commit b0b0d811eac6 Issue introduced in 5.13.12 with commit 73e81f7219aa 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-2023-52857 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/gpu/drm/mediatek/mtk_drm_gem.c drivers/gpu/drm/mediatek/mtk_drm_plane.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/0d8a1df39d3fc34560e2cc663b5c340d06a25396 https://git.kernel.org/stable/c/96312a251d4dcee5d36e32edba3002bfde0ddd9c https://git.kernel.org/stable/c/b0b0d811eac6b4c52cb9ad632fa6384cf48869e7