Skip to contentSkip to conversation

CVE-2025-38426: drm/amdgpu: Add basic validation for RAS header

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jul 25, 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/amdgpu: Add basic validation for RAS header

If RAS header read from EEPROM is corrupted, it could result in trying to allocate huge memory for reading the records. Add some validation to header fields.

The Linux kernel CVE team has assigned CVE-2025-38426 to this issue.

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

	Fixed in 6.15.4 with commit b52f52bc5ba9feb026c0be600f8ac584fd12d187
	Fixed in 6.16-rc1 with commit 5df0d6addb7e9b6f71f7162d1253762a5be9138e

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

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/amdgpu/amdgpu_ras_eeprom.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/b52f52bc5ba9feb026c0be600f8ac584fd12d187
	https://git.kernel.org/stable/c/5df0d6addb7e9b6f71f7162d1253762a5be9138e