# CVE-2026-142853: clk: tenstorrent: Assign .num before accessing .hws

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **Published:** 2026-12-03T03:20:59.123Z
- **Modified:** 2026-12-03T04:18:22.263Z

## Who should check

- Anyone running Linux \>= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, \< 46a0b522242d53852ec64b3c0875c9982bbf4fd0; \>= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, \< da9f1312b06e4c03d43d21494fb5beea7f9e096d
- Anyone running Linux 7.1

## Description

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\]

## Affected and fixed versions

- Linux: \>= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, \< 46a0b522242d53852ec64b3c0875c9982bbf4fd0; \>= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, \< da9f1312b06e4c03d43d21494fb5beea7f9e096d (cvelist)
- Linux: 7.1 (cvelist)

## Technologies

Linux kernel

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-142853. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-142853.md
Affected: Linux >= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, < 46a0b522242d53852ec64b3c0875c9982bbf4fd0; >= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, < da9f1312b06e4c03d43d21494fb5beea7f9e096d; Linux 7.1
Fixed in: Linux 46a0b522242d53852ec64b3c0875c9982bbf4fd0

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-142853 being exploited?

There is no confirmed exploitation: CVE-2026-142853 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-142853?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-142853?

Linux \>= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, \< 46a0b522242d53852ec64b3c0875c9982bbf4fd0; \>= 23c8ebc952849b3ba47d04d0ec95daf5cc136061, \< da9f1312b06e4c03d43d21494fb5beea7f9e096d; Linux 7.1.

### Is there a fix for CVE-2026-142853?

Yes. Fixed in Linux 46a0b522242d53852ec64b3c0875c9982bbf4fd0. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-142853?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/46a0b522242d53852ec64b3c0875c9982bbf4fd0>
- other: <https://git.kernel.org/stable/c/da9f1312b06e4c03d43d21494fb5beea7f9e096d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-142853>

HTML: <https://flawdb.com/CVE-2026-142853> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-142853>
