What’s Vulnerable › Vulnerabilities
CVE-2024-58008: KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.1% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-27 · updated 2026-08-04
Description
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.
Affected products
- Linux kernel: from 6.10.7 before 6.11; from 6.11.1 before 6.12.14; from 6.13 before 6.13.3; 6.11, 6.11-rc4, 6.11-rc5, 6.11-rc6, 6.11-rc7 — fixed in 6.11, 6.12.14, 6.13.3
How to fix
Upgrade to a fixed version: Linux kernel 6.11, 6.12.14, 6.13.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/3192f1c54dddb9b5820bf5e8677809949d8e9c66
- https://git.kernel.org/stable/c/3355594de46fb1cba663f12b9644b664b8a609f4
- https://git.kernel.org/stable/c/e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4
Get alerted when CVE-2024-58008 or the next vulnerability affects your stack