CVE-2022-50226
Linux Kernel vulnerability analysis and mitigation

Overview

CVE-2022-50226 is a vulnerability discovered in the Linux kernel's crypto: ccp component, specifically affecting the sev ioctl interfaces. The vulnerability was reported through kernel.org and published on June 18, 2025. The issue involves memory allocation handling where input may be passed that is less than or equal to SEVFWBLOBMAXSIZE but larger than the data that PSP firmware returns (NVD, Wiz).

Technical details

The vulnerability occurs when kmalloc allocates memory that is the size of the input rather than the size of the data returned by PSP firmware. Since PSP firmware doesn't fully overwrite the buffer, the sev ioctl interfaces with this issue may return uninitialized slab memory. While all ioctl interfaces in the ccp driver were reported to be safe at the time, the issue presented a potential security risk for future implementations (NVD).

Impact

The vulnerability could result in information disclosure through uninitialized kernel memory being exposed to userspace applications (Wiz).

Mitigation and workarounds

The vulnerability was addressed by changing all ioctl interfaces that allocate memory with kmalloc to use kzalloc instead. Additionally, the fix includes adding memset to zero the data buffer in sevioctldoplatformstatus to prevent future problems (Wiz).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-40205HIGH7.8
  • Linux KernelLinux Kernel
  • linux-azure-6.14
NoYesNov 12, 2025
CVE-2025-40211HIGH7.1
  • Linux KernelLinux Kernel
  • linux-gcp-5.15
NoYesNov 21, 2025
CVE-2025-40206MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-raspi
NoYesNov 12, 2025
CVE-2025-40210MEDIUM5.1
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesNov 21, 2025
CVE-2025-40212N/AN/A
  • Linux KernelLinux Kernel
  • kernel-rt-64k-modules
NoYesNov 24, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management