CVE-2024-50281
Description
From CVE.org
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.
Statement
A low impact race condition was found in the Linux kernel trusted keys DCP (Data Co-Processor) backend (security/keys/trusted-keys/trusted_dcp.c). When sealing or unsealing a trusted key blob, the code submitted an AEAD cipher request and returned without waiting for the operation to complete. Under system load, the seal or unseal call could return while the cipher operation was still in progress and the stack buffers it reads from or writes to had already been removed, leading to a NULL pointer dereference in the DCP driver during key blob creation. A local user able to perform trusted-key seal or unseal operations through the DCP backend could use this flaw to cause a denial of service; confidentiality and integrity are not affected. The vulnerable code was introduced in upstream Linux kernel 6.11. All currently maintained Red Hat Enterprise Linux 6, 7, 8, and 9 kernel and kernel-rt streams are recorded as not affected by this flaw; the affected Red Hat product scope is limited to the Fedora community kernel, where a fix is being pursued through the community (delegated) process. The upstream CVE record scores this issue 7.8 (AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H), while Red Hat assigns a lower severity (CVSS 3.1 score 5.5, AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, Low impact) because the premature return and resulting NULL pointer dereference affect availability only.
Mitigation
Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
The following CVSS metrics and score provided are preliminary and subject to review.
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.5 | 5.5 | 7.8 |
| Attack Vector | Local | Local | Local |
| Attack Complexity | Low | Low | Low |
| Privileges Required | Low | Low | Low |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | None | None | High |
| Integrity Impact | None | None | High |
| Availability Impact | High | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.