CVE-2025-22035: Linux kernel · tracing: Fix use-after-free in print_graph_function_flags during tracer switching
Affects Linux kernelSource GCVE Database
Not known to be exploited · CVSS 7.8 High · fixed in 5.4.0-1147.157~18.04.1 : patch Linux kernel soon.
Data as of 12 Nov 2026, 19:26 UTC
- Patch
- Available – fixed in 5.4.0-1147.157~18.04.1, 5.4.0-1152.159~18.04.1, 5.4.0-1150.159~18.04.1 +86
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 16 Apr 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 12 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
- ubuntu.com/security/notices/USN-7585-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7585-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7592-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7593-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-4 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7597-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7598-1 (opens in a new tab)
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 25.10linux-azure-fdepkg:deb/ubuntu/linux-azure-fde?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlinuxpkg:deb/ubuntu/linux?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-awspkg:deb/ubuntu/linux-aws?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azurepkg:deb/ubuntu/linux-azure?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-6.11pkg:deb/ubuntu/linux-azure-6.11?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 24.04 LTSlinux-azure-nvidiapkg:deb/ubuntu/linux-azure-nvidia?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and has been incorporated into official Linux kernel updates distributed by Ubuntu and other vendors. Users should apply the security updates corresponding to their kernel versions and reboot systems to ensure the fix is active. No additional mitigations are necessary beyond applying the official patches.
Description
A use-after-free vulnerability was identified and fixed in the Linux kernel's tracing subsystem, specifically in the print_graph_function_flags function during tracer switching. This flaw could lead to the use of invalid pointers when switching tracers, potentially causing system compromise. The issue affects multiple Linux kernel versions prior to fixed releases in the 5.4.x series and others. A patch is available and included in official Ubuntu security updates.
References
- ubuntu.com/security/CVE-2025-22035 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-22035 (opens in a new tab)
- git.kernel.org/linus/7f81f27b1093e4895e87b74143c59c055c3b1906 (opens in a new tab)
- git.kernel.org/stable/c/099ef3385800828b74933a96c117574637c3fb3a (opens in a new tab)
- git.kernel.org/stable/c/42561fe62c3628ea3bc9623f64f047605e98857f (opens in a new tab)
- git.kernel.org/stable/c/70be951bc01e4a0e10d443f3510bb17426f257fb (opens in a new tab)
- git.kernel.org/stable/c/7f81f27b1093e4895e87b74143c59c055c3b1906 (opens in a new tab)
- git.kernel.org/stable/c/81a85b12132c8ffe98f5ddbdc185481790aeaa1b (opens in a new tab)
- git.kernel.org/stable/c/a2cce54c1748216535dda02e185d07a084be837e (opens in a new tab)
- git.kernel.org/stable/c/c85efe6e13743cac6ba4ccf144cb91f44c86231a (opens in a new tab)
- git.kernel.org/stable/c/de7b309139f862a44379ecd96e93c9133c69f813 (opens in a new tab)
- git.kernel.org/stable/c/f14752d66056d0c7bffe5092130409417d3baa70 (opens in a new tab)
- ubuntu.com/security/notices/USN-7585-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7585-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-2 (opens in a new tab)
- ubuntu.com/security/notices/USN-7591-3 (opens in a new tab)
- ubuntu.com/security/notices/USN-7592-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7593-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-7594-1 (opens in a new tab)