{"id":"CVE-2024-58008","aliases":["CVE-2024-58008"],"related":[],"kind":"vulnerability","state":"published","title":"KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: KEYS: trusted: dcp: corrige el uso incorrecto de sg con CONFIG_VMAP_STACK=y Con las direcciones de pila vmalloc habilitadas (CONFIG_VMAP_STACK=y), las claves confiables de DCP pueden fallar durante el cifrado y descifrado de la clave de cifrado de blobs a través del controlador de cifrado DCP. Esto se debe al uso incorrecto de sg_init_one() con búferes de pila vmalloc (plain_key_blob). Solucione esto utilizando siempre kmalloc() para los búferes que le damos al controlador de cifrado DCP.","source":"nvd"}],"published":"2025-02-27T02:12:04.100Z","modified":"2026-08-05T11:47:24.494Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb","fixed":"3192f1c54dddb9b5820bf5e8677809949d8e9c66","status":"affected"},{"type":"git","introduced":"0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb","fixed":"3355594de46fb1cba663f12b9644b664b8a609f4","status":"affected"},{"type":"git","introduced":"0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb","fixed":"e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4","status":"affected"},{"type":"git","version":"9e3b266afcfe4294e84496f50f006f029d3100db","status":"affected"},{"type":"semver","introduced":"6.10.7","fixed":"6.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.14","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.13.3","lastAffected":"6.13.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.14","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10.7","fixed":"6.11"},{"status":"affected","introduced":"6.11.1","fixed":"6.12.14"},{"status":"affected","introduced":"6.13","fixed":"6.13.3"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"},{"status":"affected","version":"6.11"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/3192f1c54dddb9b5820bf5e8677809949d8e9c66","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3355594de46fb1cba663f12b9644b664b8a609f4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-58008","url":"https://www.cve.org/CVERecord?id=CVE-2024-58008","licence":"CVE Terms of Use","modified":"2026-08-05T11:47:24.494Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-58008","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-58008","licence":"Public domain","modified":"2026-08-04T11:22:36.593Z"}],"updatedAt":"2026-11-25T22:58:52.102Z","epss":{"score":0.00131,"percentile":0.0294,"date":"2026-12-01T12:00:22.000Z"}}