In 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.
| Product | Vendor Advisory | Solution File | Added | Published |
|---|---|---|---|---|
| Debian | — | Upgrade linux | Jul 27, 2026 | Jul 27, 2026 |
| Suse | — | Upgrade kernel-default-develUpgrade kernel-zfcpdumpUpgrade kernel-obs-buildUpgrade kernel-docsUpgrade kernel-sourceUpgrade kernel-macrosUpgrade kernel-64kbUpgrade kernel-64kb-develUpgrade kernel-develUpgrade reiserfs-kmp-defaultUpgrade kernel-defaultUpgrade kernel-syms | Dec 5, 2025 | Dec 5, 2025 |
| Ubuntu | — | Upgrade linux-image-6.8.0-45-genericUpgrade linux-image-azureUpgrade linux-image-oem-22.04cUpgrade linux-image-6.8.0-45-generic-64kUpgrade linux-image-6.8.0-44-genericUpgrade linux-image-6.8.0-1013-nvidiaUpgrade linux-image-6.8.0-1015-awsUpgrade linux-image-nvidiaUpgrade linux-image-virtual-hwe-22.04Upgrade linux-image-6.8.0-1012-ibmUpgrade linux-image-6.8.0-1014-gcpUpgrade linux-image-kvmUpgrade linux-image-6.8.0-1012-oracleUpgrade linux-image-6.8.0-1014-azure-fdeUpgrade linux-image-generic-hwe-24.04Upgrade linux-image-6.8.0-1013-nvidia-64kUpgrade linux-image-6.8.0-1012-oemUpgrade linux-image-ibm-lts-24.04Upgrade linux-image-ibmUpgrade linux-image-oem-22.04aUpgrade linux-image-generic-hwe-22.04Upgrade linux-image-raspiUpgrade linux-image-oem-22.04dUpgrade linux-image-nvidia-6.8Upgrade linux-image-azure-fdeUpgrade linux-image-nvidia-lowlatencyUpgrade linux-image-6.8.0-1013-nvidia-lowlatencyUpgrade linux-image-6.8.0-44-generic-64kUpgrade linux-image-generic-64kUpgrade linux-image-genericUpgrade linux-image-nvidia-64kUpgrade linux-image-gcpUpgrade linux-image-lowlatency-hwe-22.04Upgrade linux-image-gkeUpgrade linux-image-awsUpgrade linux-image-6.8.0-44-lowlatencyUpgrade linux-image-oracle-64kUpgrade linux-image-lowlatency-64k-hwe-22.04Upgrade linux-image-generic-lpaeUpgrade linux-image-6.8.0-44-lowlatency-64kUpgrade linux-image-ibm-classicUpgrade linux-image-virtualUpgrade linux-image-nvidia-64k-6.8Upgrade linux-image-6.8.0-1011-raspiUpgrade linux-image-6.8.0-1013-nvidia-lowlatency-64kUpgrade linux-image-oem-22.04Upgrade linux-image-6.8.0-1012-oracle-64kUpgrade linux-image-6.8.0-1014-azureUpgrade linux-image-6.8.0-1010-gkeUpgrade linux-image-virtual-hwe-24.04Upgrade linux-image-lowlatency-64kUpgrade linux-image-generic-64k-hwe-24.04Upgrade linux-image-lowlatencyUpgrade linux-image-nvidia-lowlatency-64kUpgrade linux-image-oracleUpgrade linux-image-generic-64k-hwe-22.04Upgrade linux-image-oem-22.04b | Sep 12, 2024 | Jun 25, 2024 |
With curated Threat Intelligence, you can see which vulnerabilities truly put you at risk, prioritize what matters most, and act before attackers do.
Explore Intelligence Hub