# CVE-2025-37949: xenbus: Use kref to track req lifetime

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.33% (percentile 19, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-05-20T16:01:45.242Z
- **Modified:** 2026-10-15T22:18:22.450Z

## Who should check

- Anyone running Linux \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 0e94a246bb6d9538010b6c02d2b1d4717a97b2e5; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< f1bcac367bc95631afbb918348f30dec887d0e1b; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 4d260a5558df4650eb87bc41b2c9ac2d6b2ba447; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 8b02f85e84dc6f7c150cef40ddb69af5a25659e5; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< cbfaf46b88a4c01b64c4186cdccd766c19ae644c; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 8e9c8a0393b5f85f1820c565ab8105660f4e8f92; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 2466b0f66795c3c426cacc8998499f38031dbb59; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27
- Anyone running Linux 4.11

## Description

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

## Affected and fixed versions

- Linux: \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 0e94a246bb6d9538010b6c02d2b1d4717a97b2e5; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< f1bcac367bc95631afbb918348f30dec887d0e1b; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 4d260a5558df4650eb87bc41b2c9ac2d6b2ba447; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 8b02f85e84dc6f7c150cef40ddb69af5a25659e5; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< cbfaf46b88a4c01b64c4186cdccd766c19ae644c; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 8e9c8a0393b5f85f1820c565ab8105660f4e8f92; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 2466b0f66795c3c426cacc8998499f38031dbb59; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27 (cvelist)
- Linux: 4.11 (cvelist)

## Mitigation

- Upgrade Linux to 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2025-37949. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2025-37949.md
Affected: Linux >= fd8aa9095a95c02dcc35540a263267c29b8fda9d, < 0e94a246bb6d9538010b6c02d2b1d4717a97b2e5; >= fd8aa9095a95c02dcc35540a263267c29b8fda9d, < f1bcac367bc95631afbb918348f30dec887d0e1b; >= fd8aa9095a95c02dcc35540a263267c29b8fda9d, < 4d260a5558df4650eb87bc41b2c9ac2d6b2ba447; >= fd8aa9095a95c02dcc35540…
Fixed in: Linux 0e94a246bb6d9538010b6c02d2b1d4717a97b2e5, Linux 4d260a5558df4650eb87bc41b2c9ac2d6b2ba447, Linux 8b02f85e84dc6f7c150cef40ddb69af5a25659e5, Linux 8e9c8a0393b5f85f1820c565ab8105660f4e8f92, Linux 2466b0f66795c3c426cacc8998499f38031dbb59, Linux 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2025-37949 being exploited?

There is no confirmed exploitation: CVE-2025-37949 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.33% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2025-37949?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2025-37949?

Linux \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 0e94a246bb6d9538010b6c02d2b1d4717a97b2e5; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< f1bcac367bc95631afbb918348f30dec887d0e1b; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 4d260a5558df4650eb87bc41b2c9ac2d6b2ba447; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 8b02f85e84dc6f7c150cef40ddb69af5a25659e5; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< cbfaf46b88a4c01b64c4186cdccd766c19ae644c; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 8e9c8a0393b5f85f1820c565ab8105660f4e8f92; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 2466b0f66795c3c426cacc8998499f38031dbb59; \>= fd8aa9095a95c02dcc35540a263267c29b8fda9d, \< 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27; Linux 4.11.

### Is there a fix for CVE-2025-37949?

Yes. Fixed in Linux 0e94a246bb6d9538010b6c02d2b1d4717a97b2e5, Linux 4d260a5558df4650eb87bc41b2c9ac2d6b2ba447, Linux 8b02f85e84dc6f7c150cef40ddb69af5a25659e5, Linux 8e9c8a0393b5f85f1820c565ab8105660f4e8f92, Linux 2466b0f66795c3c426cacc8998499f38031dbb59, Linux 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27. Upgrade Linux to 1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27 or later.

### How do I check if I'm affected by CVE-2025-37949?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0e94a246bb6d9538010b6c02d2b1d4717a97b2e5>
- patch: <https://git.kernel.org/stable/c/f1bcac367bc95631afbb918348f30dec887d0e1b>
- patch: <https://git.kernel.org/stable/c/4d260a5558df4650eb87bc41b2c9ac2d6b2ba447>
- patch: <https://git.kernel.org/stable/c/8b02f85e84dc6f7c150cef40ddb69af5a25659e5>
- patch: <https://git.kernel.org/stable/c/cbfaf46b88a4c01b64c4186cdccd766c19ae644c>
- patch: <https://git.kernel.org/stable/c/8e9c8a0393b5f85f1820c565ab8105660f4e8f92>
- patch: <https://git.kernel.org/stable/c/2466b0f66795c3c426cacc8998499f38031dbb59>
- patch: <https://git.kernel.org/stable/c/1f0304dfd9d217c2f8b04a9ef4b3258a66eedd27>
- other: <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2025-37949>

HTML: <https://flawdb.com/CVE-2025-37949> · JSON: <https://flawdb.com/api/v1/entries/CVE-2025-37949>
