PT-2024-5408 · Linux+6 · Linux Kernel+6

Published

2024-04-26

·

Updated

2025-09-29

·

CVE-2024-39291

CVSS v3.1

7.8

High

VectorAV: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.

Exploit

Fix

Buffer Overflow

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

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
BDU:2024-06052
CVE-2024-39291
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

Affected Products

Alt Linux
Linuxmint
Linux Kernel
Red Hat
Red Os
Suse
Ubuntu