CVE-2024-50012
JSON

5.5medium

cpufreq: Avoid a bad reference count on CPU node

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.23% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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.*
CVE List
linux linux_kernelbefore 6.6.55, from 6.7 before 6.10.14, from 6.11 before 6.11.3NVD

Classification

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: cpufreq: evitar un recuento de referencia incorrecto en el nodo de CPU En la función parse_perf_domain, si la llamada a of_parse_phandle_with_args devuelve un error, la referencia al nodo de dispositivo de CPU que se adquirió al inicio de la función no se decrementaría correctamente. Aborde esto declarando la variable con el atributo de limpieza __free(device_node).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-50012 changed 2026-06-01CVE Terms of Use
NVDCVE-2024-50012 changed 2026-06-17Public domain