CVE-2026-142860

Source
https://cve.org/CVERecord?id=CVE-2026-142860
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142860.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-142860
Published
2026-12-03T03:21:02Z
Modified
2026-12-03T05:00:59Z
Summary
clk: mstar: msc313-mpll: fix off-by-one in clock array allocation
Details

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

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142860.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
bef7a78da71687838a6bb5b316c4f5dfd31582f5
Fixed
c5ebe5560bf45a47021c5bf90d366747e69eeaf3
Fixed
b47c94d4e530c001efdc18070d4d8106e5752b90
Fixed
f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e
Fixed
4352760accafc4767928e7292b1c90e0a0aedecb
Fixed
cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8
Show 2 more events Show fewer events
Fixed
698119b61439da00f6148b43fb96e76d6492ddd0
Fixed
712b75152c00a8ab0c56dbfe34caf88e3870ddde

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142860.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.12.0
Fixed
5.15.226
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.117
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.63
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.4

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-142860.json"