# CVE-2024-45004: KEYS: trusted: dcp: fix leak of blob encryption key

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- 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.10%, higher than 0% of CVEs (2026-12-01)
- Published: 2024-09-04T19:54:46.952Z
- Modified: 2026-06-17T07:53:24.093Z
- Weaknesses: CWE-312
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

KEYS: trusted: dcp: fix leak of blob encryption key

Trusted keys unseal the key blob on load, but keep the sealed payload in
the blob field so that every subsequent read (export) will simply
convert this field to hex and send it to userspace.

With DCP-based trusted keys, we decrypt the blob encryption key (BEK)
in the Kernel due hardware limitations and then decrypt the blob payload.
BEK decryption is done in-place which means that the trusted key blob
field is modified and it consequently holds the BEK in plain text.
Every subsequent read of that key thus send the plain text BEK instead
of the encrypted BEK to userspace.

This issue only occurs when importing a trusted DCP-based key and
then exporting it again. This should rarely happen as the common use cases
are to either create a new trusted key and export it, or import a key
blob and then just use it without exporting it again.

Fix this by performing BEK decryption and encryption in a dedicated
buffer. Further always wipe the plain text BEK buffer to prevent leaking
the key via uninitialized memory.

(As written by CVE List.)

## Affected

- Linux Linux: from 2e8a0f40a39cc253002f21c54e1b5b995e5ec510 before 9e3b266afcfe4294e84496f50f006f029d3100db; from 2e8a0f40a39cc253002f21c54e1b5b995e5ec510 before 0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb; 6.10 (not affected: before 6.10; from 6.10.7 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 6.10 before 6.10.7; 6.11

## References

- <https://git.kernel.org/stable/c/9e3b266afcfe4294e84496f50f006f029d3100db> (patch)
- <https://git.kernel.org/stable/c/0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb> (patch)

## Sources

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

---

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