CVE-2024-50281 KEYS: trusted: dcp: fix NULL dereference in AEAD crypto operation
A race condition in the Linux kernel DCP driver causes a NULL pointer dereference during key sealing, leading to system crashes.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-50281?
CVE-2024-50281 is a high-severity vulnerability in Linux kernel, published on 19 Nov 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
KEYS: trusted: dcp: fix NULL dereference in AEAD crypto operation
When sealing or unsealing a key blob we currently do not wait for the AEAD cipher operation to finish and simply return after submitting the request. If there is some load on the system we can exit before the cipher operation is done and the buffer we read from/write to is already removed from the stack. This will e.g. result in NULL pointer dereference errors in the DCP driver during blob creation.
Fix this by waiting for the AEAD cipher operation to finish before resuming the seal and unseal calls.
Weakness: CWE-476
Which versions are affected by CVE-2024-50281?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-50281?
Apply the vendor's patch.
Is CVE-2024-50281 being exploited?
There is no known exploitation of CVE-2024-50281 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as BELL-CVE-2024-50281, DEBIAN-CVE-2024-50281, GHSA-p6w4-xmxx-7gmj, UBUNTU-CVE-2024-50281.