drivers: virt: acrn: hsm: Use kzalloc to avoid info leak in pmcmd_ioctl
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3d679d5aec648f50e645702929890b9611998a0b · < 819cec1dc47cdeac8f5dd6ba81c1dbee2a68c3bb| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
drivers: virt: acrn: hsm: Use kzalloc to avoid info leak in pmcmd_ioctl
In the "pmcmd_ioctl" function, three memory objects allocated by kmalloc are initialized by "hcall_get_cpu_state", which are then copied to user space. The initializer is indeed implemented in "acrn_hypercall2" (arch/x86/include/asm/acrn.h). There is a risk of information leakage due to uninitialized bytes.
From the CVE record · Linux
The Linux kernel’s ACRN HSM pmcmd_ioctl can copy uninitialized bytes from allocated memory to user space. A local caller able to invoke this ioctl may receive those bytes; authentication requirements are not specified.
Engineers running Linux kernels with the ACRN HSM driver should check their versions; affected versions are not specified.