CVE-2024-39461
MediumIn the Linux kernel, the following vulnerability has been resolved: clk: bcm: rpi: Assign ->num before accessing ->hws Commit f316cdff8d67 ("clk: Annotate struct clk_hw_onecell_data with __counted_by") annotated the hws member of 'struct clk_hw_onecell_data' with __counted_by, which informs the bounds sanitizer about the number of elements in hws, so that it can warn when hws is accessed out of bounds. As noted in that change, the __counted_by member must be initialized with the number of elements before the first array access happens, otherwise there will be a warning from each access prior to the initialization because the number of elements is zero. This occurs in raspberrypi_discover_clocks() due to ->num being assigned after ->hws has been accessed: UBSAN: array-index-out-of-bounds in drivers/clk/bcm/clk-raspberrypi.c:374:4 index 3 is out of range for type 'struct clk_hw *[] __counted_by(num)' (aka 'struct clk_hw *[]') Move the ->num initialization to before the first access of ->hws, which clears up the warning.
CVSS 3.1 score
5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness type
CWE-129CVE-2024-39461 is classified as CWE-129
See CWE-129 on MITRE CWE for full details on this weakness type.
References
The following references provide additional information about CVE-2024-39461 including vendor advisories, patch commits, exploit details, and third-party analysis. Links are sourced from the NIST NVD database.
-
PatchKernel patch commithttps://git.kernel.org/stable/c/6dc445c1905096b2ed4db1a84570375b4e00cc0f
-
PatchKernel patch commithttps://git.kernel.org/stable/c/9562dbe5cdbb16ac887d27ef6f179980bb99193c
-
PatchKernel patch commithttps://git.kernel.org/stable/c/cdf9c7871d58d3df59d2775982e3533adb8ec920
Frequently asked questions
-
What is CVE-2024-39461?
CVE-2024-39461 is a Medium severity Linux kernel vulnerability with a CVSS score of 5.5 out of 10 . CVE-2024-39461 has not been confirmed as actively exploited and is not listed in the CISA KEV catalog.
-
What is the CVSS score for CVE-2024-39461?
CVE-2024-39461 has a CVSS score of 5.5 out of 10, rated Medium severity (CVSS 3.1). The vector string is
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H. -
Is there a patch available for CVE-2024-39461?
No patch is currently available for CVE-2024-39461. Monitor the NIST NVD and your Linux distribution's security advisories for updates.
-
Is CVE-2024-39461 actively exploited?
No — CVE-2024-39461 has not been confirmed as actively exploited. It is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog.