{"id":29019,"date":"2026-09-25T20:31:42","date_gmt":"2026-09-25T12:31:42","guid":{"rendered":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97587"},"modified":"2026-09-25T20:31:42","modified_gmt":"2026-09-25T12:31:42","slug":"cve-2026-97587","status":"publish","type":"vuln","link":"https:\/\/www.54iter.cn\/?vuln=cve-2026-97587","title":{"rendered":"CVE-2026-97587 &#8211; In the Linux kernel, the following vulnerability has been resolved:\n\nperf: RISC-V: store a"},"content":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>perf: RISC-V: store available counter mask as bitmap<\/p>\n<p>The available-counter mask was a single unsigned long, but iteration<br \/>\nuses RISCV_MAX_COUNTERS, which is 64. On RV32 that reads past the object.<br \/>\nFilling with an unsigned-long bit at index 32 and above is also wrong.<\/p>\n<p>Use DECLARE_BITMAP and set_bit\/bitmap helpers. Walk each bitmap word<br \/>\ninto CFG_MATCH when checking events, when allocating an index, and when<br \/>\nstopping all counters. Set the counter base to i times BITS_PER_LONG.<br \/>\nShare the CFG_MATCH ecall through a small helper so the 32-bit argument<br \/>\nsplit is not duplicated. On qemu-system-riscv32 the probe bitmap has bits<br \/>\nabove XLEN set, so the first word alone is not enough.<\/p>\n<p>[pjw@kernel.org: updated to apply; fixed checkpatch.pl issues]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>perf: RISC-V: store available counter mask as bitmap<\/p>\n<p>The available-counter mask was a single unsigned long, but iteration<br \/>\nuses RIS<\/p>\n","protected":false},"template":"","meta":[],"categories":[],"tags":[],"class_list":["post-29019","vuln","type-vuln","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.54iter.cn\/index.php?rest_route=\/wp\/v2\/vuln\/29019","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=29019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=29019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.54iter.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=29019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}