Kernel memory corruption via unterminated tracing buffer
Published Sep 5, 2025 · Updated Sep 5, 2025
Out-of-bounds access in Linux kernel tracing allows local users to corrupt memory or crash the kernel through an overlong ftrace filter. When trace_get_user rejects a token longer than FTRACE_BUFF_MAX, it leaves parser->buffer unterminated, so ftrace_regex_release passes it to strsep and strpbrk and reads beyond its allocation. Access requires permission to write a tracefs filter file; closing that file can also write a NUL byte beyond the buffer and panic or oops the kernel.
Summary
What happened
Out-of-bounds access in Linux kernel tracing allows local users to corrupt memory or crash the kernel through an overlong ftrace filter. When trace_get_user rejects a token longer than FTRACE_BUFF_MAX, it leaves parser->buffer unterminated, so ftrace_regex_release passes it to strsep and strpbrk and reads beyond its allocation. Access requires permission to write a tracefs filter file; closing that file can also write a NUL byte beyond the buffer and panic or oops the kernel.
The record
- CVE
- CVE-2025-39683
- Published
- Sep 5, 2025
- Updated
- Sep 5, 2025
- Vendor
- The Linux Kernel Organization
- Product
- Linux
- Classifications
- CWE-125, T1499
- Attack vector
- local
- Privileges
- authenticated
Timeline
How it unfolded
- Sep 5, 2025CVE publishedPublication date reported by the CVE source.
- Sep 5, 2025Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=0b641b25870f02e2423e494365fc5243cc1e2759
- Affected versionversion=24cd31752f47699b89b4b3471155c8e599a1a23a
- Affected versionversion=3d9281a4ac7171c808f9507f0937eb236b353905
- Affected versionversion=5.13
- Affected versionversion=634684d79733124f7470b226b0f42aada4426b07 <b842ef39c2ad6156c13afdec25ecc6792a9b67b9
- Affected versionversion=6ab671191f64b0da7d547e2ad4dc199ca7e5b558
- Affected versionversion=8c9af478c06bb1ab1422f90d8ecbc53defd44bc3 <3079517a5ba80901fe828a06998da64b9b8749be
- Affected versionversion=8c9af478c06bb1ab1422f90d8ecbc53defd44bc3 <418b448e1d7470da9d4d4797f71782595ee69c49
- Affected versionversion=8c9af478c06bb1ab1422f90d8ecbc53defd44bc3 <41b838420457802f21918df66764b6fbf829d330
- Affected versionversion=8c9af478c06bb1ab1422f90d8ecbc53defd44bc3 <58ff8064cb4c7eddac4da1a59da039ead586950a
- Affected versionversion=8c9af478c06bb1ab1422f90d8ecbc53defd44bc3 <6a909ea83f226803ea0e718f6e88613df9234d58
- Affected versionversion=8c9af478c06bb1ab1422f90d8ecbc53defd44bc3 <d0c68045b8b0f3737ed7bd6b8c83b7887014adee
- Affected versionversion=cdd107d7f18158d966c2bc136204fe826dac445c
- Affected versionversion=e9cb474de7ff7a970c2a3951c12ec7e3113c0c35
- Affected versionversion=ffd51dbfd2900e50c71b5c069fe407957e52d61f
What conditions does exploitation require?
What is affected?
Published CVSS scores
CVSS describes severity. EPSS estimates exploitation probability.
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Public exploit references
No public exploit references are available in this record.
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo