Bug 2348031 (CVE-2022-49556) - CVE-2022-49556 kernel: KVM: SVM: Use kzalloc for sev ioctl interfaces to prevent kernel data leak
Summary: CVE-2022-49556 kernel: KVM: SVM: Use kzalloc for sev ioctl interfaces to prev...
Keywords:
Status: NEW
Alias: CVE-2022-49556
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-02-26 03:15 UTC by OSIDB Bzimport
Modified: 2025-06-30 16:21 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-02-26 03:15:13 UTC
In the Linux kernel, the following vulnerability has been resolved:

KVM: SVM: Use kzalloc for sev ioctl interfaces to prevent kernel data leak

For some sev ioctl interfaces, the length parameter that is passed maybe
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 allocated buffer, these
sev ioctl interface may return uninitialized kernel slab memory.

Comment 1 Avinash Hanwate 2025-02-26 21:29:19 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025022617-CVE-2022-49556-9870@gregkh/T


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