CVE-2024-58008 KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y
A Linux kernel vulnerability causes a crash in DCP trusted keys when using vmalloc stacks, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58008?
CVE-2024-58008 is a high-severity vulnerability in Linux kernel, published on 27 Feb 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Which versions are affected by CVE-2024-58008?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-58008?
Apply the vendor's patch.
Is CVE-2024-58008 being exploited?
There is no known exploitation of CVE-2024-58008 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-58008, DEBIAN-CVE-2024-58008, GHSA-c982-mg4h-7c8x, UBUNTU-CVE-2024-58008.