CVE-2026-45950 Details
Description
In the Linux kernel, the following vulnerability has been resolved: crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req() The starfive_aes_aead_do_one_req() function allocates rctx->adata with kzalloc() but fails to free it if sg_copy_to_buffer() or starfive_aes_hw_init() fails, which lead to memory leaks. Since rctx->adata is unconditionally freed after the write_adata operations, ensure consistent cleanup by freeing the allocation in these earlier error paths as well. Compile tested only. Issue found using a prototype static analysis tool and code review.
A memory leak vulnerability has been identified in the Linux kernel's StarFive crypto implementation, specifically within the AES AEAD request handling function. The issue arises because the function allocates memory for the 'adata' context using a zero-initialized allocation, but fails to release this memory if certain operations encounter errors. This oversight leads to memory leaks, as the allocated data is not freed under these error conditions. Although the vulnerability was discovered through static analysis and code review, it has only been compile-tested.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been addressed. The specific commit that fixes this issue is available in the Linux kernel stable tree.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
No SSVC data is available for this CVE.
References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/38d80307decc1132626a30e2a62af734630ecca5 | kernel.org | Patch |
| https://git.kernel.org/stable/c/4869d0e4e48a5301b267d359b2561c4080791a55 | kernel.org | Patch |
| https://git.kernel.org/stable/c/5f2c964a058581e1557c32d5de651c67a80438a7 | kernel.org | Patch |
| https://git.kernel.org/stable/c/ccb679fdae2e62ed92fd9acb25ed809c0226fcc6 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-401 | Missing Release of Memory after Effective Lifetime | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.10, < 6.12.75 >= 6.13, < 6.18.14 >= 6.19, < 6.19.4 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 16, 2026 | Initial Analysis | [email protected] |
| May 27, 2026 | New CVE Received | kernel.org |