CVE-2024-58008

KEYS: trusted: dcp: fix improper sg use with CONFIG_VMAP_STACK=y

State
Published
Severity
7.8 High
Published
Feb 27, 2025
Updated
Aug 5, 2026
Reserved
Feb 27, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.8 HighCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HLinux

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb to before 3192f1c54dddb9b5820bf5e8677809949d8e9c66Affected
  • 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb to before 3355594de46fb1cba663f12b9644b664b8a609f4Affected
  • 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb to before e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4Affected
  • 9e3b266afcfe4294e84496f50f006f029d3100dbAffected
  • 6.10.7 to before 6.11Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.14 through 6.12.*Not affected
  • 6.13.3 through 6.13.*Not affected
  • 6.14 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.