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

Published

2024-05-30

·

Updated

2026-03-14

·

CVE-2024-38667

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 (affected versions not specified)
Description The issue is related to the corruption of pt regs in the Linux kernel for secondary idle threads on RISC-V processors. The top of the kernel thread stack should be reserved for pt regs, but this is not the case for the idle threads of the secondary boot harts, causing their stacks to overlap with their pt regs and potentially leading to corruption. A similar issue was fixed for the primary hart, but the fix was not propagated to the secondary harts. The problem was noticed in some CPU hotplug tests with V enabled, where the function smp callin stored several registers on the stack, corrupting the top of the pt regs structure, including the status field, resulting in the kernel attempting to save or restore an inexistent V context.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Memory Corruption

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

Weakness Enumeration

Related Identifiers

ALSA-2025_16880
ALT-PU-2024-10855
ALT-PU-2024-11524
ALT-PU-2024-13979
ALT-PU-2024-14046
AZL-42901
BDU:2024-06050
CVE-2024-38667
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-2321
OESA-2024-2322
OESA-2024-2324
USN-6999-1
USN-6999-2
USN-7004-1
USN-7005-1
USN-7005-2
USN-7008-1
USN-7029-1
USN-7166-1
USN-7166-2
USN-7166-3
USN-7166-4
USN-7186-1
USN-7186-2
USN-7194-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Ubuntu