{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "bef7a78da71687838a6bb5b316c4f5dfd31582f5"
            },
            {
              "fixed": "c5ebe5560bf45a47021c5bf90d366747e69eeaf3"
            },
            {
              "fixed": "b47c94d4e530c001efdc18070d4d8106e5752b90"
            },
            {
              "fixed": "f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e"
            },
            {
              "fixed": "4352760accafc4767928e7292b1c90e0a0aedecb"
            },
            {
              "fixed": "cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8"
            },
            {
              "fixed": "698119b61439da00f6148b43fb96e76d6492ddd0"
            },
            {
              "fixed": "712b75152c00a8ab0c56dbfe34caf88e3870ddde"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "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"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142860.json"
  },
  "details": "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-\u003eclk_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-\u003enum 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-\u003eclk_data-\u003ehws' 7 \u003c= 7",
  "id": "CVE-2026-142860",
  "modified": "2026-12-03T04:45:20.052814140Z",
  "published": "2026-12-03T03:21:02.914Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/4352760accafc4767928e7292b1c90e0a0aedecb"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/698119b61439da00f6148b43fb96e76d6492ddd0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/712b75152c00a8ab0c56dbfe34caf88e3870ddde"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b47c94d4e530c001efdc18070d4d8106e5752b90"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c5ebe5560bf45a47021c5bf90d366747e69eeaf3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cfe382cbabf6d5be415009cad6c58a2cf4f6a8b8"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f9a13ce0de6039bd5336ebeadbe70d3d2ec3c58e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142860.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142860"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "clk: mstar: msc313-mpll: fix off-by-one in clock array allocation"
}