VDB

CVE-2025-37949

CVE-2025-37949 PUBLISHED CVSS 7.8 HIGH

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.

PackageEcosystemFixed in
bpftoolAmazon Linux6.1.140-154.222.amzn2023
kernel-libbpf-develAmazon Linux6.1.140-154.222.amzn2023
python3-perfAmazon Linux6.1.140-154.222.amzn2023
kernelAmazon Linux6.1.140-154.222.amzn2023
kernel-modules-extra-commonAmazon Linux6.1.140-154.222.amzn2023
kernel-develAmazon Linux6.1.140-154.222.amzn2023

Risk scores

CVSS 3.1
7.8
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Affected products

VendorProductVersions
LinuxLinuxfd8aa9095a95c02dcc35540a263267c29b8fda9d, fd8aa9095a95c02dcc35540a263267c29b8fda9d, fd8aa9095a95c02dcc35540a263267c29b8fda9d
LinuxLinux4.11, 0, 5.4.294
amazon:2023bpftool0
amazon:2023kernel-libbpf-devel0
amazon:2023python3-perf0
amazon:2023kernel0
amazon:2023kernel-modules-extra-common0
amazon:2023kernel-devel0
linuxlinux_kernel4.11, 4.11, 4.11
amazon:2023kernel-tools-devel0
amazon:2023kernel-headers0
LinuxLinux5.15.183, 0, 5.10.238
amazon:2023kernel6.120
amazon:2023kernel-livepatch-6.1.140-154.2220
amazon:2023kernel-livepatch-6.12.29-33.1020
amazon:2023python3-perf6.120
amazon:2023perf0
amazon:2023kernel-libbpf0
amazon:2023perf6.120
amazon:2023kernel-modules-extra0

…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

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›