# CVE-2022-49556: KVM: SVM: Use kzalloc for sev ioctl interfaces to prevent kernel data leak

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2025-02-26T02:14:03.630Z
- Modified: 2026-11-05T20:17:07.297Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 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.2

## References

- <https://git.kernel.org/stable/c/401bef1f95de92c3a8c6eece46e02fa88d7285ee> (patch)
- <https://git.kernel.org/stable/c/d8fdb4b24097472ff6b3c0559448200d420b1418> (patch)
- <https://git.kernel.org/stable/c/bbdcc644b59e01e98c68894a9fab42b9687f42b0> (patch)
- <https://git.kernel.org/stable/c/57a01725339f9d82b099102ba2751621b1caab93> (patch)
- <https://git.kernel.org/stable/c/d22d2474e3953996f03528b84b7f52cc26a39403> (patch)

## Sources

- CVE List: [CVE-2022-49556](https://www.cve.org/CVERecord?id=CVE-2022-49556), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49556](https://nvd.nist.gov/vuln/detail/CVE-2022-49556), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49556 · Whole record: https://cve.day/CVE-2022-49556.json · Rebuilt by cve.day 2026-11-25T22:58:20.729Z
