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

Summary

CVECVE-2026-142860
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-12-03 04:18:23 UTC
Updated2026-12-03 04:18:23 UTC
DescriptionIn 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

Risk And Classification

EPSS: 0.003920000 probability, percentile 0.355390000 (date 2026-12-03)

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 c5ebe5560bf45a47021c5bf90d366747e69eeaf3 git Not specified
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 b47c94d4e530c001efdc18070d4d8106e5752b90 git Not specified
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e git Not specified
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 4352760accafc4767928e7292b1c90e0a0aedecb git Not specified
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8 git Not specified
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 698119b61439da00f6148b43fb96e76d6492ddd0 git Not specified
CNA Linux Linux affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 712b75152c00a8ab0c56dbfe34caf88e3870ddde git Not specified
CNA Linux Linux affected 5.12 Not specified
CNA Linux Linux unaffected 5.12 semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.117 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.63 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.4 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/c5ebe5560bf45a47021c5bf90d366747e69eeaf3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/712b75152c00a8ab0c56dbfe34caf88e3870ddde 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/b47c94d4e530c001efdc18070d4d8106e5752b90 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/698119b61439da00f6148b43fb96e76d6492ddd0 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/4352760accafc4767928e7292b1c90e0a0aedecb 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report