{"api_version":"1","generated_at":"2026-12-04T12:29:43+00:00","cve":"CVE-2026-142860","urls":{"html":"https://cve.report/CVE-2026-142860","api":"https://cve.report/api/cve/CVE-2026-142860.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142860","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142860"},"summary":{"title":"clk: mstar: msc313-mpll: fix off-by-one in clock array allocation","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: mstar: msc313-mpll: fix off-by-one in clock array allocation\n\nThe hws array of mpll->clk_data is allocated with struct_size() using\nARRAY_SIZE(output_dividers) as the element count, giving it 7 elements.\nBut the probe function stores the MPLL clock at hws[0] and one\nfixed-factor clock for each output divider at hws[i + 1] for i in\n[0, ARRAY_SIZE(output_dividers)), writing 8 elements in total.  The\nfinal write to hws[7] is past the end of the allocation.\n\nclk_data->num is also set to NUMOUTPUTS (8), so the clock framework\nreads hws[0..7], again accessing hws[7] out of bounds.\n\nUse NUMOUTPUTS as the element count so the allocation matches the\nnumber of clocks actually stored and exposed.\n\nFound by smatch:\n  drivers/clk/mstar/clk-msc313-mpll.c:134 msc313_mpll_probe()\n  error: buffer overflow 'mpll->clk_data->hws' 7 <= 7","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:23","updated_at":"2026-12-03 04:18:23"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c5ebe5560bf45a47021c5bf90d366747e69eeaf3","name":"https://git.kernel.org/stable/c/c5ebe5560bf45a47021c5bf90d366747e69eeaf3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/712b75152c00a8ab0c56dbfe34caf88e3870ddde","name":"https://git.kernel.org/stable/c/712b75152c00a8ab0c56dbfe34caf88e3870ddde","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e","name":"https://git.kernel.org/stable/c/f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b47c94d4e530c001efdc18070d4d8106e5752b90","name":"https://git.kernel.org/stable/c/b47c94d4e530c001efdc18070d4d8106e5752b90","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8","name":"https://git.kernel.org/stable/c/cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/698119b61439da00f6148b43fb96e76d6492ddd0","name":"https://git.kernel.org/stable/c/698119b61439da00f6148b43fb96e76d6492ddd0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/4352760accafc4767928e7292b1c90e0a0aedecb","name":"https://git.kernel.org/stable/c/4352760accafc4767928e7292b1c90e0a0aedecb","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142860","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142860","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 c5ebe5560bf45a47021c5bf90d366747e69eeaf3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 b47c94d4e530c001efdc18070d4d8106e5752b90 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 4352760accafc4767928e7292b1c90e0a0aedecb git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 698119b61439da00f6148b43fb96e76d6492ddd0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bef7a78da71687838a6bb5b316c4f5dfd31582f5 712b75152c00a8ab0c56dbfe34caf88e3870ddde git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.117 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.63 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":{"cve_year":"2026","cve_id":"142860","cve":"CVE-2026-142860","epss":"0.003920000","percentile":"0.355390000","score_date":"2026-12-03","updated_at":"2026-12-04 00:14:18"},"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/clk/mstar/clk-msc313-mpll.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c5ebe5560bf45a47021c5bf90d366747e69eeaf3","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"},{"lessThan":"b47c94d4e530c001efdc18070d4d8106e5752b90","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"},{"lessThan":"f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"},{"lessThan":"4352760accafc4767928e7292b1c90e0a0aedecb","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"},{"lessThan":"cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"},{"lessThan":"698119b61439da00f6148b43fb96e76d6492ddd0","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"},{"lessThan":"712b75152c00a8ab0c56dbfe34caf88e3870ddde","status":"affected","version":"bef7a78da71687838a6bb5b316c4f5dfd31582f5","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/clk/mstar/clk-msc313-mpll.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.12"},{"lessThan":"5.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.117","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.63","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.117","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.63","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"5.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: mstar: msc313-mpll: fix off-by-one in clock array allocation\n\nThe hws array of mpll->clk_data is allocated with struct_size() using\nARRAY_SIZE(output_dividers) as the element count, giving it 7 elements.\nBut the probe function stores the MPLL clock at hws[0] and one\nfixed-factor clock for each output divider at hws[i + 1] for i in\n[0, ARRAY_SIZE(output_dividers)), writing 8 elements in total.  The\nfinal write to hws[7] is past the end of the allocation.\n\nclk_data->num is also set to NUMOUTPUTS (8), so the clock framework\nreads hws[0..7], again accessing hws[7] out of bounds.\n\nUse NUMOUTPUTS as the element count so the allocation matches the\nnumber of clocks actually stored and exposed.\n\nFound by smatch:\n  drivers/clk/mstar/clk-msc313-mpll.c:134 msc313_mpll_probe()\n  error: buffer overflow 'mpll->clk_data->hws' 7 <= 7"}],"providerMetadata":{"dateUpdated":"2026-12-03T03:21:02.914Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/c5ebe5560bf45a47021c5bf90d366747e69eeaf3"},{"url":"https://git.kernel.org/stable/c/b47c94d4e530c001efdc18070d4d8106e5752b90"},{"url":"https://git.kernel.org/stable/c/f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e"},{"url":"https://git.kernel.org/stable/c/4352760accafc4767928e7292b1c90e0a0aedecb"},{"url":"https://git.kernel.org/stable/c/cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8"},{"url":"https://git.kernel.org/stable/c/698119b61439da00f6148b43fb96e76d6492ddd0"},{"url":"https://git.kernel.org/stable/c/712b75152c00a8ab0c56dbfe34caf88e3870ddde"}],"title":"clk: mstar: msc313-mpll: fix off-by-one in clock array allocation","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142860","datePublished":"2026-12-03T03:21:02.914Z","dateReserved":"2026-12-03T03:10:28.333Z","dateUpdated":"2026-12-03T03:21:02.914Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:23","lastModifiedDate":"2026-12-03 04:18:23","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142860","Ordinal":"1","Title":"clk: mstar: msc313-mpll: fix off-by-one in clock array allocatio","CVE":"CVE-2026-142860","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142860","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: mstar: msc313-mpll: fix off-by-one in clock array allocation\n\nThe hws array of mpll->clk_data is allocated with struct_size() using\nARRAY_SIZE(output_dividers) as the element count, giving it 7 elements.\nBut the probe function stores the MPLL clock at hws[0] and one\nfixed-factor clock for each output divider at hws[i + 1] for i in\n[0, ARRAY_SIZE(output_dividers)), writing 8 elements in total.  The\nfinal write to hws[7] is past the end of the allocation.\n\nclk_data->num is also set to NUMOUTPUTS (8), so the clock framework\nreads hws[0..7], again accessing hws[7] out of bounds.\n\nUse NUMOUTPUTS as the element count so the allocation matches the\nnumber of clocks actually stored and exposed.\n\nFound by smatch:\n  drivers/clk/mstar/clk-msc313-mpll.c:134 msc313_mpll_probe()\n  error: buffer overflow 'mpll->clk_data->hws' 7 <= 7","Type":"Description","Title":"clk: mstar: msc313-mpll: fix off-by-one in clock array allocatio"}]}}}