CVE-2024-39462

clk: bcm: dvp: Assign ->num before accessing ->hws

Critical · published June 25, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
55.1
In the wild
Unconfirmed
What it is

🔥 Oops! A simple oversight in the Linux kernel has left the door wide open for array-access chaos! Think of it like a busy restaurant where the chef decides to start cooking without checking the number of orders first. If they serve a dish with missing ingredients, it could lead to culinary disasters! 🍽️ In this case, if the `->num` isn't set before accessing `->hws`, the system could access out-of-bounds memory, leading to unpredictable behavior, crashes, or data corruption—absolutely devastating for users relying on system stability! ⚡ This kind of mistake could cause a ripple effect, disrupting operations.

Put simply

Think of it like a busy restaurant where the chef decides to start cooking without checking the number of orders first. If they serve a dish with missing ingredients, it could lead to culinary disasters! 🍽️ This vulnerability stems from the kernel's failure to initialize the `->num` member of `struct clk_hw_onecell_data` before accessing `->hws`, leading to potential out-of-bounds memory access warnings issued by the bounds sanitizer.

What to do

In this case, if the `->num` isn't set before accessing `->hws`, the system could access out-of-bounds memory, leading to unpredictable behavior, crashes, or data corruption—absolutely devastating for users relying on system stability! ⚡ This kind of mistake could cause a ripple effect, disrupting operations. To resolve this, developers should patch their kernel with the fix from commit f316cdff8d67, ensuring that `->num` is assigned its value prior to any access to `->hws`. Running a thorough check of all dependent components after applying the update is also recommended. You've got this! With these changes, you can ensure your systems run safely and smoothly. 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00768 · 55.1th percentile
Published
2024-06-25T14:25Z
EPSS history
Timeline
  • 25 JUN 14:25Z
    clk: bcm: dvp: Assign ->num before accessing ->hws
    cvelistv5