{"id":"CVE-2025-37822","summary":"riscv: uprobes: Add missing fence.i after building the XOL buffer","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nriscv: uprobes: Add missing fence.i after building the XOL buffer\n\nThe XOL (execute out-of-line) buffer is used to single-step the\nreplaced instruction(s) for uprobes. The RISC-V port was missing a\nproper fence.i (i$ flushing) after constructing the XOL buffer, which\ncan result in incorrect execution of stale/broken instructions.\n\nThis was found running the BPF selftests \"test_progs:\nuprobe_autoattach, attach_probe\" on the Spacemit K1/X60, where the\nuprobes tests randomly blew up.","modified":"2026-04-02T12:47:31.434063Z","published":"2025-05-08T06:26:16.209Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37822.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/1dbb95a36499374c51b47ee8ae258a8862c20978"},{"type":"WEB","url":"https://git.kernel.org/stable/c/77c956152a3a7c7a18b68f3654f70565b2181d03"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48"},{"type":"WEB","url":"https://git.kernel.org/stable/c/b6d8d4d01ca8514fa89b05355f296758a91e2297"},{"type":"WEB","url":"https://git.kernel.org/stable/c/bcf6d3158c5902d92b6d62335af4422b7bf7c4e2"},{"type":"WEB","url":"https://git.kernel.org/stable/c/be6d98766ac952d38241d5a5b213f363afa421c3"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37822.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37822"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"74784081aac8a0f3636965fc230e2d3b7cc123c6"},{"fixed":"be6d98766ac952d38241d5a5b213f363afa421c3"},{"fixed":"b6d8d4d01ca8514fa89b05355f296758a91e2297"},{"fixed":"77c956152a3a7c7a18b68f3654f70565b2181d03"},{"fixed":"bcf6d3158c5902d92b6d62335af4422b7bf7c4e2"},{"fixed":"1dbb95a36499374c51b47ee8ae258a8862c20978"},{"fixed":"7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37822.json"}}],"schema_version":"1.7.5"}