Skip to contentSkip to conversation

CVE-2023-54150: drm/amd: Fix an out of bounds error in BIOS parser

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Dec 24, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

drm/amd: Fix an out of bounds error in BIOS parser

The array is hardcoded to 8 in atomfirmware.h, but firmware provides a bigger one sometimes. Deferencing the larger array causes an out of bounds error.

commit 4fc1ba4aa589 ("drm/amd/display: fix array index out of bound error in bios parser") fixed some of this, but there are two other cases not covered by it. Fix those as well.

The Linux kernel CVE team has assigned CVE-2023-54150 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.10.181 with commit b8e7589f50b709b647b642531599e70707faf70c
	Fixed in 5.15.113 with commit 66acfe798cd08b36cfbb65a30fab3159811304a7
	Fixed in 6.1.30 with commit 5675ecd2e0b00a4318ba1db1a1234e7d45b13d6b
	Fixed in 6.3.4 with commit dea2dbec716c38a0b73b6ad01d91e2b120cc5f1e
	Fixed in 6.4 with commit d116db180decec1b21bba31d2ff495ac4d8e1b83

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-54150

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/bios/bios_parser2.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/b8e7589f50b709b647b642531599e70707faf70c
	https://git.kernel.org/stable/c/66acfe798cd08b36cfbb65a30fab3159811304a7
	https://git.kernel.org/stable/c/5675ecd2e0b00a4318ba1db1a1234e7d45b13d6b
	https://git.kernel.org/stable/c/dea2dbec716c38a0b73b6ad01d91e2b120cc5f1e
	https://git.kernel.org/stable/c/d116db180decec1b21bba31d2ff495ac4d8e1b83