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 EF74C129E74 for ; Wed, 1 May 2024 12:58:00 +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=1714568281; cv=none; b=EHdN5oHap62pMuTdqNudUwqv5j+mbMrfM/1594yC9/NYQ++lSGU00t3aRgAM6BBnnFK/f0kQ8ipBlN8riJlx1VcONQB0NPMU7IXDAG8fewk1C0HZZszkrD6zkjTCCJwI2hJvedaOYyrVPztOClPdMZQbWt36u/sCDB3XLWTgu8M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714568281; c=relaxed/simple; bh=iZtinvos/nncxagHOyZT3Wc4MRonMSqAQa1kwoGDkh8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OL6xt+qBlRXVGl0nXlYIVvd/7BwBXdrxF6pdJrh8pKqTxUoVU1xjBLCWnO94bCgpnizxwRv4LzONyXcy8uEVygnk58iOqRphXgH1LmHMgvlJ0O/9gVfaU1+JM3ZZ1dv7d7/NZErq9akFtMfHED4I/dgfslBj4aE9viW5T5XAJK4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Nq46eO8A; 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="Nq46eO8A" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 77FEBC113CC; Wed, 1 May 2024 12:58:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1714568280; bh=iZtinvos/nncxagHOyZT3Wc4MRonMSqAQa1kwoGDkh8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Nq46eO8A/f0Epvob5Kzk9XoyUNINIQDvYTKDzoLUefZxhEhxvpxHAqqsVruopsy6B K46i9A4NefzyL925Z13g8EuBg8+boQmvy9p4Bd2ayEPlme4Wy8MelQGnj7VXUveRBs plS/R17v3Qt4JMsMFClqy2g4LR1/Eh7Alv+8Y0A8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-27045: drm/amd/display: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()' Date: Wed, 1 May 2024 14:57:30 +0200 Message-ID: <2024050113-CVE-2024-27045-6680@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=2807; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=iZtinvos/nncxagHOyZT3Wc4MRonMSqAQa1kwoGDkh8=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlGNpqtygIym3dG+fBLZC/WjZ7xof7cl5VyYSe2TY/Nl oxKmmfTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5xM+woIXHltXrmdfqQLtg GY4jLJP1VqvwMCxord3jZ+7ENevR3pwunTSdsr2FR+cAAA== 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: Fix a potential buffer overflow in 'dp_dsc_clock_en_read()' Tell snprintf() to store at most 10 bytes in the output buffer instead of 30. Fixes the below: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:1508 dp_dsc_clock_en_read() error: snprintf() is printing too much 30 vs 10 The Linux kernel CVE team has assigned CVE-2024-27045 to this issue. Affected and fixed versions =========================== Issue introduced in 5.9 with commit c06e09b76639 and fixed in 5.10.214 with commit ff28893c96c5 Issue introduced in 5.9 with commit c06e09b76639 and fixed in 5.15.153 with commit 440f05983741 Issue introduced in 5.9 with commit c06e09b76639 and fixed in 6.1.83 with commit d346b3e5b25c Issue introduced in 5.9 with commit c06e09b76639 and fixed in 6.6.23 with commit ad76fd30557d Issue introduced in 5.9 with commit c06e09b76639 and fixed in 6.7.11 with commit eb9327af3621 Issue introduced in 5.9 with commit c06e09b76639 and fixed in 6.8.2 with commit cf114d8d4a8d Issue introduced in 5.9 with commit c06e09b76639 and fixed in 6.9-rc1 with commit 4b09715f1504 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-27045 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/amdgpu_dm/amdgpu_dm_debugfs.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/ff28893c96c5e0927a4da10cd24a3522ca663515 https://git.kernel.org/stable/c/440f059837418fac1695b65d3ebc6080d33be877 https://git.kernel.org/stable/c/d346b3e5b25c95d504478507eb867cd3818775ab https://git.kernel.org/stable/c/ad76fd30557d6a106c481e4606a981221ca525f7 https://git.kernel.org/stable/c/eb9327af3621d26b1d83f767c97a3fe8191a3a65 https://git.kernel.org/stable/c/cf114d8d4a8d78df272116a745bb43b48cef65f4 https://git.kernel.org/stable/c/4b09715f1504f1b6e8dff0e9643630610bc05141