Skip to content
CVE PROGRAM SOURCE RECORDUnscored

CVE-2026-45950

crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()

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.

Affected products

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Linux Linux

Default version status: unaffected

  • 7467147ef9bf42d1ea5b3314c7a05cd542b3518e to < 38d80307decc1132626a30e2a62af734630ecca5affected
  • 7467147ef9bf42d1ea5b3314c7a05cd542b3518e to < 4869d0e4e48a5301b267d359b2561c4080791a55affected
  • 7467147ef9bf42d1ea5b3314c7a05cd542b3518e to < 5f2c964a058581e1557c32d5de651c67a80438a7affected
  • 7467147ef9bf42d1ea5b3314c7a05cd542b3518e to < ccb679fdae2e62ed92fd9acb25ed809c0226fcc6affected

Linux Linux

Default version status: affected

  • 6.10affected
  • 0 to < 6.10unaffected
  • 6.12.75 to ≤ 6.12.*unaffected
  • 6.18.14 to ≤ 6.18.*unaffected
  • 6.19.4 to ≤ 6.19.*unaffected
  • 7.0 to ≤ *unaffected

References