{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-37822","id":"CVE-2025-37822","title":"riscv: uprobes: Add missing fence.i after building the XOL buffer","description":"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.","descriptionLong":"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.","published":"2025-05-08T06:26:16.209Z","updated":"2026-10-28T02:30:50.579422379Z","reserved":"2025-04-16T04:51:23.947Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"Linux"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"416baaa9-dc9f-4396-8d5f-8c081fb06d67"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"OSV"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"74784081aac8a0f3636965fc230e2d3b7cc123c6","lessThan":"be6d98766ac952d38241d5a5b213f363afa421c3","status":"affected","versionType":"git"},{"version":"74784081aac8a0f3636965fc230e2d3b7cc123c6","lessThan":"b6d8d4d01ca8514fa89b05355f296758a91e2297","status":"affected","versionType":"git"},{"version":"74784081aac8a0f3636965fc230e2d3b7cc123c6","lessThan":"77c956152a3a7c7a18b68f3654f70565b2181d03","status":"affected","versionType":"git"},{"version":"74784081aac8a0f3636965fc230e2d3b7cc123c6","lessThan":"bcf6d3158c5902d92b6d62335af4422b7bf7c4e2","status":"affected","versionType":"git"},{"version":"74784081aac8a0f3636965fc230e2d3b7cc123c6","lessThan":"1dbb95a36499374c51b47ee8ae258a8862c20978","status":"affected","versionType":"git"},{"version":"74784081aac8a0f3636965fc230e2d3b7cc123c6","lessThan":"7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.12","status":"affected"},{"version":"0","lessThan":"5.12","status":"unaffected","versionType":"semver"},{"version":"5.15.200","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.163","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.121","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.26","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.14.5","lessThanOrEqual":"6.14.*","status":"unaffected","versionType":"semver"},{"version":"6.15","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/be6d98766ac952d38241d5a5b213f363afa421c3","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/b6d8d4d01ca8514fa89b05355f296758a91e2297","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/77c956152a3a7c7a18b68f3654f70565b2181d03","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/bcf6d3158c5902d92b6d62335af4422b7bf7c4e2","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/1dbb95a36499374c51b47ee8ae258a8862c20978","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48","tags":["Patch","web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37822.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37822","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total"},"epss":0.00274,"epssPercentile":0.20105,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-37822","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-37822","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-37822","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-37822","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}