{"id":41320,"date":"2026-10-19T00:33:12","date_gmt":"2026-10-18T16:33:12","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98848"},"modified":"2026-10-19T00:33:12","modified_gmt":"2026-10-18T16:33:12","slug":"cve-2026-98848","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98848","title":{"rendered":"CVE-2026-98848 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nrtc: ac100: Assign .n"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>rtc: ac100: Assign .num before accessing .hws<\/p>\n<p>Commit f316cdff8d67 (&#8220;clk: Annotate struct clk_hw_onecell_data with<br \/>\n__counted_by&#8221;) annotated the hws member of &#8216;struct clk_hw_onecell_data&#8217;<br \/>\nwith __counted_by, which informs the bounds sanitizer (UBSAN_BOUNDS)<br \/>\nabout the number of elements in .hws[], so that it can warn when .hws[]<br \/>\nis accessed out of bounds. As noted in that change, the __counted_by<br \/>\nmember must be initialized with the number of elements before the first<br \/>\narray access happens, otherwise there will be a warning from each access<br \/>\nprior to the initialization because the number of elements is zero.<br \/>\nThis occurs in ac100_rtc_register_clks() due to .num being assigned only<br \/>\nafter every clkout clock has been stored in .hws[]. With<br \/>\nCONFIG_UBSAN_BOUNDS and a compiler that implements __counted_by (GCC<br \/>\n15.1+ or Clang 20.1+), this triggers an array-index-out-of-bounds report<br \/>\nduring probe, and with CONFIG_UBSAN_TRAP the first store traps.<\/p>\n<p>Initialize .num with AC100_CLKOUT_NUM, the number of elements .hws[] was<br \/>\nallocated with, right after the allocation. That is the value the loop<br \/>\ncounter ends up at on the success path anyway, so the provider&#8217;s<br \/>\nbehaviour is unchanged.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>rtc: ac100: Assign .num before accessing .hws<\/p>\n<p>Commit f316cdff8d67 (&#8220;clk: Annotate struct clk_hw_onecell_data with<br \/>\n__counted_by&#8221;) a<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41320","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41320","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln"}],"about":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/types\/vuln"}],"wp:attachment":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=41320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}