PT-2024-10497 · Linux+8 · Linux Kernel+8
Nathan Lynch
·
Published
2024-04-29
·
Updated
2025-09-29
·
CVE-2024-40974
CVSS v3.1
7.8
High
| Vector | AV: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 (affected versions not specified)
Description
The issue is related to the powerpc/pseries component of the Linux kernel, where functions like
plpar hcall() and plpar hcall9() expect callers to provide valid result buffers of a certain minimum size. However, this requirement is currently only communicated through comments in the code, and the compiler is not aware of it. This can lead to stack corruption at runtime if the provided buffer is too small. To mitigate this, explicitly-sized array parameters can be used instead of pointers in the declarations for the hcall APIs. When compiled with -Warray-bounds, the code can provoke a diagnostic if the array argument is too small.Recommendations
At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploit
Memory Corruption
Buffer Overflow
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Almalinux
Astra Linux
Centos
Linuxmint
Linux Kernel
Red Hat
Red Os
Rocky Linux
Ubuntu