{"api_version":"1","generated_at":"2026-12-03T05:42:36+00:00","cve":"CVE-2026-142853","urls":{"html":"https://cve.report/CVE-2026-142853","api":"https://cve.report/api/cve/CVE-2026-142853.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142853","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142853"},"summary":{"title":"clk: tenstorrent: Assign .num before accessing .hws","description":"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->num per Gustavo]","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:22","updated_at":"2026-12-03 04:18:22"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/46a0b522242d53852ec64b3c0875c9982bbf4fd0","name":"https://git.kernel.org/stable/c/46a0b522242d53852ec64b3c0875c9982bbf4fd0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/da9f1312b06e4c03d43d21494fb5beea7f9e096d","name":"https://git.kernel.org/stable/c/da9f1312b06e4c03d43d21494fb5beea7f9e096d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142853","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142853","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23c8ebc952849b3ba47d04d0ec95daf5cc136061 46a0b522242d53852ec64b3c0875c9982bbf4fd0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 23c8ebc952849b3ba47d04d0ec95daf5cc136061 da9f1312b06e4c03d43d21494fb5beea7f9e096d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.1","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.1 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":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/clk/tenstorrent/atlantis-prcm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"46a0b522242d53852ec64b3c0875c9982bbf4fd0","status":"affected","version":"23c8ebc952849b3ba47d04d0ec95daf5cc136061","versionType":"git"},{"lessThan":"da9f1312b06e4c03d43d21494fb5beea7f9e096d","status":"affected","version":"23c8ebc952849b3ba47d04d0ec95daf5cc136061","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/clk/tenstorrent/atlantis-prcm.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.1"},{"lessThan":"7.1","status":"unaffected","version":"0","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":"7.3.4","versionStartIncluding":"7.1","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.1","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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->num per Gustavo]"}],"providerMetadata":{"dateUpdated":"2026-12-03T03:20:59.123Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/46a0b522242d53852ec64b3c0875c9982bbf4fd0"},{"url":"https://git.kernel.org/stable/c/da9f1312b06e4c03d43d21494fb5beea7f9e096d"}],"title":"clk: tenstorrent: Assign .num before accessing .hws","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142853","datePublished":"2026-12-03T03:20:59.123Z","dateReserved":"2026-12-03T03:10:28.333Z","dateUpdated":"2026-12-03T03:20:59.123Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:22","lastModifiedDate":"2026-12-03 04:18:22","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142853","Ordinal":"1","Title":"clk: tenstorrent: Assign .num before accessing .hws","CVE":"CVE-2026-142853","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142853","Ordinal":"1","NoteData":"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->num per Gustavo]","Type":"Description","Title":"clk: tenstorrent: Assign .num before accessing .hws"}]}}}