2084AI Security Observatory

CVE

CVE-2022-49556

CVE-2022-49556HIGH 7.1EPSS 20%

CNA 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 versions

All Linux kernel vulnerabilities →

  • ≥ 5.18, < 5.18.2Fixed in 5.18.2
  • ≥ 5.16, < 5.17.13Fixed in 5.17.13
  • ≥ 5.11, < 5.15.45Fixed in 5.15.45
  • ≥ 5.7, < 5.10.124Fixed in 5.10.124

Distribution packages (Debian, Ubuntu, Red Hat…) backport fixes without changing the upstream version: check your distribution’s advisory as well.

Advisories and patches

Data: NVD (public domain), CISA KEV (CC0), FIRST EPSS, OSV.dev / GitHub Advisory Database (CC-BY 4.0) · This database lists affected versions and fixes only. It never hosts or links exploit code.