{"id":"CVE-2024-58008","summary":"KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nKEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y\n\nWith vmalloc stack addresses enabled (CONFIG_VMAP_STACK=y) DCP trusted\nkeys can crash during en- and decryption of the blob encryption key via\nthe DCP crypto driver. This is caused by improperly using sg_init_one()\nwith vmalloc'd stack buffers (plain_key_blob).\n\nFix this by always using kmalloc() for buffers we give to the DCP crypto\ndriver.","modified":"2026-04-02T12:25:28.128885Z","published":"2025-02-27T02:12:04.100Z","related":["USN-7521-2"],"database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58008.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/3192f1c54dddb9b5820bf5e8677809949d8e9c66"},{"type":"WEB","url":"https://git.kernel.org/stable/c/3355594de46fb1cba663f12b9644b664b8a609f4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/58xxx/CVE-2024-58008.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58008"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb"},{"fixed":"3192f1c54dddb9b5820bf5e8677809949d8e9c66"},{"fixed":"3355594de46fb1cba663f12b9644b664b8a609f4"},{"fixed":"e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4"}]},{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"0"},{"last_affected":"9e3b266afcfe4294e84496f50f006f029d3100db"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-58008.json"}}],"schema_version":"1.7.5"}