CVE-2026-142853

Source
https://cve.org/CVERecord?id=CVE-2026-142853
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142853.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142853
Published
2026-12-03T03:20:59Z
Modified
2026-12-03T05:00:59Z
Summary
clk: tenstorrent: Assign .num before accessing .hws
Details

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

clk: tenstorrent: 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 atlantis_prcm_clocks_register() due to .num being assigned only after every clock has been stored in .hws[]. 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, and with CONFIG_UBSAN_TRAP the first store traps so the clock provider never registers.

Move the .num initialization to right after the allocation.

[fustini: drop num_clks, use data->num per Gustavo]

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142853.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
23c8ebc952849b3ba47d04d0ec95daf5cc136061
Fixed
46a0b522242d53852ec64b3c0875c9982bbf4fd0
Fixed
da9f1312b06e4c03d43d21494fb5beea7f9e096d

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142853.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
7.1.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142853.json"