PT-2024-7050 · Linux+7 · Linux Kernel+7

Zheng Yejian

·

Published

2024-05-14

·

Updated

2025-09-29

·

CVE-2024-38588

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 possible use-after-free problem in the ftrace location() function. This occurs because the lookup rec() function searches for an ftrace record of some address in ftrace pages of a module, while at the same time, those ftrace pages are being freed in ftrace release mod() as the corresponding module is being deleted. This can lead to a situation where the same memory location is accessed after it has been freed, potentially causing unexpected behavior or crashes. The root cause of this problem is a race condition between the register kprobes() and delete module() functions.
Recommendations To fix this issue, the following steps can be taken:
  1. Hold the rcu lock when accessing ftrace pages in ftrace location range().
  2. Use ftrace location range() instead of lookup rec() in ftrace location().
  3. Call synchronize rcu() before freeing any ftrace pages in ftrace process locs(), ftrace release mod(), and ftrace free mem(). Update the Linux kernel to version 6.6.37 or later to resolve this issue.

Exploit

Fix

Use After Free

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-13979
ALT-PU-2024-14046
AZL-49329
BDU:2024-08308
CVE-2024-38588
DLA-4075-1
MGASA-2024-0263
MGASA-2024-0266
OESA-2024-1765
OESA-2024-1767
OESA-2024-1796
OESA-2024-1836
OPENSUSE-SU-2024_2947-1
SUSE-SU-2024:2571-1
SUSE-SU-2024:2894-1
SUSE-SU-2024:2896-1
SUSE-SU-2024:2939-1
SUSE-SU-2024:2947-1
SUSE-SU-2024:2973-1
SUSE-SU-2025:02334-1
SUSE-SU-2025:20008-1
SUSE-SU-2025:20028-1
SUSE-SU-2025_02334-1
USN-6949-1
USN-6949-2
USN-6952-1
USN-6952-2
USN-6955-1
USN-7007-1
USN-7007-2
USN-7007-3
USN-7009-1
USN-7009-2
USN-7019-1
USN-7293-1
USN-7294-1
USN-7295-1
USN-7391-1
USN-7392-1
USN-7392-2
USN-7392-3
USN-7392-4
USN-7393-1
USN-7401-1
USN-7413-1
USN-7463-1
USN-7539-1
USN-7540-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu