CVE-2026-138980

Not scored yetLast modified Nov 30, 2026

Description

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

clk: mvebu: ap-cpu-clk: 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 (UBSAN_BOUNDS) 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 ap_cpu_clock_probe(), which reads .hws[] to skip clusters that have already been set up and writes it inside the CPU node loop, but only assigns .num after the loop. With CONFIG_UBSAN_BOUNDS and a compiler that implements __counted_by (GCC 15.1+ or Clang 20.1+), this triggers an array-index-out-of-bounds report during probe of the AP806 and AP807 CPU clocks, and with CONFIG_UBSAN_TRAP the first access traps.

Initialize .num with nclusters, the number of elements .hws[] was allocated with, right after the allocation. For the in-tree AP806 and AP807 device trees, which list the CPU nodes in ascending order, this is exactly the value the old assignment produced. It is also the correct value for any other node order, since of_clk_hw_onecell_get() rejects indices at or beyond .num.

Metrics

No CVSS score has been published yet.

Affected software

Source: the vendor's advisory (CNA). NVD analysis pending.

No affected versions have been published.

Timeline

Published
Nov 30, 2026
Last modified
Nov 30, 2026
NVD status
Received

Related CVEs from 2026

CVE-2026-138981In the Linux kernel, the following vulnerability has been resolved: ASoC: rt712-sdca-dmic: fix drvdata type in the gain controls rt712_sdcCVE-2026-138982In the Linux kernel, the following vulnerability has been resolved: ASoC: Intel: atom: Fix platform device leak on probe failure sst_acpi_CVE-2026-138983In the Linux kernel, the following vulnerability has been resolved: nilfs2: fix deadlock between nilfs_evict_inode() and find_inode() SyzbCVE-2026-138984In the Linux kernel, the following vulnerability has been resolved: mfd: da903x: Cancel IRQ work during teardown The IRQ handler disables CVE-2026-138985In the Linux kernel, the following vulnerability has been resolved: ASoC: fsl_xcvr: free IRQ before canceling reset work irq0_isr() scheduCVE-2026-138986In the Linux kernel, the following vulnerability has been resolved: media: atmel-isi: release unregistered video device on remove atmel_isCVE-2026-138987In the Linux kernel, the following vulnerability has been resolved: media: go7007: unregister the I2C adapter on USB probe failure USB proCVE-2026-138988In the Linux kernel, the following vulnerability has been resolved: media: marvell: manage the MMP camera clock provider mmpcam_probe() reCVE-2026-138989In the Linux kernel, the following vulnerability has been resolved: media: v4l2-ctrls: do nothing if controls[0] == NULL in cluster functioCVE-2026-138998.8Use after free in HTML in Google Chrome prior to 150.0.7871.47 allowed a remote attacker to execute arbitrary code inside a sandbox via a crCVE-2026-138990In the Linux kernel, the following vulnerability has been resolved: crypto: qat - zero the VF migration state buffer on save The QAT VF miCVE-2026-1389917.1In the Linux kernel, the following vulnerability has been resolved: md: validate bblog_size when loading v1.x badblocks metadata In super_
CVE-2026-138980: Unscored | Vulnix