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 2697D294A06 for ; Wed, 9 Jul 2025 10:44:04 +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=1752057845; cv=none; b=PJmQCH9JCo/EfYkPsMyIskA7I9PYxzBExSWurl0IB3qXjhTCsQtctk1Ms2bOzQSDwrachdaKiwcV7fQJkL7CHRXwKLjNV87/3YKxQIbHouZSX6yW04Hf7i223Am4OV0o2CEv57BoovzD24WAlRlJEUC7edYy3Mx/b/rek8DCqA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752057845; c=relaxed/simple; bh=qIUEWo6C1P90SSGOyvvACyHRVlo0tg0XfSsUD6xoOKI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=RMraN2XkrVWAMWG9Jve5tchTpO6ZMsJDFg9tl0imOoG2QrACHSQZr07CO3mUQUX8HbrilkSiPWVexM+rODrw+ujFOl1gNAeqBkbxbUBa3eCnJrMkhanMX4vnGRuhDJMOXRL+C7HJ0gF0IiCGeyisgeWPHlGbBRT2zT5sC3G4eTI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=foqGOYW3; 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="foqGOYW3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 42E76C4CEEF; Wed, 9 Jul 2025 10:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1752057844; bh=qIUEWo6C1P90SSGOyvvACyHRVlo0tg0XfSsUD6xoOKI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=foqGOYW3kwVMt+DbT82mQkZvVE/kh4mOOBBcKU4uEcRUnTcK33/OGpEDH7suHyhyQ oWWqo2kI7Yku6ppwEt3ZjbeGPchKSATcMZz4jZBc3zvNIslRj0hpjF9OFYiE78OX82 2Q0URBoWOHD7e5YekhTlhI8xKOOY3HeNsNk+UaBs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38254: drm/amd/display: Add sanity checks for drm_edid_raw() Date: Wed, 9 Jul 2025 12:42:46 +0200 Message-ID: <2025070935-CVE-2025-38254-7416@gregkh> X-Mailer: git-send-email 2.50.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=2309; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=YSAI+WVYjv2TiTlLlsKgjZikDSNL8xNa3u1UKjX6BYQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBl57rP7OfSltV+yTK7OPn7jakDTrP3HTpZLsPMeSF+us Z9pwy+LjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI1G8M80MPNr2q71225cSE 6Bebz6i2ZCQ++c6wYKJ1TuCZ+oW88/a8Nv0w83e5vAX3PQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: drm/amd/display: Add sanity checks for drm_edid_raw() When EDID is retrieved via drm_edid_raw(), it doesn't guarantee to return proper EDID bytes the caller wants: it may be either NULL (that leads to an Oops) or with too long bytes over the fixed size raw_edid array (that may lead to memory corruption). The latter was reported actually when connected with a bad adapter. Add sanity checks for drm_edid_raw() to address the above corner cases, and return EDID_BAD_INPUT accordingly. (cherry picked from commit 648d3f4d209725d51900d6a3ed46b7b600140cdf) The Linux kernel CVE team has assigned CVE-2025-38254 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit 48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e and fixed in 6.15.5 with commit 4b63507d7cd243574753c6b91f68516d9103f1de Issue introduced in 6.13 with commit 48edb2a4256eedf6c92eecf2bc7744e6ecb44b5e and fixed in 6.16-rc4 with commit 6847b3b6e84ef37451c074e6a8db3fbd250c8dbf 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-2025-38254 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_helpers.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/4b63507d7cd243574753c6b91f68516d9103f1de https://git.kernel.org/stable/c/6847b3b6e84ef37451c074e6a8db3fbd250c8dbf