CVE-2025-38067
rseq: Fix segfault on registration when rseq_cs is non-zero
Check your servers for CVE-2025-38067
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-38067 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.70%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 54.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 5 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before 48900d839a3454050fd5822e34be8d54c4ec9b86 affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before 3e4028ef31b69286c9d4878cee0330235f53f218 affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before b2b05d0dc2f4f0646922068af435aed5763d16ba affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before eaf112069a904b6207b4106ff083e0208232a2eb affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before f004f58d18a2d3dc761cf973ad27b4a5997bd876 affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before 2df285dab00fa03a3ef939b6cb0d0d0aeb0791db affected from d7822b1e24f2df5df98c76f0e94a5416349ff759, before fd881d0a085fc54354414aed990ccf05f282ba53
Other versions: unaffected
|
| Linux |
affected 4.18 unaffected before 4.18 unaffected from 5.10.240 up to and including 5.10.* unaffected from 5.15.189 up to and including 5.15.* unaffected from 6.1.146 up to and including 6.1.* unaffected from 6.6.99 up to and including 6.6.* unaffected from 6.12.39 up to and including 6.12.* unaffected from 6.14.9 up to and including 6.14.* unaffected 6.15 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-38067 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38067
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-38067
trivy image --scanners vuln IMAGE | grep CVE-2025-38067
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/48900d839a3454050fd5822e34be8d54c4ec9b86 git.kernel.org
- https://git.kernel.org/stable/c/3e4028ef31b69286c9d4878cee0330235f53f218 git.kernel.org
- https://git.kernel.org/stable/c/b2b05d0dc2f4f0646922068af435aed5763d16ba git.kernel.org
- https://git.kernel.org/stable/c/eaf112069a904b6207b4106ff083e0208232a2eb git.kernel.org
- https://git.kernel.org/stable/c/f004f58d18a2d3dc761cf973ad27b4a5997bd876 git.kernel.org
- https://git.kernel.org/stable/c/2df285dab00fa03a3ef939b6cb0d0d0aeb0791db git.kernel.org
- https://git.kernel.org/stable/c/fd881d0a085fc54354414aed990ccf05f282ba53 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html cert-portal.siemens.com
Source: the record CVE-2025-38067 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse