# CVE-2025-21632: x86/fpu: Ensure shadow stack is active before "getting" registers

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-01-19T10:17:50.721Z
- **Modified:** 2026-11-05T21:17:40.513Z

## Who should check

- Anyone running Linux \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< 0a3a872214188e4268d31581ed0cd44508e038cf; \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d; \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< a9d9c33132d49329ada647e4514d210d15e31d81
- Anyone running Linux 6.6

## Description

In the Linux kernel, the following vulnerability has been resolved:

x86/fpu: Ensure shadow stack is active before "getting" registers

The x86 shadow stack support has its own set of registers. Those registers
are XSAVE-managed, but they are "supervisor state components" which means
that userspace can not touch them with XSAVE/XRSTOR.  It also means that
they are not accessible from the existing ptrace ABI for XSAVE state.
Thus, there is a new ptrace get/set interface for it.

The regset code that ptrace uses provides an -\>active() handler in
addition to the get/set ones. For shadow stack this -\>active() handler
verifies that shadow stack is enabled via the ARCH\_SHSTK\_SHSTK bit in the
thread struct. The -\>active() handler is checked from some call sites of
the regset get/set handlers, but not the ptrace ones. This was not
understood when shadow stack support was put in place.

As a result, both the set/get handlers can be called with
XFEATURE\_CET\_USER in its init state, which would cause get\_xsave\_addr() to
return NULL and trigger a WARN\_ON(). The ssp\_set() handler luckily has an
ssp\_active() check to avoid surprising the kernel with shadow stack
behavior when the kernel is not ready for it (ARCH\_SHSTK\_SHSTK==0). That
check just happened to avoid the warning.

But the -\>get() side wasn't so lucky. It can be called with shadow stacks
disabled, triggering the warning in practice, as reported by Christina
Schimpe:

WARNING: CPU: 5 PID: 1773 at arch/x86/kernel/fpu/regset.c:198 ssp\_get+0x89/0xa0
\[...\]
Call Trace:
\<TASK\>
? show\_regs+0x6e/0x80
? ssp\_get+0x89/0xa0
? \_\_warn+0x91/0x150
? ssp\_get+0x89/0xa0
? report\_bug+0x19d/0x1b0
? handle\_bug+0x46/0x80
? exc\_invalid\_op+0x1d/0x80
? asm\_exc\_invalid\_op+0x1f/0x30
? \_\_pfx\_ssp\_get+0x10/0x10
? ssp\_get+0x89/0xa0
? ssp\_get+0x52/0xa0
\_\_regset\_get+0xad/0xf0
copy\_regset\_to\_user+0x52/0xc0
ptrace\_regset+0x119/0x140
ptrace\_request+0x13c/0x850
? wait\_task\_inactive+0x142/0x1d0
? do\_syscall\_64+0x6d/0x90
arch\_ptrace+0x102/0x300
\[...\]

Ensure that shadow stacks are active in a thread before looking them up
in the XSAVE buffer. Since ARCH\_SHSTK\_SHSTK and user\_ssp\[SHSTK\_EN\] are
set at the same time, the active check ensures that there will be
something to find in the XSAVE buffer.

\[ dhansen: changelog/subject tweaks \]

## Affected and fixed versions

- Linux: \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< 0a3a872214188e4268d31581ed0cd44508e038cf; \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d; \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< a9d9c33132d49329ada647e4514d210d15e31d81 (cvelist)
- Linux: 6.6 (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-21632. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-21632.md
Affected: Linux >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < 0a3a872214188e4268d31581ed0cd44508e038cf; >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d; >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < a9d9c33132d49329ada647e4514d210d15e31d81; Linux 6.6
Fixed in: Linux 0a3a872214188e4268d31581ed0cd44508e038cf, Linux 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d

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-21632 being exploited?

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

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

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

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

Linux \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< 0a3a872214188e4268d31581ed0cd44508e038cf; \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d; \>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, \< a9d9c33132d49329ada647e4514d210d15e31d81; Linux 6.6.

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

Yes. Fixed in Linux 0a3a872214188e4268d31581ed0cd44508e038cf, Linux 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d. No fix listed yet: follow the vendor advisory.

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

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/0a3a872214188e4268d31581ed0cd44508e038cf>
- patch: <https://git.kernel.org/stable/c/6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d>
- patch: <https://git.kernel.org/stable/c/a9d9c33132d49329ada647e4514d210d15e31d81>

## 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-21632>

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