tpm: tpm_vtpm_proxy: fix a race condition in /dev/vtpmx creation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6f99612e250041a2402d3b1694bccb149cd424a4 · < 99b998fb9d7d2d2d9dbb3e19db2d0ade02f5a604| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
tpm: tpm_vtpm_proxy: fix a race condition in /dev/vtpmx creation
/dev/vtpmx is made visible before 'workqueue' is initialized, which can lead to a memory corruption in the worst case scenario.
Address this by initializing 'workqueue' as the very first step of the driver initialization.
From the CVE record · Linux
The Linux kernel's tpm_vtpm_proxy driver makes /dev/vtpmx visible before its workqueue is initialized. Accessing the device during that window can trigger a race condition and, in the worst case, memory corruption. The input does not specify authentication requirements or whether user interaction is needed.
Engineers running Linux kernels with the tpm_vtpm_proxy driver should check whether their kernel includes the fix; affected versions are not specified.