KEYS: trusted: dcp: fix NULL dereference in AEAD crypto operation
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.11.86.12In the Linux kernel, the following vulnerability has been resolved:
KEYS: trusted: dcp: fix NULL dereference in AEAD crypto operation
When sealing or unsealing a key blob we currently do not wait for the AEAD cipher operation to finish and simply return after submitting the request. If there is some load on the system we can exit before the cipher operation is done and the buffer we read from/write to is already removed from the stack. This will e.g. result in NULL pointer dereference errors in the DCP driver during blob creation.
Fix this by waiting for the AEAD cipher operation to finish before resuming the seal and unseal calls.
From the CVE record · Linux
The Linux kernel's trusted DCP key handling does not wait for an AEAD cipher operation to finish before returning from a key blob seal or unseal call. Under system load, this can lead to a NULL pointer dereference in the DCP driver. The input does not specify attacker access requirements or user interaction.
Engineers running Linux kernels that use trusted DCP key handling should check their versions; affected versions are not specified.