{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-38067","id":"CVE-2025-38067","title":"rseq: Fix segfault on registration when rseq_cs is non-zero","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nrseq: Fix segfault on registration when rseq_cs is non-zero\n\nThe rseq_cs field is documented as being set to 0 by user-space prior to\nregistration, however this is not currently enforced by the kernel. This\ncan result in a segfault on return to user-space if the value stored in\nthe rseq_cs field doesn't point to a valid struct rs","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nrseq: Fix segfault on registration when rseq_cs is non-zero\n\nThe rseq_cs field is documented as being set to 0 by user-space prior to\nregistration, however this is not currently enforced by the kernel. This\ncan result in a segfault on return to user-space if the value stored in\nthe rseq_cs field doesn't point to a valid struct rseq_cs.\n\nThe correct solution to this would be to fail the rseq registration when\nthe rseq_cs field is non-zero. However, some older versions of glibc\nwill reuse the rseq area of previous threads without clearing the\nrseq_cs field and will also terminate the process if the rseq\nregistration fails in a secondary thread. This wasn't caught in testing\nbecause in this case the leftover rseq_cs does point to a valid struct\nrseq_cs.\n\nWhat we can do is clear the rseq_cs field on registration when it's\nnon-zero which will prevent segfaults on registration and won't break\nthe glibc versions that reuse rseq areas on thread creation.","published":"2025-06-18T09:33:45.518Z","updated":"2026-11-07T02:30:41.012002752Z","reserved":"2025-04-16T04:51:23.980Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"48900d839a3454050fd5822e34be8d54c4ec9b86","status":"affected","versionType":"git"},{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"3e4028ef31b69286c9d4878cee0330235f53f218","status":"affected","versionType":"git"},{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"b2b05d0dc2f4f0646922068af435aed5763d16ba","status":"affected","versionType":"git"},{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"eaf112069a904b6207b4106ff083e0208232a2eb","status":"affected","versionType":"git"},{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"f004f58d18a2d3dc761cf973ad27b4a5997bd876","status":"affected","versionType":"git"},{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"2df285dab00fa03a3ef939b6cb0d0d0aeb0791db","status":"affected","versionType":"git"},{"version":"d7822b1e24f2df5df98c76f0e94a5416349ff759","lessThan":"fd881d0a085fc54354414aed990ccf05f282ba53","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.18","status":"affected"},{"version":"0","lessThan":"4.18","status":"unaffected","versionType":"semver"},{"version":"5.10.240","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.189","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.146","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.99","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.39","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.9","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/48900d839a3454050fd5822e34be8d54c4ec9b86","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/3e4028ef31b69286c9d4878cee0330235f53f218","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b2b05d0dc2f4f0646922068af435aed5763d16ba","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/eaf112069a904b6207b4106ff083e0208232a2eb","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f004f58d18a2d3dc761cf973ad27b4a5997bd876","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/2df285dab00fa03a3ef939b6cb0d0d0aeb0791db","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/fd881d0a085fc54354414aed990ccf05f282ba53","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38067.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38067","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00624,"epssPercentile":0.50849,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-38067","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38067","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-38067","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-38067","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}