CVE-2025-38067
Medium · 5.5CVSS
5.5
EPSS
0.6%
Published
Jun 18, 2025
CISA due date
—
Cloudanix analysis
A Linux kernel bug can cause some programs to crash during normal thread operations if internal memory pointers are not properly reset.
- Exploitation
- Local Privilege
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The kernel fails to enforce or sanitize the rseq_cs field during rseq registration, permitting a non-zero value that may reference invalid memory and trigger a segmentation fault on return to user space.
Why it matters to the business
Affected Linux systems risk application crashes during thread creation or restartable sequence usage, especially with older glibc versions, resulting in service interruptions and operational instability across kernel-dependent workloads.
How an attack unfolds
A local attacker registers rseq with a crafted non-zero rseq_cs value that does not point to valid memory; the kernel clears the field on registration to avoid the fault but older unpatched kernels allow the invalid pointer to cause a segfault on context return.
How to fix it
Upgrade to a fixed kernel containing commit 48900d839a3454050fd5822e34be8d54c4ec9b86 or the equivalent package update such as kernel-tmb 4.1.15-2.mga5; reboot after installation.
How to confirm the fix worked
Confirm the running kernel includes the referenced commit or package version; test rseq registration paths with non-zero rseq_cs values to verify no segfault occurs.
Typical attack path
- Obtain local user access on an affected Linux system
- Invoke rseq registration syscall with non-zero rseq_cs pointing to invalid address
- Trigger return to user space to induce segmentation fault in the process
How to detect it
Search system logs and application crash reports for segmentation faults occurring shortly after thread creation or rseq-related syscalls on unpatched kernels.
What your security team should do
- Prioritize kernel updates on all production systems within standard change windows
- Review application logs for unexplained segmentation faults involving rseq or thread creation
- Test critical workloads with the patched kernel before broad deployment
The record
In the Linux kernel, the following vulnerability has been resolved: rseq: Fix segfault on registration when rseq_cs is non-zero The rseq_cs field is documented as being set to 0 by user-space prior to registration, however this is not currently enforced by the kernel. This can result in a segfault on return to user-space if the value stored in the rseq_cs field doesn't point to a valid struct rseq_cs. The correct solution to this would be to fail the rseq registration when the rseq_cs field is non-zero. However, some older versions of glibc will reuse the rseq area of previous threads without clearing the rseq_cs field and will also terminate the process if the rseq registration fails in a secondary thread. This wasn't caught in testing because in this case the leftover rseq_cs does point to a valid struct rseq_cs. What we can do is clear the rseq_cs field on registration when it's non-zero which will prevent segfaults on registration and won't break the glibc versions that reuse rseq areas on thread creation.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | linux | 0 | No fix |
| Debian:12 | linux | 0 | No fix |
| Debian:13 | linux | 0 | No fix |
| Debian:14 | linux | 0 | No fix |
| Debian:14 | linux | 0 | 6.16.3-1 |
| Linux | Kernel | 4.18.0 | 5.10.240 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39869 In the Linux kernel, the following vulnerability has been resolved: dmaengine: ti: edma… Also affects linux
- CVE-2025-39873 In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can… Also affects linux
- CVE-2025-39863 In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix… Also affects linux
- CVE-2025-39865 In the Linux kernel, the following vulnerability has been resolved: tee: fix NULL pointer… Also affects linux
- CVE-2025-39866 In the Linux kernel, the following vulnerability has been resolved: fs: writeback: fix… Also affects linux