CVE-2025-38595
xen: fix UAF in dmabuf_exp_from_pages()
Reported by linux · Published August 19, 2025
In the Linux kernel, the following vulnerability has been resolved: xen: fix UAF in dmabuf_exp_from_pages() [dma_buf_fd() fixes; no preferences regarding the tree it goes through - up to xen folks] As soon as we'd inserted a file reference into descriptor table, another thread could close it. That's fine for the case when all we are doing is returning that descriptor to userland (it's a race, but it's a userland race and there's nothing the kernel can do about it). However, if we follow fd_install() with any kind of access to objects that would be destroyed on close (be it the struct file itself or anything destroyed by its ->release()), we have a UAF. dma_buf_fd() is a combination of reserving a descriptor and fd_install(). gntdev dmabuf_exp_from_pages() calls it and then proceeds to access the objects destroyed on close - starting with gntdev_dmabuf itself. Fix that by doing reserving descriptor before anything else and do fd_install() only when everything had been set up.
EPSS 0.25% · 16.1th percentile
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a240d6e42e28c34fdc34b3a98ca838a31c939901, a240d6e42e28c34fdc34b3a98ca838a31c939901, a240d6e42e28c34fdc34b3a98ca838a31c939901 |
| Linux | Linux | 4.19, 0, 6.1.191 |
| linux | linux_kernel | 4.19, 4.19, 4.19 |
| Linux | Linux | *, *, * |
Timeline
- Aug 19, 2025 CVE Published
- Aug 20, 2025 EPSS Score (30 in total, the first dated here)
- Aug 20, 2025 Coalition ESS Score (13 in total, the first dated here)
- Oct 12, 2025 PoC Published (10 in total, the first dated here)
- Dec 15, 2025 Security Advisory (204 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (180 in total, the first dated here)
- Oct 30, 2026 CVE Updated
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-38595
vulnetix vdb fixes CVE-2025-38595
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-38595/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart