CVE-2025-38095
dma-buf: insert memory barrier before updating num_fences
Reported by linux · Published July 3, 2025
In the Linux kernel, the following vulnerability has been resolved: dma-buf: insert memory barrier before updating num_fences smp_store_mb() inserts memory barrier after storing operation. It is different with what the comment is originally aiming so Null pointer dereference can be happened if memory update is reordered.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel6.12 | Amazon Linux | 6.12.30-34.92.amzn2023 |
| kernel-libbpf | Amazon Linux | 6.1.140-154.222.amzn2023 |
| python3-perf6.12 | Amazon Linux | 6.12.30-34.92.amzn2023 |
| kernel-livepatch-6.1.140-154.222 | Amazon Linux | 1.0-0.amzn2023 |
| Linux | Linux | 5.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | a590d0fdbaa56f482ff515e1040b6d9b1b200d63, a590d0fdbaa56f482ff515e1040b6d9b1b200d63, a590d0fdbaa56f482ff515e1040b6d9b1b200d63 |
| Linux | Linux | 5.0, 0, 5.10.241 |
| amazon:2023 | kernel6.12 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | python3-perf6.12 | 0 |
| amazon:2023 | kernel-livepatch-6.1.140-154.222 | 0 |
| Linux | Linux | 6.15, *, * |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-libbpf-static | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | perf6.12 | 0 |
| linux | linux_kernel | 5.0, 5.0, 5.0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel6.12-modules-extra | 0 |
| amazon:2023 | kernel-headers | 0 |
…and 3 more
Timeline
- Jul 2, 2025 CVE Published
- Jul 3, 2025 EPSS Score (30 in total, the first dated here)
- Oct 12, 2025 PoC Published (13 in total, the first dated here)
- Mar 29, 2026 Distribution Patch (222 in total, the first dated here)
- Mar 29, 2026 Security Advisory (235 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-38095
vulnetix vdb fixes CVE-2025-38095
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-38095/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart