{"id":41023,"date":"2026-10-19T00:31:51","date_gmt":"2026-10-18T16:31:51","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98551"},"modified":"2026-10-19T00:31:51","modified_gmt":"2026-10-18T16:31:51","slug":"cve-2026-98551","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-98551","title":{"rendered":"CVE-2026-98551 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nperf\/core: Fill branc"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>perf\/core: Fill branch entries with a single assignment<\/p>\n<p>perf_clear_branch_entry_bitfields() clears the bitfields of struct<br \/>\nperf_branch_entry one by one and leaves from\/to alone, since callers<br \/>\noverwrite those straight away. The list has to be kept in sync with the<br \/>\nstruct by hand and has already fallen behind: new_type and priv were<br \/>\nadded to perf_branch_entry and never added here.<\/p>\n<p>Only BRBE writes those two, and neither for every record.<br \/>\nbrbe_set_perf_entry_type() leaves new_type alone for a branch type it<br \/>\ndoes not recognise, and priv is not set for source-only records.<br \/>\narm_pmuv3.c allocates the per-CPU branch stack with kmalloc(), so such a<br \/>\nrecord reaches userspace with whatever the slot held: uninitialised<br \/>\nkmalloc() data on the first pass over the buffer, the previous record&#8217;s<br \/>\nvalues after that. Nothing under arch\/x86\/events\/ writes either field,<br \/>\nso only arm64 is affected.<\/p>\n<p>Assign the whole entry at each site instead. Everything not named is<br \/>\nthen zero, and there is no list to keep in sync. The bitfields add up to<br \/>\nexactly 64 bits, so the struct has no padding to leave undefined.<\/p>\n<p>perf_clear_branch_entry_bitfields() has no callers left, so remove it.<br \/>\nperf_entry_from_brbe_regset() assigns an empty literal instead, since it<br \/>\nfills from\/to conditionally. PERF_BR_SPEC_NA is 0, so dropping the<br \/>\nexplicit spec assignment changes nothing.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>perf\/core: Fill branch entries with a single assignment<\/p>\n<p>perf_clear_branch_entry_bitfields() clears the bitfields of struct<br \/>\nperf_br<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-41023","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/41023","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=41023"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=41023"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=41023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}