CVE-2023-53375 in Linuxinfo

Summary

by MITRE • 09/18/2025

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

tracing: Free error logs of tracing instances

When a tracing instance is removed, the error messages that hold errors that occurred in the instance needs to be freed. The following reports a memory leak:

# cd /sys/kernel/tracing # mkdir instances/foo # echo 'hist:keys=x' > instances/foo/events/sched/sched_switch/trigger # cat instances/foo/error_log [ 117.404795] hist:sched:sched_switch: error: Couldn't find field
Command: hist:keys=x ^ # rmdir instances/foo

Then check for memory leaks:

# echo scan > /sys/kernel/debug/kmemleak # cat /sys/kernel/debug/kmemleak unreferenced object 0xffff88810d8ec700 (size 192): comm "bash", pid 869, jiffies 4294950577 (age 215.752s) hex dump (first 32 bytes): 60 dd 68 61 81 88 ff ff 60 dd 68 61 81 88 ff ff `.ha....`.ha.... a0 30 8c 83 ff ff ff ff 26 00 0a 00 00 00 00 00 .0......&....... backtrace: [<00000000dae26536>] kmalloc_trace+0x2a/0xa0
[<00000000b2938940>] tracing_log_err+0x277/0x2e0
[<000000004a0e1b07>] parse_atom+0x966/0xb40
[<0000000023b24337>] parse_expr+0x5f3/0xdb0
[<00000000594ad074>] event_hist_trigger_parse+0x27f8/0x3560
[<00000000293a9645>] trigger_process_regex+0x135/0x1a0
[<000000005c22b4f2>] event_trigger_write+0x87/0xf0
[<000000002cadc509>] vfs_write+0x162/0x670
[<0000000059c3b9be>] ksys_write+0xca/0x170
[<00000000f1cddc00>] do_syscall_64+0x3e/0xc0
[<00000000868ac68c>] entry_SYSCALL_64_after_hwframe+0x72/0xdc
unreferenced object 0xffff888170c35a00 (size 32): comm "bash", pid 869, jiffies 4294950577 (age 215.752s) hex dump (first 32 bytes): 0a 20 20 43 6f 6d 6d 61 6e 64 3a 20 68 69 73 74 . Command: hist 3a 6b 65 79 73 3d 78 0a 00 00 00 00 00 00 00 00 :keys=x......... backtrace: [<000000006a747de5>] __kmalloc+0x4d/0x160
[<000000000039df5f>] tracing_log_err+0x29b/0x2e0
[<000000004a0e1b07>] parse_atom+0x966/0xb40
[<0000000023b24337>] parse_expr+0x5f3/0xdb0
[<00000000594ad074>] event_hist_trigger_parse+0x27f8/0x3560
[<00000000293a9645>] trigger_process_regex+0x135/0x1a0
[<000000005c22b4f2>] event_trigger_write+0x87/0xf0
[<000000002cadc509>] vfs_write+0x162/0x670
[<0000000059c3b9be>] ksys_write+0xca/0x170
[<00000000f1cddc00>] do_syscall_64+0x3e/0xc0
[<00000000868ac68c>] entry_SYSCALL_64_after_hwframe+0x72/0xdc

The problem is that the error log needs to be freed when the instance is removed.

Be aware that VulDB is the high quality source for vulnerability data.

Analysis

by VulDB Data Team • 12/12/2025

The vulnerability described in CVE-2023-53375 represents a memory leak within the Linux kernel's tracing subsystem, specifically affecting the handling of error logs associated with tracing instances. This issue manifests when a tracing instance is removed from the system, leaving behind unreferenced memory allocations that persist in kernel memory. The vulnerability is classified under CWE-401 as a failure to release memory resources, which can lead to gradual memory exhaustion over time. The Linux kernel's tracing framework allows users to create instances for monitoring various system events, and these instances maintain error logs that capture issues encountered during event processing. When instances are removed through directory removal operations, the error log entries associated with them are not properly freed, resulting in memory leaks that can accumulate and degrade system performance.

The technical flaw occurs within the tracing subsystem's cleanup mechanism, where the tracing_log_err function properly records error messages but fails to ensure these messages are freed when the containing tracing instance is destroyed. The vulnerability demonstrates a clear memory management issue in the kernel's event trigger processing system, where the parse_atom and parse_expr functions handle complex parsing operations that generate error messages, but these messages remain allocated in kernel memory even after the instance is removed. The backtrace information shows the memory allocation paths originating from kmalloc_trace and __kmalloc functions, indicating that the kernel's memory allocator creates the memory blocks that are never freed during instance destruction. This pattern of memory allocation without corresponding deallocation is particularly concerning in kernel space where memory resources are finite and must be managed carefully to prevent system instability.

The operational impact of this vulnerability extends beyond simple memory consumption, as persistent memory leaks can lead to system performance degradation and potential denial of service conditions. When multiple tracing instances are created and destroyed repeatedly, the accumulated memory leaks can consume significant portions of available kernel memory, potentially leading to system slowdowns or even system crashes under memory pressure. The vulnerability affects systems using the Linux kernel's tracing infrastructure, particularly those that utilize event triggers and histogram functionality for system monitoring and debugging. Attackers could potentially exploit this vulnerability by creating numerous tracing instances with malformed triggers to exhaust system memory, though the direct exploitation requires kernel-level access and is more commonly a result of misconfiguration or software bugs in tracing usage patterns. The issue is particularly relevant in environments where extensive tracing is performed, such as in production systems, debugging environments, or security monitoring applications that rely heavily on kernel tracing capabilities.

Mitigation strategies for CVE-2023-53375 involve ensuring that kernel updates are applied promptly to address the memory leak in the tracing subsystem. System administrators should monitor kernel memory usage and tracing instance creation patterns to identify potential accumulation of leaked memory. The recommended approach includes implementing proper cleanup procedures for tracing instances and avoiding unnecessary creation of multiple tracing instances with complex trigger configurations. Organizations using kernel tracing for security monitoring or performance analysis should review their tracing configurations to minimize the risk of memory leaks. Additionally, kernel memory leak detection tools such as kmemleak should be utilized regularly to identify and address similar issues in the system. The vulnerability aligns with ATT&CK technique T1059.006 for kernel-based attacks and T1566 for credential access through system manipulation, though the primary concern here is resource exhaustion rather than direct privilege escalation. Regular system maintenance and kernel patching are essential to prevent exploitation of this memory management flaw, which is classified as a critical resource management issue requiring immediate attention from system administrators and security teams.

Responsible

Linux

Reservation

09/17/2025

Disclosure

09/18/2025

Moderation

accepted

CPE

ready

EPSS

0.00146

KEV

no

Activities

very low

Sources

Interested in the pricing of exploits?

See the underground prices here!