Bug 2373428 (CVE-2022-50226) - CVE-2022-50226 kernel: crypto: ccp - Use kzalloc for sev ioctl interfaces to prevent kernel memory leak
Summary: CVE-2022-50226 kernel: crypto: ccp - Use kzalloc for sev ioctl interfaces to ...
Keywords:
Status: NEW
Alias: CVE-2022-50226
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-06-18 12:02 UTC by OSIDB Bzimport
Modified: 2025-06-20 10:13 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-06-18 12:02:25 UTC
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.

Comment 1 Avinash Hanwate 2025-06-20 08:57:27 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025061849-CVE-2022-50226-9c73@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.