{"id":"CVE-2026-45950","aliases":["CVE-2026-45950"],"related":[],"kind":"vulnerability","state":"published","title":"crypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()\n\nThe starfive_aes_aead_do_one_req() function allocates rctx->adata with\nkzalloc() but fails to free it if sg_copy_to_buffer() or\nstarfive_aes_hw_init() fails, which lead to memory leaks.\n\nSince rctx->adata is unconditionally freed after the write_adata\noperations, ensure consistent cleanup by freeing the allocation in these\nearlier error paths as well.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: starfive - Fix memory leak in starfive_aes_aead_do_one_req()\n\nThe starfive_aes_aead_do_one_req() function allocates rctx->adata with\nkzalloc() but fails to free it if sg_copy_to_buffer() or\nstarfive_aes_hw_init() fails, which lead to memory leaks.\n\nSince rctx->adata is unconditionally freed after the write_adata\noperations, ensure consistent cleanup by freeing the allocation in these\nearlier error paths as well.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","source":"cvelist"}],"published":"2026-05-27T12:18:06.482Z","modified":"2026-06-17T10:52:46.937Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"7467147ef9bf42d1ea5b3314c7a05cd542b3518e","fixed":"38d80307decc1132626a30e2a62af734630ecca5","status":"affected"},{"type":"git","introduced":"7467147ef9bf42d1ea5b3314c7a05cd542b3518e","fixed":"4869d0e4e48a5301b267d359b2561c4080791a55","status":"affected"},{"type":"git","introduced":"7467147ef9bf42d1ea5b3314c7a05cd542b3518e","fixed":"5f2c964a058581e1557c32d5de651c67a80438a7","status":"affected"},{"type":"git","introduced":"7467147ef9bf42d1ea5b3314c7a05cd542b3518e","fixed":"ccb679fdae2e62ed92fd9acb25ed809c0226fcc6","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.10","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.14","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.4","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.10","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.14"},{"status":"affected","introduced":"6.19","fixed":"6.19.4"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/38d80307decc1132626a30e2a62af734630ecca5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/4869d0e4e48a5301b267d359b2561c4080791a55","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5f2c964a058581e1557c32d5de651c67a80438a7","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ccb679fdae2e62ed92fd9acb25ed809c0226fcc6","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-45950","url":"https://www.cve.org/CVERecord?id=CVE-2026-45950","licence":"CVE Terms of Use","modified":"2026-05-27T12:18:06.482Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-45950","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-45950","licence":"Public domain","modified":"2026-06-17T10:52:46.937Z"}],"updatedAt":"2026-11-25T22:59:22.518Z","epss":{"score":0.00122,"percentile":0.02165,"date":"2026-12-01T12:00:22.000Z"}}