# CVE-2022-50425: x86/fpu: Fix copy\_xstate\_to\_uabi() to copy init states correctly

> 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.19% (percentile 5, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-10-01T11:42:04.776Z
- **Modified:** 2026-06-17T05:23:31.773Z

## Who should check

- Anyone running Linux \>= 2308ee57d93d896618dd65c996429c9d3e469fe0, \< 6ff29642fd28965a8f8d6d326ac91bf6075f3113; \>= 2308ee57d93d896618dd65c996429c9d3e469fe0, \< 471f0aa7fa64e23766a1473b32d9ec3f0718895a
- Anyone running Linux 5.16

## Description

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

x86/fpu: Fix copy\_xstate\_to\_uabi() to copy init states correctly

When an extended state component is not present in fpstate, but in init
state, the function copies from init\_fpstate via copy\_feature().

But, dynamic states are not present in init\_fpstate because of all-zeros
init states. Then retrieving them from init\_fpstate will explode like this:

 BUG: kernel NULL pointer dereference, address: 0000000000000000
 ...
 RIP: 0010:memcpy\_erms+0x6/0x10
  ? \_\_copy\_xstate\_to\_uabi\_buf+0x381/0x870
  fpu\_copy\_guest\_fpstate\_to\_uabi+0x28/0x80
  kvm\_arch\_vcpu\_ioctl+0x14c/0x1460 \[kvm\]
  ? \_\_this\_cpu\_preempt\_check+0x13/0x20
  ? vmx\_vcpu\_put+0x2e/0x260 \[kvm\_intel\]
  kvm\_vcpu\_ioctl+0xea/0x6b0 \[kvm\]
  ? kvm\_vcpu\_ioctl+0xea/0x6b0 \[kvm\]
  ? \_\_fget\_light+0xd4/0x130
  \_\_x64\_sys\_ioctl+0xe3/0x910
  ? debug\_smp\_processor\_id+0x17/0x20
  ? fpregs\_assert\_state\_consistent+0x27/0x50
  do\_syscall\_64+0x3f/0x90
  entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Adjust the 'mask' to zero out the userspace buffer for the features that
are not available both from fpstate and from init\_fpstate.

The dynamic features depend on the compacted XSAVE format. Ensure it is
enabled before reading XCOMP\_BV in init\_fpstate.

## Affected and fixed versions

- Linux: \>= 2308ee57d93d896618dd65c996429c9d3e469fe0, \< 6ff29642fd28965a8f8d6d326ac91bf6075f3113; \>= 2308ee57d93d896618dd65c996429c9d3e469fe0, \< 471f0aa7fa64e23766a1473b32d9ec3f0718895a (cvelist)
- Linux: 5.16 (cvelist)

## Mitigation

- Upgrade Linux to 471f0aa7fa64e23766a1473b32d9ec3f0718895a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50425. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50425.md
Affected: Linux >= 2308ee57d93d896618dd65c996429c9d3e469fe0, < 6ff29642fd28965a8f8d6d326ac91bf6075f3113; >= 2308ee57d93d896618dd65c996429c9d3e469fe0, < 471f0aa7fa64e23766a1473b32d9ec3f0718895a; Linux 5.16
Fixed in: Linux 6ff29642fd28965a8f8d6d326ac91bf6075f3113, Linux 471f0aa7fa64e23766a1473b32d9ec3f0718895a

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-2022-50425 being exploited?

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

### How serious is CVE-2022-50425?

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

### Which versions are affected by CVE-2022-50425?

Linux \>= 2308ee57d93d896618dd65c996429c9d3e469fe0, \< 6ff29642fd28965a8f8d6d326ac91bf6075f3113; \>= 2308ee57d93d896618dd65c996429c9d3e469fe0, \< 471f0aa7fa64e23766a1473b32d9ec3f0718895a; Linux 5.16.

### Is there a fix for CVE-2022-50425?

Yes. Fixed in Linux 6ff29642fd28965a8f8d6d326ac91bf6075f3113, Linux 471f0aa7fa64e23766a1473b32d9ec3f0718895a. Upgrade Linux to 471f0aa7fa64e23766a1473b32d9ec3f0718895a or later.

### How do I check if I'm affected by CVE-2022-50425?

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/6ff29642fd28965a8f8d6d326ac91bf6075f3113>
- patch: <https://git.kernel.org/stable/c/471f0aa7fa64e23766a1473b32d9ec3f0718895a>

## 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-2022-50425>

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