CVE-2022-50226

MEDIUM

Linux Kernel < 5.10.173 - Memory Leak

Title source: rule

Description

In the Linux kernel, the following vulnerability has been resolved: crypto: ccp - Use kzalloc for sev ioctl interfaces to prevent kernel memory leak For some sev ioctl interfaces, input may be passed that is less than or equal to SEV_FW_BLOB_MAX_SIZE, but larger than the data that PSP firmware returns. In this case, kmalloc will allocate memory that is the size of the input rather than the size of the data. Since PSP firmware doesn't fully overwrite the buffer, the sev ioctl interfaces with the issue may return uninitialized slab memory. Currently, all of the ioctl interfaces in the ccp driver are safe, but to prevent future problems, change all ioctl interfaces that allocate memory with kmalloc to use kzalloc and memset the data buffer to zero in sev_ioctl_do_platform_status.

Scores

CVSS v3 5.5
EPSS 0.0002
EPSS Percentile 5.4%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE
CWE-401
Status published

Affected Products (5)

linux/linux_kernel < 5.10.173
linux/Kernel < 5.10.173linux
linux/Kernel < 5.15.61linux
linux/Kernel < 5.18.18linux
linux/Kernel < 5.19.2linux

Timeline

Published Jun 18, 2025
Tracked Since Feb 18, 2026