Bug 2589142 (CVE-2026-142860) - CVE-2026-142860 kernel: kernel: Out-of-bounds memory access in MStar MPLL clock driver via off-by-one array allocation
Summary: CVE-2026-142860 kernel: kernel: Out-of-bounds memory access in MStar MPLL clo...
Keywords:
Status: NEW
Alias: CVE-2026-142860
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-12-03 04:56 UTC by OSIDB Bzimport
Modified: 2026-12-03 06:50 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-12-03 04:56:48 UTC
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


Note You need to log in before you can comment on or make changes to this bug.