# CVE-2025-38095: dma-buf: insert memory barrier before updating num\_fences

- Priority: **Routine**
- Reason: Not severe (CVSS 7.8, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-07-03 · Modified: 2026-10-15
- Aliases: UBUNTU-CVE-2025-38095, DEBIAN-CVE-2025-38095
- Record: https://cvemate.com/vulnerability/CVE-2025-38095 · JSON: https://cvemate.com/vulnerability/CVE-2025-38095/json

## Description

```text
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.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.226%, percentile 14.213%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 145)

- debian linux (Debian): \< 6.1.140-1 \| \< 6.12.30-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-163.173 \| \< 6.8.0-100.100
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104 \| \< 6.8.0-1046.49
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1097.104~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): \< 6.14.0-1011.11~24.04.1
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1046.49~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1097.104+fips1 \| \< 6.8.0-1046.49+fips1
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.15.0-1101.110 \| \< 6.8.0-1046.52
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 41)

- <https://git.kernel.org/stable/c/90eb79c4ed98a4e24a62ccf61c199ab0f680fa8f>
- <https://git.kernel.org/stable/c/d0b7f11dd68b593bd970e5735be00e8d89bace30>
- <https://git.kernel.org/stable/c/3becc659f9cb76b481ad1fb71f54d5c8d6332d3f>
- <https://git.kernel.org/stable/c/c9d2b9a80d06a58f37e0dc8c827075639b443927>
- <https://git.kernel.org/stable/c/fe1bebd0edb22e3536cbc920ec713331d1367ad4>
- <https://git.kernel.org/stable/c/08680c4dadc6e736c75bc2409d833f03f9003c51>
- <https://git.kernel.org/stable/c/72c7d62583ebce7baeb61acce6057c361f73be4a>
- <https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html>
- <https://lists.debian.org/debian-lts-announce/2025/08/msg00010.html>
- <https://ubuntu.com/security/CVE-2025-38095>
- <https://www.cve.org/CVERecord?id=CVE-2025-38095>
- <https://git.kernel.org/linus/72c7d62583ebce7baeb61acce6057c361f73be4a>
- <https://ubuntu.com/security/notices/USN-7699-1>
- <https://ubuntu.com/security/notices/USN-7699-2>
- <https://ubuntu.com/security/notices/USN-7721-1>
- <https://ubuntu.com/security/notices/USN-7909-1>
- <https://ubuntu.com/security/notices/USN-7909-2>
- <https://ubuntu.com/security/notices/USN-7909-3>
- <https://ubuntu.com/security/notices/USN-7910-1>
- <https://ubuntu.com/security/notices/USN-7909-4>

---

Data as of 2026-12-05T05:08:18.555Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
