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

CVE-2022-50425

MEDIUM 5.5EPSS 5%

x86/fpu: Fix copy_xstate_to_uabi() to copy init states correctly

Mitigation

  • Upgrade Linux to 471f0aa7fa64e23766a1473b32d9ec3f0718895a or later.

Who should check

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

Vulnerability facts

Affected
Linux >= 2308ee57d93d896618dd65c996429c9d3e469fe0, < 6ff29642fd28965a8f8d6d326ac91bf6075f3113; >= 2308ee57d93d896618dd65c996429c9d3e469fe0, < 471f0aa7fa64e23766a1473b32d9ec3f0718895a; Linux 5.16
Fixed in
Linux 6ff29642fd28965a8f8d6d326ac91bf6075f3113, Linux 471f0aa7fa64e23766a1473b32d9ec3f0718895a
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.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
CWE
CWE-476
Published
Modified

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

Package / productAffectedFixedSource
Linux>= 2308ee57d93d896618dd65c996429c9d3e469fe0, < 6ff29642fd28965a8f8d6d326ac91bf6075f3113; >= 2308ee57d93d896618dd65c996429c9d3e469fe0, < 471f0aa7fa64e23766a1473b32d9ec3f0718895a—cvelist
Linux5.16—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-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.

References

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.

Sponsors