CVE-2026-45950

crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()

published May 27, 2026

CVSS
—
EPSS
0%
Percentile
5.0
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00162 · 5.0th percentile
Published
2026-05-27T12:18Z
EPSS history
Timeline
  • 27 MAY 12:18Z
    crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()
    cvelistv5