{"schema_version":"1.9.0","id":"CVE-2025-37822","published":"2025-05-08T06:26:16.209Z","modified":"2026-08-12T03:51:35.393206285Z","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.","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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.12.0"},{"fixed":"5.15.200"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.121"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.26"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.14.5"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37822.json"}}],"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"}],"database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37822.json"},"severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"}]}