{"id":"CVE-2026-23217","published":"2026-02-18T14:21:54Z","modified":"2026-10-21T12:39:00Z","title":"riscv: trace: fix snapshot deadlock with sbi ecall","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: trace: fix snapshot deadlock with sbi ecall\n\nIf sbi_ecall.c's functions are traceable,\n\necho \"__sbi_ecall:snapshot\" > /sys/kernel/tracing/set_ftrace_filter\n\nmay get the kernel into a deadlock.\n\n(Functions in sbi_ecall.c are excluded from tracing if\nCONFIG_RISCV_ALTERNATIVE_EARLY is set.)\n\n__sbi_ecall triggers a snapshot of the ringbuffer. The snapshot code\nraises an IPI interrupt, which results in another call to __sbi_ecall\nand another snapshot...\n\nAll it takes to get into this endless loop is one initial __sbi_ecall.\nOn RISC-V systems without SSTC extension, the clock events in\ntimer-riscv.c issue periodic sbi ecalls, making the problem easy to\ntrigger.\n\nAlways exclude the sbi_ecall.c functions from tracing to fix the\npotential deadlock.\n\nsbi ecalls can easiliy be logged via trace events, excluding ecall\nfunctions from function tracing is not a big limitation.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00138,"percentile":0.03272,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/f8b8ec0ddde74066d4452a7a961da544f193e00f","tags":[]},{"url":"https://git.kernel.org/stable/c/b1f8285bc8e3508c1fde23b5205f1270215d4984","tags":[]},{"url":"https://git.kernel.org/stable/c/b0d7f5f0c9f05f1b6d4ee7110f15bef9c11f9df0","tags":[]}],"priority":{"score":0.7,"factors":[{"name":"EPSS percentile","points":0.65}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1ff95eb2bebda50c4c5406caaf201e0fcb24cc8f, < f8b8ec0ddde74066d4452a7a961da544f193e00f",">= 1ff95eb2bebda50c4c5406caaf201e0fcb24cc8f, < b1f8285bc8e3508c1fde23b5205f1270215d4984",">= 1ff95eb2bebda50c4c5406caaf201e0fcb24cc8f, < b0d7f5f0c9f05f1b6d4ee7110f15bef9c11f9df0","82f134ddd4f5da11c277bd1aa02e2a733179725a",">= 6.10.10, < 6.11"]},{"vendor":"Linux","product":"Linux","versions":["6.11"]}],"euvd":{"id":"EUVD-2026-8018","exploited":false,"provenance":"source"}}