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

Published Dec 3, 2026
·
Updated

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->clkdata is allocated with structsize() using ARRAYSIZE(outputdividers) 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, ARRAYSIZE(outputdividers)), writing 8 elements in total. The final write to hws[7] is past the end of the allocation.

clkdata->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 msc313mpllprobe() error: buffer overflow 'mpll->clkdata->hws' 7 <= 7

Affected Software

7 affected componentsFixes available
Linux Linux kernel
linux/kernel>=5.12.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 5.15.226
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.1.193
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.6.163
  4. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.117
  5. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.63
  6. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.4
  7. Compensating control

    In Linux driver drivers/clk/mstar/clk-msc313-mpll.c, use NUMOUTPUTS as the hws array allocation element count so it can hold all 8 clocks, including hws[7].

Event History

Dec 3, 2026
CVE Published
via MITRE·03:21 AM
Data Sourced
via MITRE·03:21 AM
Description
Data Sourced
via OSV·03:21 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

Which systems are exposed to this issue?

The issue is in the Linux kernel's MStar MSC313 MPLL clock driver. It affects kernels that include and use this driver; the provided data does not identify affected kernel versions or default configuration status.

2

How can I determine whether my kernel contains the vulnerable code?

Inspect drivers/clk/mstar/clk-msc313-mpll.c. The vulnerable code allocates the hws array using ARRAY_SIZE(output_dividers), while registering NUMOUTPUTS clocks and writing through hws[7]; the corrected code allocates the array using NUMOUTPUTS.

3

What remediation is available?

Apply the upstream stable fix referenced by the provided kernel commits. The fix changes the clock-array allocation count to NUMOUTPUTS so it matches the eight clock entries stored and exposed to the clock framework.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203