In the Linux kernel, the following vulnerability has been resolved:EOL][EOL]rseq: Fix segfault on registration when rseq_cs is non-zero[EOL][EOL]The rseq_cs field is documented as being set to 0 by user-space prior to[EOL]registration, however this is not currently enforced by the kernel. This[EOL]can result in a segfault on return to user-space if the value stored in[EOL]the rseq_cs field doesn't point to a valid struct rseq_cs.[EOL][EOL]The correct solution to this would be to fail the rseq registration when[EOL]the rseq_cs field is non-zero. However, some older versions of glibc[EOL]will reuse the rseq area of previous threads without clearing the[EOL]rseq_cs field and will also terminate the process if the rseq[EOL]registration fails in a secondary thread. This wasn't caught in testing[EOL]because in this case the leftover rseq_cs does point to a valid struct[EOL]rseq_cs.[EOL][EOL]What we can do is clear the rseq_cs field on registration when it's[EOL]non-zero which will prevent segfaults on registration and won't break[EOL]the glibc versions that reuse rseq areas on thread creation. CREATE(Triage):(User=lchen-cn) [CVE-2025-38067 (https://nvd.nist.gov/vuln/detail/CVE-2025-38067)