CVE-2022-49556
JSON

7.1high

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

Severity
7.1high CVSS:3.1 by NVD
Exploit likelihood
0.29% (higher than 14% of CVEs)
Published
Last changed
Assigned by
Linux

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

Product or packageVersionsReported by
Linux Linuxfrom eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 before 401bef1f95de92c3a8c6eece46e02fa88d7285ee, from eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 before d8fdb4b24097472ff6b3c0559448200d420b1418, from eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 before bbdcc644b59e01e98c68894a9fab42b9687f42b0, from eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 before 57a01725339f9d82b099102ba2751621b1caab93, from eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 before d22d2474e3953996f03528b84b7f52cc26a39403, 5.7
Not affected: before 5.7, from 5.10.124 up to 5.10.*, from 5.15.45 up to 5.15.*, from 5.17.13 up to 5.17.*, from 5.18.2 up to 5.18.*, from 5.19 up to *
CVE List
linux linux_kernelfrom 5.7 before 5.10.124, from 5.11 before 5.15.45, from 5.16 before 5.17.13, from 5.18 before 5.18.2NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: KVM: SVM: Usar kzalloc para interfaces sev ioctl para evitar fugas de datos del kernel Para algunas interfaces sev ioctl, el parámetro de longitud que se pasa puede ser menor o igual a SEV_FW_BLOB_MAX_SIZE, pero mayor que los datos que devuelve el firmware de PSP. En este caso, kmalloc asignará memoria que sea del tamaño de la entrada en lugar del tamaño de los datos. Dado que el firmware de PSP no sobrescribe por completo el búfer asignado, estas interfaces sev ioctl pueden devolver memoria de losa de kernel no inicializada.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-49556 changed 2026-11-05CVE Terms of Use
NVDCVE-2022-49556 changed 2026-11-05Public domain