# CVE-2024-39478: crypto: starfive - Do not free stack buffer

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-01)
- Published: 2024-07-05T06:55:07.936Z
- Modified: 2026-09-02T13:16:47.893Z
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

crypto: starfive - Do not free stack buffer

RSA text data uses variable length buffer allocated in software stack.
Calling kfree on it causes undefined behaviour in subsequent operations.

(As written by CVE List.)

## Affected

- Linux Linux: from 445a4aaf5842073e4130b1d6dbe3785284d9615f before bfd861dadd3a45de257b3d328bf49b64a6f9c5f1; from 445a4aaf5842073e4130b1d6dbe3785284d9615f before 5944de192663f272033501dcd322b008fca72006; from 445a4aaf5842073e4130b1d6dbe3785284d9615f before d7f01649f4eaf1878472d3d3f480ae1e50d98f6c; 6.5 (not affected: before 6.5; from 6.6.156 up to 6.6.*; from 6.9.5 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.9 before 6.9.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/bfd861dadd3a45de257b3d328bf49b64a6f9c5f1>
- <https://git.kernel.org/stable/c/5944de192663f272033501dcd322b008fca72006> (mailing-list, patch)
- <https://git.kernel.org/stable/c/d7f01649f4eaf1878472d3d3f480ae1e50d98f6c> (mailing-list, patch)

## Sources

- CVE List: [CVE-2024-39478](https://www.cve.org/CVERecord?id=CVE-2024-39478), CVE Terms of Use, modified 2026-09-02
- NVD: [CVE-2024-39478](https://nvd.nist.gov/vuln/detail/CVE-2024-39478), Public domain, modified 2026-09-02

---

Page: https://cve.day/CVE-2024-39478 · Whole record: https://cve.day/CVE-2024-39478.json · Rebuilt by cve.day 2026-11-25T22:58:42.518Z
