We use these services and cookies to improve your user experience. You may opt out if you wish, however, this may limit some features on this site.

Please see our statement on Data Privacy.

Crisp.chat (Helpdesk and Chat)

Ok

THREATINT
PUBLISHED

CVE-2024-45004

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



AssignerLinux
Reserved2024-08-21
Published2024-09-04
Updated2024-09-15

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.

Product status

Default status
0x4002bcf800

2e8a0f40a39c before 9e3b266afcfe
affected

2e8a0f40a39c before 0e28bf61a5f9
affected

Default status
0x4002bcf890

6.10
affected

Any version before 6.10
unaffected

6.10.7
unaffected

6.11
unaffected

References

https://git.kernel.org/stable/c/9e3b266afcfe4294e84496f50f006f029d3100db

https://git.kernel.org/stable/c/0e28bf61a5f9ab30be3f3b4eafb8d097e39446bb

cve.org CVE-2024-45004

nvd.nist.gov CVE-2024-45004

Download JSON

Share this page
https://cve.threatint.com/CVE/CVE-2024-45004
Subscribe to our newsletter to learn more about our work.