# CVE-2024-58008: KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2025-02-27T02:12:04.100Z
- Modified: 2026-08-05T11:47:24.494Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb before 3192f1c54dddb9b5820bf5e8677809949d8e9c66; from 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb before 3355594de46fb1cba663f12b9644b664b8a609f4; from 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb before e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4; 9e3b266afcfe4294e84496f50f006f029d3100db; from 6.10.7 before 6.11; 6.11 (not affected: before 6.11; from 6.12.14 up to 6.12.*; from 6.13.3 up to 6.13.*; from 6.14 up to *)
- linux 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

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/3192f1c54dddb9b5820bf5e8677809949d8e9c66> (patch)
- <https://git.kernel.org/stable/c/3355594de46fb1cba663f12b9644b664b8a609f4> (patch)
- <https://git.kernel.org/stable/c/e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4> (patch)

## Sources

- CVE List: [CVE-2024-58008](https://www.cve.org/CVERecord?id=CVE-2024-58008), CVE Terms of Use, modified 2026-08-05
- NVD: [CVE-2024-58008](https://nvd.nist.gov/vuln/detail/CVE-2024-58008), Public domain, modified 2026-08-04

---

Page: https://cve.day/CVE-2024-58008 · Whole record: https://cve.day/CVE-2024-58008.json · Rebuilt by cve.day 2026-11-25T22:58:52.102Z
