Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2025-22035

7.8 · HIGH
Published Apr 16, 2025 linux CWE-416 EPSS 0.29% (21th pctl)

Overview

CVE-2025-22035 is a high-severity vulnerability affecting linux linux_kernel. It was published on April 16, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical Description

In the Linux kernel, the following vulnerability has been resolved:

tracing: Fix use-after-free in print_graph_function_flags during tracer switching

Kairui reported a UAF issue in print_graph_function_flags() during

ftrace stress testing [1]. This issue can be reproduced if puting a

'mdelay(10)' after 'mutex_unlock(&trace_types_lock)' in s_start(),

and executing the following script:

$ echo function_graph > current_tracer

$ cat trace > /dev/null &

$ sleep 5 # Ensure the 'cat' reaches the 'mdelay(10)' point

$ echo timerlat > current_tracer

The root cause lies in the two calls to print_graph_function_flags

within print_trace_line during each s_show():

* One through 'iter->trace->print_line()';

* Another through 'event->funcs->trace()', which is hidden in

print_trace_fmt() before print_trace_line returns.

Tracer switching only updates the former, while the latter continues

to use the print_line function of the old tracer, which in the script

above is print_graph_fu

Remediation

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.14.324, < 4.15 Affected

Frequently Asked Questions

What is CVE-2025-22035?

CVE-2025-22035 is a high-severity vulnerability affecting linux linux_kernel. It was published on April 16, 2025 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2025-22035?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2025-22035?

Check the references section for vendor advisories and patches from linux. Update linux_kernel to the latest patched version. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2025-22035?

CyberStrike's AI-powered security agents can automatically detect CVE-2025-22035 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.