riscv: uprobes: Add missing fence.i after building the XOL buffer
In the Linux kernel, the following vulnerability has been resolved: riscv: uprobes: Add missing fence.i after building the XOL buffer The XOL (execute out-of-line) buffer is used to single-step the replaced instruction(s) for uprobes. The RISC-V port was missing a proper fence.i (i$ flushing) after constructing the XOL buffer, which can result in incorrect execution of stale/broken instructions. This was found running the BPF selftests "test_progs: uprobe_autoattach, attach_probe" on the Spacemit K1/X60, where the uprobes tests randomly blew up.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.15.200, 6.1.163, 6.12.26, 6.14.5, 6.6.121
- CVEs
- CVE-2025-37822
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 08:02 UTC · Revision 1
Source evidence
riscv: uprobes: Add missing fence.i after building the XOL buffer
core-osv · Original sourcePublished 8 May 2025, 06:26 UTC
In the Linux kernel, the following vulnerability has been resolved: riscv: uprobes: Add missing fence.i after building the XOL buffer The XOL (execute out-of-line) buffer is used to single-step the replaced instruction(s) for uprobes. The RISC-V port was missing a proper fence.i (i$ flushing) after constructing the XOL buffer, which can result in incorrect execution of stale/broken instructions. This was found running the BPF selftests "test_progs: uprobe_autoattach, attach_probe" on the Spacemit K1/X60, where the uprobes tests randomly blew up.
osv:CVE-2025-37822
Kernel
Fixed versions: 5.15.200, 6.1.163, 6.6.121, 6.12.26, 6.14.5
Complete source record
{
"id": "6d808284fe3ee94fdf7294f07b8ef9d0ade401e5c3537668caa8c927a739fab0",
"url": "https://osv.dev/vulnerability/CVE-2025-37822",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "riscv: uprobes: Add missing fence.i after building the XOL buffer",
"summary": "In the Linux kernel, the following vulnerability has been resolved: riscv: uprobes: Add missing fence.i after building the XOL buffer The XOL (execute out-of-line) buffer is used to single-step the replaced instruction(s) for uprobes. The RISC-V port was missing a proper fence.i (i$ flushing) after constructing the XOL buffer, which can result in incorrect execution of stale/broken instructions. This was found running the BPF selftests \"test_progs: uprobe_autoattach, attach_probe\" on the Spacemit K1/X60, where the uprobes tests randomly blew up.",
"evidence": "osv:CVE-2025-37822",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.15.200",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.163",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.121",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.26",
"evidence": "/affected/1/ranges"
},
{
"value": "6.14.5",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "CVE-2025-37822",
"aliases": [
"CVE-2025-37822"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "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"
}
},
{
"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"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37822.json"
}
}
],
"modified": "2026-10-28T02:30:50.579422379Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/1dbb95a36499374c51b47ee8ae258a8862c20978",
"https://git.kernel.org/stable/c/77c956152a3a7c7a18b68f3654f70565b2181d03",
"https://git.kernel.org/stable/c/7d1d19a11cfbfd8bae1d89cc010b2cc397cd0c48",
"https://git.kernel.org/stable/c/b6d8d4d01ca8514fa89b05355f296758a91e2297",
"https://git.kernel.org/stable/c/bcf6d3158c5902d92b6d62335af4422b7bf7c4e2",
"https://git.kernel.org/stable/c/be6d98766ac952d38241d5a5b213f363afa421c3",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37822.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-37822",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37822.json"
}
},
"related_cves": [
{
"value": "CVE-2025-37822",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 518699,
"published_at": "2025-05-08T06:26:16.209+00:00"
}