{"id":17424,"date":"2026-09-05T02:31:06","date_gmt":"2026-09-04T18:31:06","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80876"},"modified":"2026-09-05T02:31:06","modified_gmt":"2026-09-04T18:31:06","slug":"cve-2026-80876","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-80876","title":{"rendered":"CVE-2026-80876 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nring-buffer: Fix even"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ring-buffer: Fix event length with forced 8-byte alignment<\/p>\n<p>When RB_FORCE_8BYTE_ALIGNMENT is true, rb_calculate_event_length()<br \/>\nreserves the space of event-&gt;array[0] for placing the data length and<br \/>\nrb_update_event() stores the data length in event-&gt;array[0]<br \/>\naccordingly. As a result the whole event length will add extra 4 bytes<br \/>\nfor sizeof(event.array[0]) unconditionally.<\/p>\n<p>But ring_buffer_event_length() only subtracts the<br \/>\nsizeof(event-&gt;array[0]) for events larger than RB_MAX_SMALL_DATA +<br \/>\nsizeof(event-&gt;array[0]). As a result, small events on architectures<br \/>\nwith RB_FORCE_8BYTE_ALIGNMENT=true report a data length that is 4<br \/>\nbytes larger than expected.<\/p>\n<p>To fix it, add the RB_FORCE_8BYTE_ALIGNMENT as a condition to subtract<br \/>\nthe size of that length field whenever RB_FORCE_8BYTE_ALIGNMENT is<br \/>\ntrue.<\/p>\n<p>This issue is observed in a riscv64 kernel with<br \/>\nCONFIG_HAVE_64BIT_ALIGNED_ACCESS set to y, when we run ftrace selftest<br \/>\ntrace_marker_raw.tc, we get the weird log: for cases where the id is<br \/>\n1..100, the number of data field is 8*N, but once id exceeds 100, the<br \/>\nnumber of data field becomes 8*N+4:<br \/>\n # 1 buf: 58 00 00 00 80 5e d1 63 (number of data field is 8*1)<br \/>\n &#8230;<br \/>\n # a buf: 58 &#8230;                  (number of data field is 8*2)<br \/>\n &#8230;<br \/>\n # 64 buf: 58 &#8230;                 (number of data field is 8*13)<br \/>\n # 65 buf: 58 &#8230;                 (number of data field is 8*13+4)<\/p>\n<p>After applying this change, the number of data field keeps being 8*N+4<br \/>\nconsistently.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>ring-buffer: Fix event length with forced 8-byte alignment<\/p>\n<p>When RB_FORCE_8BYTE_ALIGNMENT is true, rb_calculate_event_length()<br \/>\nrese<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-17424","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/17424","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=17424"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=17424"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=17424"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}