KVM: SVM: Use kzalloc for sev ioctl interfaces to prevent kernel data leak
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 5.15.45, Kernel 5.17.13, Kernel 5.18.2 and 6 more.
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
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=5.11 <5.15.45, >=5.16 <5.17.13, >=5.18 <5.18.2, >=5.7 <5.10.124, >=eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 <57a01725339f9d82b099102ba2751621b1caab93, >=eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 <bbdcc644b59e01e98c68894a9fab42b9687f42b0, >=eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 <d22d2474e3953996f03528b84b7f52cc26a39403, >=eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 <d8fdb4b24097472ff6b3c0559448200d420b1418, =5.7, >=eaf78265a4ab33935d3a0f1407ce4a91aac4d4d5 <401bef1f95de92c3a8c6eece46e02fa88d7285ee | 5.15.45, 5.17.13, 5.18.2, 5.10.124, 57a01725339f9d82b099102ba2751621b1caab93, bbdcc644b59e01e98c68894a9fab42b9687f42b0, d22d2474e3953996f03528b84b7f52cc26a39403, d8fdb4b24097472ff6b3c0559448200d420b1418, 401bef1f95de92c3a8c6eece46e02fa88d7285ee |
| linux-kernel: Kernel | >=5.11.0 <5.15.45, >=5.16.0 <5.17.13, >=5.18.0 <5.18.2, >=5.7.0 <5.10.124 | 5.15.45, 5.17.13, 5.18.2, 5.10.124 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket