KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y
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
|
In the Linux kernel, the following vulnerability has been resolved:
KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y
With vmalloc stack addresses enabled (CONFIG_VMAP_STACK=y) DCP trusted keys can crash during en- and decryption of the blob encryption key via the DCP crypto driver. This is caused by improperly using sg_init_one() with vmalloc'd stack buffers (plain_key_blob).
Fix this by always using kmalloc() for buffers we give to the DCP crypto driver.
From the CVE record · Linux
The Linux kernel’s DCP trusted-keys code can crash while encrypting or decrypting a blob encryption key when CONFIG_VMAP_STACK=y. The input does not establish whether an attacker can trigger the crash, or specify access or user-interaction requirements.
Engineers running Linux kernels with DCP trusted keys and CONFIG_VMAP_STACK=y should check their deployments; affected versions were not specified.