# CVE-2024-38617: kunit/fortify: Fix mismatched kvalloc()/vfree() usage

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/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.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2024-06-19T13:56:16.763Z
- Modified: 2026-06-17T07:40:43.757Z
- Weaknesses: CWE-763
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

kunit/fortify: Fix mismatched kvalloc()/vfree() usage

The kv*() family of tests were accidentally freeing with vfree() instead
of kvfree(). Use kvfree() instead.

(As written by CVE List.)

## Affected

- Linux Linux: from 9124a26401483bf2b13a99cb4317dce3f677060f before 7880dbf4eafe22a6a41a42e774f1122c814ed02d; from 9124a26401483bf2b13a99cb4317dce3f677060f before 42d21c9727028fe7ee392223ba127484b1b8677e; from 9124a26401483bf2b13a99cb4317dce3f677060f before 03758d5a0932016b6d5f5bfbca580177e6bc937a; from 9124a26401483bf2b13a99cb4317dce3f677060f before 998b18072ceb0613629c256b409f4d299829c7ec; 6.2 (not affected: before 6.2; from 6.6.33 up to 6.6.*; from 6.8.12 up to 6.8.*; from 6.9.3 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 6.2 before 6.6.33; from 6.7 before 6.8.12; from 6.9 before 6.9.3

## References

- <https://git.kernel.org/stable/c/7880dbf4eafe22a6a41a42e774f1122c814ed02d> (patch)
- <https://git.kernel.org/stable/c/42d21c9727028fe7ee392223ba127484b1b8677e> (patch)
- <https://git.kernel.org/stable/c/03758d5a0932016b6d5f5bfbca580177e6bc937a> (patch)
- <https://git.kernel.org/stable/c/998b18072ceb0613629c256b409f4d299829c7ec> (patch)

## Sources

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

---

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