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 421751EB9EF for ; Mon, 21 Oct 2024 18:54:40 +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=1729536880; cv=none; b=km911+ov6Luok6ejfVJFbHxAAvd0oN8N/1VoLF0euvprkcI/0snhIs1cF9V+HgGcdvbx3iEkO7B0KA62WHwv7Fp5K+rvL1jGb+EWUJ1CFodY6ZIL5lGZuUhkYoxETQAfuL8DQLc3OPD5I5EFCIn69/ykw0jtItRAEc6qn5oMemg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1729536880; c=relaxed/simple; bh=jMSiLJWcBeGRQG4SzmjflWlU7qk8p1CBo8mkMrlD1NA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Qep93kDU/KR8FFVDIgAPEOt+Cv98OS6Npx1TF/piY66ct/4KayDD20IGK/dkamqSw2B4ENf/uqAfjTXDDY0tjxfGBhoMHl5ZADK2JwMN7Hym9xRlYyrbBKp4aAfLRi4R1k94KesdV96AMCj2hzpphfsxJ3ZWptAbE6X/tHuaNmU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Wqn8wPC7; 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="Wqn8wPC7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA653C4CEC3; Mon, 21 Oct 2024 18:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1729536880; bh=jMSiLJWcBeGRQG4SzmjflWlU7qk8p1CBo8mkMrlD1NA=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Wqn8wPC7MRICK/RbCYgiMDHbjyUSB8W4n8MN3n6VaYyOXZd4T2Xomv3Ft6/CfE7+p pgHsXGP0jAAhQPxkhmOzZQBR+GEizlU3aFer68RILLSOnCDpESRUiqL5CK76fUMFBy Xmn0+ETJoXI/AyqvMuud2AkSoEJSodiLZdfXAMn0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50016: drm/amd/display: Avoid overflow assignment in link_dp_cts Date: Mon, 21 Oct 2024 20:54:20 +0200 Message-ID: <2024102110-CVE-2024-50016-745a@gregkh> X-Mailer: git-send-email 2.47.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=2243; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=jMSiLJWcBeGRQG4SzmjflWlU7qk8p1CBo8mkMrlD1NA=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlii4Pc5NQfPu/df6r8WWWy2DfuV0kaeQn/ioWyfxfnM E30mbu/I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACairsawYL/8jb8ruW49lf/V sIAr/L16rNTx5wwLevQEBZcvWcnydclC12vGbju8zEoeAgA= 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/amd/display: Avoid overflow assignment in link_dp_cts sampling_rate is an uint8_t but is assigned an unsigned int, and thus it can overflow. As a result, sampling_rate is changed to uint32_t. Similarly, LINK_QUAL_PATTERN_SET has a size of 2 bits, and it should only be assigned to a value less or equal than 4. This fixes 2 INTEGER_OVERFLOW issues reported by Coverity. The Linux kernel CVE team has assigned CVE-2024-50016 to this issue. Affected and fixed versions =========================== Fixed in 6.6.55 with commit a1495acc6234 Fixed in 6.10.14 with commit 26ced9d86240 Fixed in 6.11.3 with commit adeed800bc30 Fixed in 6.12-rc1 with commit a15268787b79 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-50016 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/amd/display/dc/dc_dp_types.h drivers/gpu/drm/amd/display/dc/link/accessories/link_dp_cts.c drivers/gpu/drm/amd/display/include/dpcd_defs.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/a1495acc6234fa79b775599d3f49009afd53299f https://git.kernel.org/stable/c/26ced9d86240868f5b41708ceee02e6ec2924498 https://git.kernel.org/stable/c/adeed800bc30ef718478b28c08f79231e5980e3d https://git.kernel.org/stable/c/a15268787b79fd183dd526cc16bec9af4f4e49a1