CVE-2024-58008

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

MEDIUM
5.5
CVSS Score
Published: February 27, 2025 at 02:12 AM UTC
Updated: August 5, 2026 at 12:44 PM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.1%

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v ≥ 6.10.76.10.7 ≤ v < 6.116.11 ≤ v < 6.12.146.11 ≤ v < 6.13.36.11 ≤ v < 6.146.11.1 ≤ v < 6.12.146.13 ≤ v < 6.13.30e28bf61a5f9ab30be3f3b4eafb8d097e39446bb6.10.76.116.11 rc46.11 rc56.11 rc66.11 rc79e3b266afcfe4294e84496f50f006f029d3100db
Vendor states this is fixed in 3192f1c54dddb9b5820bf5e8677809949d8e9c66 (fixed)
Vendor states this is fixed in 3355594de46fb1cba663f12b9644b664b8a609f4 (fixed)
Vendor states this is fixed in e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4 (fixed)
Vendor states this is fixed in 6.11 (unaffected)
Vendor states this is fixed in 6.12.14 (unaffected)
Vendor states this is fixed in 6.13.3 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)

References (3)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3192f1c54dddb9b5820bf5e8677809949d8e9c66
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3355594de46fb1cba663f12b9644b664b8a609f4
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e8d9fab39d1f87b52932646b2f1e7877aa3fc0f4

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
NVD-CWE-noinfo

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card