# CVE-2024-38561: kunit: Fix kthread reference

- Severity: High 7.0 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:H/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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-06-19T13:35:30.227Z
- Modified: 2026-06-17T07:40:33.323Z
- Weaknesses: CWE-416
- 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: Fix kthread reference

There is a race condition when a kthread finishes after the deadline and
before the call to kthread_stop(), which may lead to use after free.

(As written by CVE List.)

## Affected

- Linux Linux: from adf505457032c11b79b5a7c277c62ff5d61b17c2 before 1f2ebd3758e1cef6a1f998a1f7ea73310dcb1699; from adf505457032c11b79b5a7c277c62ff5d61b17c2 before 1ec7ccb4cd4b6f72c2998b07880fa7aaf8dfe1d4; from adf505457032c11b79b5a7c277c62ff5d61b17c2 before 8f5c841a559ccb700c8d27a3ca645b7a5f59b4f5; from adf505457032c11b79b5a7c277c62ff5d61b17c2 before b0b755cb5a5e0d7168c3ab1b3814b0d3cad9f017; from adf505457032c11b79b5a7c277c62ff5d61b17c2 before f8aa1b98ce40184521ed95ec26cc115a255183b2; 5.18 (not affected: before 5.18; from 6.1.93 up to 6.1.*; 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 5.18 before 6.1.93; 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/1f2ebd3758e1cef6a1f998a1f7ea73310dcb1699> (patch)
- <https://git.kernel.org/stable/c/1ec7ccb4cd4b6f72c2998b07880fa7aaf8dfe1d4> (patch)
- <https://git.kernel.org/stable/c/8f5c841a559ccb700c8d27a3ca645b7a5f59b4f5> (patch)
- <https://git.kernel.org/stable/c/b0b755cb5a5e0d7168c3ab1b3814b0d3cad9f017> (patch)
- <https://git.kernel.org/stable/c/f8aa1b98ce40184521ed95ec26cc115a255183b2> (patch)

## Sources

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

---

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