{"id":77375,"date":"2026-02-18T17:51:54","date_gmt":"2026-02-18T14:21:54","guid":{"rendered":"https:\/\/afaghhosting.net\/blog\/cve-2026-23217-riscv-trace-fix-snapshot-deadlock-with-sbi-ecall\/"},"modified":"2026-02-18T17:51:54","modified_gmt":"2026-02-18T14:21:54","slug":"cve-2026-23217-riscv-trace-fix-snapshot-deadlock-with-sbi-ecall","status":"publish","type":"post","link":"https:\/\/afaghhosting.net\/blog\/cve-2026-23217-riscv-trace-fix-snapshot-deadlock-with-sbi-ecall\/","title":{"rendered":"CVE-2026-23217 &#8211; riscv: trace: fix snapshot deadlock with sbi ecall"},"content":{"rendered":"<p>CVE ID : CVE-2026-23217<\/p>\n<p>Published :  Feb. 18, 2026, 2:21 p.m. | 38\u00a0minutes ago<\/p>\n<p>Description : In the Linux kernel, the following vulnerability has been resolved:<\/p>\n<p>riscv: trace: fix snapshot deadlock with sbi ecall<\/p>\n<p>If sbi_ecall.c&#8217;s functions are traceable,<\/p>\n<p>echo &#8220;__sbi_ecall:snapshot&#8221; &gt; \/sys\/kernel\/tracing\/set_ftrace_filter<\/p>\n<p>may get the kernel into a deadlock.<\/p>\n<p>(Functions in sbi_ecall.c are excluded from tracing if<br \/>\nCONFIG_RISCV_ALTERNATIVE_EARLY is set.)<\/p>\n<p>__sbi_ecall triggers a snapshot of the ringbuffer. The snapshot code<br \/>\nraises an IPI interrupt, which results in another call to __sbi_ecall<br \/>\nand another snapshot&#8230;<\/p>\n<p>All it takes to get into this endless loop is one initial __sbi_ecall.<br \/>\nOn RISC-V systems without SSTC extension, the clock events in<br \/>\ntimer-riscv.c issue periodic sbi ecalls, making the problem easy to<br \/>\ntrigger.<\/p>\n<p>Always exclude the sbi_ecall.c functions from tracing to fix the<br \/>\npotential deadlock.<\/p>\n<p>sbi ecalls can easiliy be logged via trace events, excluding ecall<br \/>\nfunctions from function tracing is not a big limitation.<\/p>\n<p>Severity: 0.0 | NA<\/p>\n<p>Visit the link for more details, such as CVSS details, affected products, timeline, and more&#8230;\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>CVE ID : CVE-2026-23217 Published : Feb. 18, 2026, 2:21 p.m. | 38\u00a0minutes ago Description : In the Linux kernel, the following vulnerability has been resolved: riscv: trace: fix snapshot deadlock with sbi ecall If sbi_ecall.c&#8217;s functions are traceable, echo &#8220;__sbi_ecall:snapshot&#8221; &gt; \/sys\/kernel\/tracing\/set_ftrace_filter may get the kernel into a deadlock. (Functions in sbi_ecall.c are excluded &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[26],"tags":[],"class_list":["post-77375","post","type-post","status-publish","format-standard","hentry","category-vulnerability"],"_links":{"self":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/77375","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/comments?post=77375"}],"version-history":[{"count":0,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/posts\/77375\/revisions"}],"wp:attachment":[{"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/media?parent=77375"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/categories?post=77375"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/afaghhosting.net\/blog\/wp-json\/wp\/v2\/tags?post=77375"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}