# CVE-2026-142860: clk: mstar: msc313-mpll: fix off-by-one in clock array allocation

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

## Who should check

- Anyone running Linux \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< c5ebe5560bf45a47021c5bf90d366747e69eeaf3; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< b47c94d4e530c001efdc18070d4d8106e5752b90; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 4352760accafc4767928e7292b1c90e0a0aedecb; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 698119b61439da00f6148b43fb96e76d6492ddd0; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 712b75152c00a8ab0c56dbfe34caf88e3870ddde
- Anyone running Linux 5.12

## Description

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

clk: mstar: msc313-mpll: fix off-by-one in clock array allocation

The hws array of mpll-\>clk\_data is allocated with struct\_size() using
ARRAY\_SIZE(output\_dividers) as the element count, giving it 7 elements.
But the probe function stores the MPLL clock at hws\[0\] and one
fixed-factor clock for each output divider at hws\[i + 1\] for i in
\[0, ARRAY\_SIZE(output\_dividers)), writing 8 elements in total.  The
final write to hws\[7\] is past the end of the allocation.

clk\_data-\>num is also set to NUMOUTPUTS (8), so the clock framework
reads hws\[0..7\], again accessing hws\[7\] out of bounds.

Use NUMOUTPUTS as the element count so the allocation matches the
number of clocks actually stored and exposed.

Found by smatch:
  drivers/clk/mstar/clk-msc313-mpll.c:134 msc313\_mpll\_probe()
  error: buffer overflow 'mpll-\>clk\_data-\>hws' 7 \<= 7

## Affected and fixed versions

- Linux: \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< c5ebe5560bf45a47021c5bf90d366747e69eeaf3; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< b47c94d4e530c001efdc18070d4d8106e5752b90; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 4352760accafc4767928e7292b1c90e0a0aedecb; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 698119b61439da00f6148b43fb96e76d6492ddd0; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 712b75152c00a8ab0c56dbfe34caf88e3870ddde (cvelist)
- Linux: 5.12 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 712b75152c00a8ab0c56dbfe34caf88e3870ddde or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-142860.md
Affected: Linux >= bef7a78da71687838a6bb5b316c4f5dfd31582f5, < c5ebe5560bf45a47021c5bf90d366747e69eeaf3; >= bef7a78da71687838a6bb5b316c4f5dfd31582f5, < b47c94d4e530c001efdc18070d4d8106e5752b90; >= bef7a78da71687838a6bb5b316c4f5dfd31582f5, < f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e; >= bef7a78da71687838a6bb5b…
Fixed in: Linux 4352760accafc4767928e7292b1c90e0a0aedecb, Linux 698119b61439da00f6148b43fb96e76d6492ddd0, Linux 712b75152c00a8ab0c56dbfe34caf88e3870ddde

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-142860 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< c5ebe5560bf45a47021c5bf90d366747e69eeaf3; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< b47c94d4e530c001efdc18070d4d8106e5752b90; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 4352760accafc4767928e7292b1c90e0a0aedecb; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 698119b61439da00f6148b43fb96e76d6492ddd0; \>= bef7a78da71687838a6bb5b316c4f5dfd31582f5, \< 712b75152c00a8ab0c56dbfe34caf88e3870ddde; Linux 5.12.

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

Yes. Fixed in Linux 4352760accafc4767928e7292b1c90e0a0aedecb, Linux 698119b61439da00f6148b43fb96e76d6492ddd0, Linux 712b75152c00a8ab0c56dbfe34caf88e3870ddde. Upgrade Linux to 712b75152c00a8ab0c56dbfe34caf88e3870ddde or later.

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

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/c5ebe5560bf45a47021c5bf90d366747e69eeaf3>
- other: <https://git.kernel.org/stable/c/b47c94d4e530c001efdc18070d4d8106e5752b90>
- other: <https://git.kernel.org/stable/c/f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e>
- other: <https://git.kernel.org/stable/c/4352760accafc4767928e7292b1c90e0a0aedecb>
- other: <https://git.kernel.org/stable/c/cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8>
- other: <https://git.kernel.org/stable/c/698119b61439da00f6148b43fb96e76d6492ddd0>
- other: <https://git.kernel.org/stable/c/712b75152c00a8ab0c56dbfe34caf88e3870ddde>

## 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-142860>

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