Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2025-21632

MEDIUM 5.5EPSS 15%

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

Mitigation

  • No fix listed yet: follow the vendor advisory.

Who should check

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

Vulnerability facts

Affected
Linux >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < 0a3a872214188e4268d31581ed0cd44508e038cf; >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d; >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < a9d9c33132d49329ada647e4514d210d15e31d81; Linux 6.6
Fixed in
Linux 0a3a872214188e4268d31581ed0cd44508e038cf, Linux 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
EPSS
0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
CWE
CWE-476
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < 0a3a872214188e4268d31581ed0cd44508e038cf; >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < 6bfe1fc22f462bec87422cdcbec4d7a2f43ff01d; >= 2fab02b25ae7cf5f714ab456b03d9a3fe5ae98c9, < a9d9c33132d49329ada647e4514d210d15e31d81—cvelist
Linux6.6—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

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.

References

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.

Sponsors