PT-2025-16675 · Linux+7 · Linux Kernel+7

Kairui

·

Published

2025-03-20

·

Updated

2026-04-20

·

CVE-2025-22035

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 A use-after-free issue was found in the Linux kernel's tracing functionality, specifically in the print graph function flags() function during tracer switching. This issue can be reproduced by executing a script that switches tracers while a cat command is running in the background. The root cause lies in the two calls to print graph function flags() within print trace line(), where one call is not updated during tracer switching, allowing the use of an invalid pointer. The issue can be triggered by switching from the 'function graph' tracer to the 'timerlat' tracer.
Recommendations To fix this issue, set iter->private to NULL immediately after freeing it in graph trace close(), ensuring that an invalid pointer is not passed to other tracers. Additionally, clean up the unnecessary iter->private = NULL during each 'cat trace' when using wakeup and irqsoff tracers. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Use After Free

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

Weakness Enumeration

Related Identifiers

ALT-PU-2025-12647
ALT-PU-2025-6075
ALT-PU-2025-6082
ALT-PU-2025-6382
ALT-PU-2025-6606
ALT-PU-2025-7195
AZL-60945
BDU:2025-12076
CVE-2025-22035
DLA-4178-1
DLA-4193-1
DSA-5907-1
ECHO-E4C9-ACA0-88C3
MGASA-2025-0142
MGASA-2025-0146
OESA-2025-1446
OESA-2025-1448
OESA-2025-1449
OESA-2025-1450
OESA-2025-1465
SUSE-SU-2025:02249-1
SUSE-SU-2025:02254-1
SUSE-SU-2025:02307-1
SUSE-SU-2025:02333-1
SUSE-SU-2025:02334-1
SUSE-SU-2025:02335-1
SUSE-SU-2025:02538-1
SUSE-SU-2025:02923-1
SUSE-SU-2025:20475-1
SUSE-SU-2025:20483-1
SUSE-SU-2025:20493-1
SUSE-SU-2025:20498-1
SUSE-SU-2025_02249-1
SUSE-SU-2025_02254-1
SUSE-SU-2025_02307-1
SUSE-SU-2025_02333-1
SUSE-SU-2025_02334-1
SUSE-SU-2025_02335-1
SUSE-SU-2025_02538-1
USN-7585-1
USN-7585-2
USN-7585-3
USN-7585-4
USN-7585-5
USN-7585-6
USN-7585-7
USN-7591-1
USN-7591-2
USN-7591-3
USN-7591-4
USN-7591-5
USN-7591-6
USN-7592-1
USN-7593-1
USN-7594-1
USN-7594-2
USN-7594-3
USN-7597-1
USN-7597-2
USN-7598-1
USN-7602-1
USN-7605-1
USN-7605-2
USN-7606-1
USN-7628-1
USN-7640-1
USN-7655-1
USN-7835-1
USN-7835-2
USN-7835-3
USN-7835-4
USN-7835-5
USN-7835-6
USN-7887-1
USN-7887-2
USN-7940-1
USN-7940-2

Affected Products

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