CVE-2023-53075 ftrace: Fix invalid address access in lookup_rec() when index is 0
A use-after-free vulnerability in the Linux kernel ftrace subsystem allows attackers to cause a denial of service or potentially execute code via crafted module loading.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2023-53075?
CVE-2023-53075 is a high-severity use after free vulnerability in Linux kernel, published on 2 May 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
ftrace: Fix invalid address access in lookup_rec() when index is 0
KASAN reported follow problem:
BUG: KASAN: use-after-free in lookup_rec Read of size 8 at addr ffff000199270ff0 by task modprobe CPU: 2 Comm: modprobe Call trace: kasan_report __asan_load8 lookup_rec ftrace_location arch_check_ftrace_location check_kprobe_address_safe register_kprobe
When checking pg->records[pg->index - 1].ip in lookup_rec(), it can get a pg which is newly added to ftrace_pages_start in ftrace_process_locs(). Before the first pg->index++, index is 0 and accessing pg->records[-1].ip will cause this problem.
Don't check the ip when pg->index is 0.
Weakness: CWE-416
Which versions are affected by CVE-2023-53075?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2023-53075?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2023-53075 being exploited?
There is no known exploitation of CVE-2023-53075 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2023-53075, DEBIAN-CVE-2023-53075, GHSA-7m36-cvpv-mmfp, UBUNTU-CVE-2023-53075.