{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "23c8ebc952849b3ba47d04d0ec95daf5cc136061"
            },
            {
              "fixed": "46a0b522242d53852ec64b3c0875c9982bbf4fd0"
            },
            {
              "fixed": "da9f1312b06e4c03d43d21494fb5beea7f9e096d"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.1.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-142853.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nclk: tenstorrent: Assign .num before accessing .hws\n\nCommit f316cdff8d67 (\"clk: Annotate struct clk_hw_onecell_data with\n__counted_by\") annotated the hws member of 'struct clk_hw_onecell_data'\nwith __counted_by, which informs the bounds sanitizer (UBSAN_BOUNDS)\nabout the number of elements in .hws[], so that it can warn when .hws[]\nis accessed out of bounds. As noted in that change, the __counted_by\nmember must be initialized with the number of elements before the first\narray access happens, otherwise there will be a warning from each access\nprior to the initialization because the number of elements is zero.\nThis occurs in atlantis_prcm_clocks_register() due to .num being\nassigned only after every clock has been stored in .hws[]. With\nCONFIG_UBSAN_BOUNDS and a compiler that implements __counted_by (GCC\n15.1+ or Clang 20.1+), this triggers an array-index-out-of-bounds report\nduring probe, and with CONFIG_UBSAN_TRAP the first store traps so the\nclock provider never registers.\n\nMove the .num initialization to right after the allocation.\n\n[fustini: drop num_clks, use data-\u003enum per Gustavo]",
  "id": "CVE-2026-142853",
  "modified": "2026-12-03T04:45:46.551326311Z",
  "published": "2026-12-03T03:20:59.123Z",
  "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/46a0b522242d53852ec64b3c0875c9982bbf4fd0"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/da9f1312b06e4c03d43d21494fb5beea7f9e096d"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142853.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142853"
    }
  ],
  "schema_version": "1.9.2",
  "summary": "clk: tenstorrent: Assign .num before accessing .hws"
}