# CVE-2024-56676: thermal: testing: Initialize some variables annoteded with _free()

- 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.23%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-12-28T09:46:05.536Z
- Modified: 2026-06-17T08:12:43.390Z
- Weaknesses: CWE-909
- Assigned by: Linux

## Description

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

thermal: testing: Initialize some variables annoteded with _free()

Variables annotated with __free() need to be initialized if the function
can return before they get updated for the first time or the attempt to
free the memory pointed to by them upon function return may crash the
kernel.

Fix this issue in some places in the thermal testing code.

(As written by CVE List.)

## Affected

- Linux Linux: from f6a034f2df426e279f1ecad53626bab80c04796a before 526c132124a62be486bad1701f7e8e92212ccec6; from f6a034f2df426e279f1ecad53626bab80c04796a before 0104dcdaad3a7afd141e79a5fb817a92ada910ac; 6.12 (not affected: before 6.12; from 6.12.2 up to 6.12.*; from 6.13 up to *)
- linux linux_kernel: from 6.12 before 6.12.2

## References

- <https://git.kernel.org/stable/c/526c132124a62be486bad1701f7e8e92212ccec6> (patch)
- <https://git.kernel.org/stable/c/0104dcdaad3a7afd141e79a5fb817a92ada910ac> (patch)

## Sources

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

---

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