{"id":"CVE-2025-71143","aliases":["CVE-2025-71143"],"related":[],"kind":"vulnerability","state":"published","title":"clk: samsung: exynos-clkout: Assign .num before accessing .hws","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: samsung: exynos-clkout: 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. This\noccurs in exynos_clkout_probe() due to .num being assigned after .hws[]\nhas been accessed:\n\n  UBSAN: array-index-out-of-bounds in drivers/clk/samsung/clk-exynos-clkout.c:178:18\n  index 0 is out of range for type 'clk_hw *[*]'\n\nMove the .num initialization to before the first access of .hws[],\nclearing up the warning.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nclk: samsung: exynos-clkout: 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. This\noccurs in exynos_clkout_probe() due to .num being assigned after .hws[]\nhas been accessed:\n\n  UBSAN: array-index-out-of-bounds in drivers/clk/samsung/clk-exynos-clkout.c:178:18\n  index 0 is out of range for type 'clk_hw *[*]'\n\nMove the .num initialization to before the first access of .hws[],\nclearing up the warning.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nclk: samsung: exynos-clkout: Asignar .num antes de acceder a .hws\n\nEl commit f316cdff8d67 ('clk: Anotar struct clk_hw_onecell_data con __counted_by') anotó el miembro hws de 'struct clk_hw_onecell_data' con __counted_by, lo que informa al sanitizador de límites (UBSAN_BOUNDS) sobre el número de elementos en .hws[], para que pueda advertir cuando se accede a .hws[] fuera de los límites. Como se señaló en ese cambio, el miembro __counted_by debe inicializarse con el número de elementos antes de que ocurra el primer acceso al array, de lo contrario, habrá una advertencia de cada acceso anterior a la inicialización porque el número de elementos es cero. Esto ocurre en exynos_clkout_probe() debido a que .num se asigna después de que se haya accedido a .hws[]:\n\n  UBSAN: array-index-out-of-bounds en drivers/clk/samsung/clk-exynos-clkout.c:178:18\n  el índice 0 está fuera de rango para el tipo 'clk_hw *[*]'\n\nMover la inicialización de .num a antes del primer acceso a .hws[], eliminando la advertencia.","source":"nvd"}],"published":"2026-01-14T15:07:55.828Z","modified":"2026-06-17T10:03:45.050Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-129"],"affected":[{"ranges":[{"type":"git","introduced":"f316cdff8d677db9ad9c90acb44c4cd535b0ee27","fixed":"fbf57f5e453dadadb3d29b2d1dbe067e3dc4e236","status":"affected"},{"type":"git","introduced":"f316cdff8d677db9ad9c90acb44c4cd535b0ee27","fixed":"eb1f3a6ab3efee2b52361879cdc2dc6b11f499c0","status":"affected"},{"type":"git","introduced":"f316cdff8d677db9ad9c90acb44c4cd535b0ee27","fixed":"a317f63255ebc3dac378c79c5bff4f8d0561c290","status":"affected"},{"type":"git","introduced":"f316cdff8d677db9ad9c90acb44c4cd535b0ee27","fixed":"cf33f0b7df13685234ccea7be7bfe316b60db4db","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.6","status":"unaffected"},{"type":"semver","introduced":"6.6.120","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.64","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.4","lastAffected":"6.18.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.19","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.1","fixed":"6.6.120"},{"status":"affected","introduced":"6.7","fixed":"6.12.64"},{"status":"affected","introduced":"6.13","fixed":"6.18.4"},{"status":"affected","version":"6.6"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"},{"status":"affected","version":"6.19"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/fbf57f5e453dadadb3d29b2d1dbe067e3dc4e236","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eb1f3a6ab3efee2b52361879cdc2dc6b11f499c0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a317f63255ebc3dac378c79c5bff4f8d0561c290","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf33f0b7df13685234ccea7be7bfe316b60db4db","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-71143","url":"https://www.cve.org/CVERecord?id=CVE-2025-71143","licence":"CVE Terms of Use","modified":"2026-05-11T21:55:48.662Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-71143","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-71143","licence":"Public domain","modified":"2026-06-17T10:03:45.050Z"}],"updatedAt":"2026-11-25T22:59:10.630Z","epss":{"score":0.00142,"percentile":0.03777,"date":"2026-12-01T12:00:22.000Z"}}