PT-2024-5408

CVE-2024-39291

·

Published

2024-04-26

·

Updated

2025-09-29

Description by

CVSS 3.1
7.8
High
MetricsAV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions Linux kernel versions prior to 6.6.37
Description The issue is related to a potential buffer overflow in the gfx v9 4 3 init microcode function in the gfx v9 4 3.c file of the Linux kernel's amdgpu driver. The problem arises from the use of the snprintf function with a buffer size that is too small to accommodate the maximum possible length of the string being written into it. The string being written is "amdgpu/%s mec.bin" or "amdgpu/%s rlc.bin", where %s is replaced by the value of chip name. The length of this string without the %s is 16 characters, and the warning message indicated that chip name could be up to 29 characters long, resulting in a total of 45 characters, which exceeds the buffer size of 30 characters.
Recommendations To resolve this issue, update the Linux kernel to version 6.6.37 or later. This update reduces the size of the ucode prefix buffer from 30 to 15, preventing potential buffer overflow and truncation issues.
Exploitability
Exploit
Fix
Impacts
Vendors
Affected products
Related identifiers
ALSA-2025_12746
ALSA-2025_12752
ALSA-2025_12753
ALSA-2025_16880
ALT-PU-2024-10855
ALT-PU-2024-13979
ALT-PU-2024-14046
AZL-42907
AZL-42946
INFSA-2024_9315
MGASA-2024-0263
MGASA-2024-0266
RHSA-2024:9315
RHSA-2024_9315
SUSE-SU-2024:2571-1
SUSE-SU-2024:2896-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
USN-6999-1
USN-6999-2
USN-7004-1
USN-7005-1
USN-7005-2
USN-7008-1
USN-7029-1
Found an issue in the description? Have something to add? Feel free to write us 👾