Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BEFC828B4E2 for ; Wed, 18 Feb 2026 14:22:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771424559; cv=none; b=J4J5SrTQFkYE0MRNWad8ZVfX2TM/mvHztX5nudrbha6pzusQO+Y8P+6C59u/FUiD4mNeOfINrkLqtpcDtNXidraxRjEo3F+/1w6anTZFSo2Z8EHUByDxZFMjO5O5mOUinviaP0O+n4wOLoI6Ll0r0PPsTwMaD04+hRhypw8vD7I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771424559; c=relaxed/simple; bh=et51Gn2ABI+vKDgMcwAgrmzsh11lr84+03hY5b88wME=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=HQwfYJezlPG6ZxC+2B2jo2VJvqiNQS2XJ05r2wOQDpI+cfpCl4M65gpRBl5OAdqsa3DDth3Ih2NpiMZ7gDBvmTkmxnkiT015DiWNrCDuzGb2EYS4Y4Yz/9Ma4bgasE204AU5tcme6qhY19lssiaqg5g2GbpPlqkrygePlLw1lq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=i9ghnOmM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="i9ghnOmM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3AB5FC116D0; Wed, 18 Feb 2026 14:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771424559; bh=et51Gn2ABI+vKDgMcwAgrmzsh11lr84+03hY5b88wME=; h=From:To:Cc:Subject:Date:Reply-To:From; b=i9ghnOmMZi/MJtoExHDerAQPQUaZUH7HIurOpSfiuij8Whj/3T7OKXFe8ny39vDtH rWnVdZ4s5+y5OxTHuNPIwh1hDX3uuYgkQ3dJp6WDcWUfzu3zluX0930oFwypgkPT6l C8Z7da6juP+GuyPN8UYGJvkw79ecTrJqFVz0d9iw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23217: riscv: trace: fix snapshot deadlock with sbi ecall Date: Wed, 18 Feb 2026 15:22:08 +0100 Message-ID: <2026021800-CVE-2026-23217-f399@gregkh> X-Mailer: git-send-email 2.53.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2448; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=x0YzVD/G0p6fnYgfIwmLlAhL8I28rsnXkfYxlNsft6Y=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlTT3NqTckKf/hhnUDXFB77Wne9K4WWQeev7EuJE7rY0 XBg/ruYjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZgIpwjDggaVRYwin3+bz88W mS82PbVxuZJ9LsOCjc8Md3w+wFd6cpvfr0ts+kES260WAgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: riscv: trace: fix snapshot deadlock with sbi ecall If sbi_ecall.c's functions are traceable, echo "__sbi_ecall:snapshot" > /sys/kernel/tracing/set_ftrace_filter may get the kernel into a deadlock. (Functions in sbi_ecall.c are excluded from tracing if CONFIG_RISCV_ALTERNATIVE_EARLY is set.) __sbi_ecall triggers a snapshot of the ringbuffer. The snapshot code raises an IPI interrupt, which results in another call to __sbi_ecall and another snapshot... All it takes to get into this endless loop is one initial __sbi_ecall. On RISC-V systems without SSTC extension, the clock events in timer-riscv.c issue periodic sbi ecalls, making the problem easy to trigger. Always exclude the sbi_ecall.c functions from tracing to fix the potential deadlock. sbi ecalls can easiliy be logged via trace events, excluding ecall functions from function tracing is not a big limitation. The Linux kernel CVE team has assigned CVE-2026-23217 to this issue. Affected and fixed versions =========================== Fixed in 6.18.10 with commit b1f8285bc8e3508c1fde23b5205f1270215d4984 Fixed in 6.19 with commit b0d7f5f0c9f05f1b6d4ee7110f15bef9c11f9df0 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-23217 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: arch/riscv/kernel/Makefile Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/b1f8285bc8e3508c1fde23b5205f1270215d4984 https://git.kernel.org/stable/c/b0d7f5f0c9f05f1b6d4ee7110f15bef9c11f9df0