# CVE-2025-38067: rseq: Fix segfault on registration when rseq\_cs is non-zero

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-28)
- **Published:** 2025-06-18T09:33:45.518Z
- **Modified:** 2026-11-05T21:18:08.667Z

## Who should check

- Anyone running Linux \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 48900d839a3454050fd5822e34be8d54c4ec9b86; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 3e4028ef31b69286c9d4878cee0330235f53f218; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< b2b05d0dc2f4f0646922068af435aed5763d16ba; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< eaf112069a904b6207b4106ff083e0208232a2eb; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< f004f58d18a2d3dc761cf973ad27b4a5997bd876; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 2df285dab00fa03a3ef939b6cb0d0d0aeb0791db; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< fd881d0a085fc54354414aed990ccf05f282ba53
- Anyone running Linux 4.18

## Description

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 and fixed versions

- Linux: \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 48900d839a3454050fd5822e34be8d54c4ec9b86; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 3e4028ef31b69286c9d4878cee0330235f53f218; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< b2b05d0dc2f4f0646922068af435aed5763d16ba; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< eaf112069a904b6207b4106ff083e0208232a2eb; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< f004f58d18a2d3dc761cf973ad27b4a5997bd876; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 2df285dab00fa03a3ef939b6cb0d0d0aeb0791db; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< fd881d0a085fc54354414aed990ccf05f282ba53 (cvelist)
- Linux: 4.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-38067. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-38067.md
Affected: Linux >= d7822b1e24f2df5df98c76f0e94a5416349ff759, < 48900d839a3454050fd5822e34be8d54c4ec9b86; >= d7822b1e24f2df5df98c76f0e94a5416349ff759, < 3e4028ef31b69286c9d4878cee0330235f53f218; >= d7822b1e24f2df5df98c76f0e94a5416349ff759, < b2b05d0dc2f4f0646922068af435aed5763d16ba; >= d7822b1e24f2df5df98c76f…
Fixed in: Linux 48900d839a3454050fd5822e34be8d54c4ec9b86, Linux 3e4028ef31b69286c9d4878cee0330235f53f218, Linux 2df285dab00fa03a3ef939b6cb0d0d0aeb0791db

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-38067 being exploited?

There is no confirmed exploitation: CVE-2025-38067 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2025-38067?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-38067?

Linux \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 48900d839a3454050fd5822e34be8d54c4ec9b86; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 3e4028ef31b69286c9d4878cee0330235f53f218; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< b2b05d0dc2f4f0646922068af435aed5763d16ba; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< eaf112069a904b6207b4106ff083e0208232a2eb; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< f004f58d18a2d3dc761cf973ad27b4a5997bd876; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< 2df285dab00fa03a3ef939b6cb0d0d0aeb0791db; \>= d7822b1e24f2df5df98c76f0e94a5416349ff759, \< fd881d0a085fc54354414aed990ccf05f282ba53; Linux 4.18.

### Is there a fix for CVE-2025-38067?

Yes. Fixed in Linux 48900d839a3454050fd5822e34be8d54c4ec9b86, Linux 3e4028ef31b69286c9d4878cee0330235f53f218, Linux 2df285dab00fa03a3ef939b6cb0d0d0aeb0791db. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2025-38067?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/48900d839a3454050fd5822e34be8d54c4ec9b86>
- patch: <https://git.kernel.org/stable/c/3e4028ef31b69286c9d4878cee0330235f53f218>
- patch: <https://git.kernel.org/stable/c/b2b05d0dc2f4f0646922068af435aed5763d16ba>
- patch: <https://git.kernel.org/stable/c/eaf112069a904b6207b4106ff083e0208232a2eb>
- patch: <https://git.kernel.org/stable/c/f004f58d18a2d3dc761cf973ad27b4a5997bd876>
- patch: <https://git.kernel.org/stable/c/2df285dab00fa03a3ef939b6cb0d0d0aeb0791db>
- patch: <https://git.kernel.org/stable/c/fd881d0a085fc54354414aed990ccf05f282ba53>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-082556.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-38067>

HTML: <https://flawdb.com/CVE-2025-38067> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-38067>
