# CVE-2024-50012: cpufreq: Avoid a bad reference count on CPU node

- 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-10-21T18:54:04.377Z
- Modified: 2026-06-17T08:03:22.943Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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

cpufreq: Avoid a bad reference count on CPU node

In the parse_perf_domain function, if the call to
of_parse_phandle_with_args returns an error, then the reference to the
CPU device node that was acquired at the start of the function would not
be properly decremented.

Address this by declaring the variable with the __free(device_node)
cleanup attribute.

(As written by CVE List.)

## Affected

- Linux Linux: from 8486a32dd484a7d7ec25295c7439094608f54915 before 2b846344b15f933a56903b7cdba9080f06c725ff; from 8486a32dd484a7d7ec25295c7439094608f54915 before 6c3d8387839252f1a0fc6367f314446e4a2ebd0b; from 8486a32dd484a7d7ec25295c7439094608f54915 before 0f41f383b5a61a2bf6429a449ebba7fb08179d81; from 8486a32dd484a7d7ec25295c7439094608f54915 before 77f88b17387a017416babf1e6488fa17682287e2; from 8486a32dd484a7d7ec25295c7439094608f54915 before 47cb1d9278f179df8250304ec41009e3e836a926; from 8486a32dd484a7d7ec25295c7439094608f54915 before c0f02536fffbbec71aced36d52a765f8c4493dc2; 5.15 (not affected: before 5.15; from 5.15.209 up to 5.15.*; from 6.1.116 up to 6.1.*; from 6.6.55 up to 6.6.*; from 6.10.14 up to 6.10.*; from 6.11.3 up to 6.11.*; from 6.12 up to *)
- linux linux_kernel: before 6.6.55; from 6.7 before 6.10.14; from 6.11 before 6.11.3

## References

- <https://git.kernel.org/stable/c/2b846344b15f933a56903b7cdba9080f06c725ff>
- <https://git.kernel.org/stable/c/6c3d8387839252f1a0fc6367f314446e4a2ebd0b>
- <https://git.kernel.org/stable/c/0f41f383b5a61a2bf6429a449ebba7fb08179d81> (patch)
- <https://git.kernel.org/stable/c/77f88b17387a017416babf1e6488fa17682287e2> (patch)
- <https://git.kernel.org/stable/c/47cb1d9278f179df8250304ec41009e3e836a926> (patch)
- <https://git.kernel.org/stable/c/c0f02536fffbbec71aced36d52a765f8c4493dc2> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

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

---

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