CVE-2025-37949
xenbus: Use kref to track req lifetime
Reported by linux · Published May 20, 2025
In the Linux kernel, the following vulnerability has been resolved: xenbus: Use kref to track req lifetime Marek reported seeing a NULL pointer fault in the xenbus_thread callstack: BUG: kernel NULL pointer dereference, address: 0000000000000000 RIP: e030:__wake_up_common+0x4c/0x180 Call Trace: <TASK> __wake_up_common_lock+0x82/0xd0 process_msg+0x18e/0x2f0 xenbus_thread+0x165/0x1c0 process_msg+0x18e is req->cb(req). req->cb is set to xs_wake_up(), a thin wrapper around wake_up(), or xenbus_dev_queue_reply(). It seems like it was xs_wake_up() in this case. It seems like req may have woken up the xs_wait_for_reply(), which kfree()ed the req. When xenbus_thread resumes, it faults on the zero-ed data. Linux Device Drivers 2nd edition states: "Normally, a wake_up call can cause an immediate reschedule to happen, meaning that other processes might run before wake_up returns." ... which would match the behaviour observed. Change to keeping two krefs on each request. One for the caller, and one for xenbus_thread. Each will kref_put() when finished, and the last will free it. This use of kref matches the description in Documentation/core-api/kref.rst
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| bpftool | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-libbpf-devel | Amazon Linux | 6.1.140-154.222.amzn2023 |
| python3-perf | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-modules-extra-common | Amazon Linux | 6.1.140-154.222.amzn2023 |
| kernel-devel | Amazon Linux | 6.1.140-154.222.amzn2023 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | fd8aa9095a95c02dcc35540a263267c29b8fda9d, fd8aa9095a95c02dcc35540a263267c29b8fda9d, fd8aa9095a95c02dcc35540a263267c29b8fda9d |
| Linux | Linux | 4.11, 0, 5.4.294 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | kernel-devel | 0 |
| linux | linux_kernel | 4.11, 4.11, 4.11 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-headers | 0 |
| Linux | Linux | 5.15.183, 0, 5.10.238 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.1.140-154.222 | 0 |
| amazon:2023 | kernel-livepatch-6.12.29-33.102 | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | perf6.12 | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
…and 3 more
Timeline
- May 20, 2025 CVE Published
- May 21, 2025 EPSS Score (30 in total, the first dated here)
- Oct 24, 2025 PoC Published (2 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (258 in total, the first dated here)
- Mar 29, 2026 Security Advisory (266 in total, the first dated here)
- Jun 9, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-37949
vulnetix vdb fixes CVE-2025-37949
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-37949/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart