CVE-2022-49556

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

HIGH
7.1
CVSS Score
Published: February 26, 2025 at 02:14 AM UTC
Updated: June 17, 2026 at 05:18 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.1
Exploit prediction
EPSS 0.3%

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

5.11 ≤ v < 5.15.455.16 ≤ v < 5.17.135.18 ≤ v < 5.18.25.7 ≤ v < 5.10.1245.7 ≤ v < 5.15.455.7 ≤ v < 5.17.135.7 ≤ v < 5.18.25.7 ≤ v < 5.195.7eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5
Vendor states this is fixed in 401bef1f95de92c3a8c6eece46e02fa88d7285ee (fixed)
Vendor states this is fixed in 57a01725339f9d82b099102ba2751621b1caab93 (fixed)
Vendor states this is fixed in bbdcc644b59e01e98c68894a9fab42b9687f42b0 (fixed)
Vendor states this is fixed in d22d2474e3953996f03528b84b7f52cc26a39403 (fixed)
Vendor states this is fixed in d8fdb4b24097472ff6b3c0559448200d420b1418 (fixed)
Vendor states this is fixed in 5.10.124 (unaffected)
Vendor states this is fixed in 5.15.45 (unaffected)
Vendor states this is fixed in 5.17.13 (unaffected)
Vendor states this is fixed in 5.18.2 (unaffected)
Vendor states this is fixed in 5.19 (unaffected)
Vendor states this is fixed in 5.7 (unaffected)

References (5)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/401bef1f95de92c3a8c6eece46e02fa88d7285ee
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/57a01725339f9d82b099102ba2751621b1caab93
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/bbdcc644b59e01e98c68894a9fab42b9687f42b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d22d2474e3953996f03528b84b7f52cc26a39403
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d8fdb4b24097472ff6b3c0559448200d420b1418

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card