CVE-2025-38708
kernel: drbd: add missing kref_get in handle_write_conflicts
Overview
Description
In the Linux kernel, the following vulnerability has been resolved:
drbd: add missing kref_get in handle_write_conflicts
With two-primaries enabled, DRBD tries to detect "concurrent" writes
and handle write conflicts, so that even if you write to the same sector
simultaneously on both nodes, they end up with the identical data once
the writes are completed.
In handling "superseeded" writes, we forgot a kref_get, resulting in a premature drbd_destroy_device and use after free, and further to kernel crashes with symptoms.
Relevance: No one should use DRBD as a random data generator, and apparently all users of "two-primaries" handle concurrent writes correctly on layer up. That is cluster file systems use some distributed lock manager, and live migration in virtualization environments stops writes on one node before starting writes on the other node.
Which means that other than for "test cases", this code path is never taken in real life.
FYI, in DRBD 9, things are handled differently nowadays. We still detect "write conflicts", but no longer try to be smart about them. We decided to disconnect hard instead: upper layers must not submit concurrent writes. If they do, that's their fault.
Source: OX vulnerability database
Severity
7.8 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weakness: CWE-416
Affected packages · 0
No registry package. This ID affects operating system packages only.
Operating systems · 68 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | kernel | 0:6.6.104.2-1.azl3 |
Oracle Linux 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 7 | kernel-uek +7 | 5.4.17-2136.348.3.el7uek |
| 8 | bpftool +13 | 5.15.0-314.193.5.3.el8uek |
| 9 | bpftool +3 | 5.15.0-314.193.5.3.el9uek |
| 9 | kernel-uek +34 | 6.12.0-104.43.4.2.el9uek |
Photon OS 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | bpftool +9 | 5.10.241-1.ph4 |
| 5.0 | bpftool +10 | 6.1.153-1.ph5 |
amazon linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | kernel-livepatch-6-1-150-174-273 +1 | 1:1.0-0.amzn2023 |
| 2023 | bpftool +20 | 1:6.1.150-174.273.amzn2023 |
| 2023 | bpftool6-12 +20 | 1:6.12.46-66.121.amzn2023 |
debian 4 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux | 5.10.244-1 |
| 11 | linux-6-1 | 6.1.153-1~deb11u1 |
| 12 | linux | 6.1.153-1 |
| 13 | linux | 6.12.43-1 |
| 14 | linux | 6.16.3-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| linux | 1 |
root.io debian 3 releases · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 11 | linux +1 | 5.10.244-1 |
| 12 | linux +1 | 6.1.153-1 |
| 13 | rootio-linux | 6.12.43-1 |
root.io ubuntu 2 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 22.04 | linux +1 | 5.15.0-163.173 |
| 24.04 | linux +1 | 6.8.0-100.100 |
ubuntu 3 releases · 37 packages
| Release | Package | Fixed in |
|---|---|---|
| 20.04-ESM | linux-nvidia-tegra-5-15 | 5.15.0-1049.49~20.04.1 |
| 20.04-ESM | linux-ibm-5-15 | 5.15.0-1091.94~20.04.1 |
| 20.04-ESM | linux-riscv-5-15 | 5.15.0-1092.96~20.04.1 |
| 20.04-ESM | linux-intel-iotg-5-15 | 5.15.0-1092.98~20.04.1 |
| 20.04-ESM | linux-oracle-5-15 | 5.15.0-1094.100~20.04.1 |
| 20.04-ESM | linux-aws-5-15 | 5.15.0-1097.104~20.04.1 |
41 more rows
References
- access.redhat.com https://access.redhat.com/security/cve/CVE-2025-38708
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-032379.html
- cert-portal.siemens.com https://cert-portal.siemens.com/productcert/html/ssa-082556.html
- git.kernel.org https://git.kernel.org/linus/00c9c9628b49e368d140cfa61d7df9b8922ec2a8 (6.17-rc1)
- git.kernel.org https://git.kernel.org/stable/c/00c9c9628b49e368d140cfa61d7df9b8922ec2a8
- git.kernel.org https://git.kernel.org/stable/c/0336bfe9c237476bd7c45605a36ca79c2bca62e5
- git.kernel.org https://git.kernel.org/stable/c/3a896498f6f577e57bf26aaa93b48c22b6d20c20
- git.kernel.org https://git.kernel.org/stable/c/46e3763dcae0ffcf8fcfaff4fc10a90a92ffdd89
- git.kernel.org https://git.kernel.org/stable/c/57418de35420cedab035aa1da8a26c0499b7f575
- git.kernel.org https://git.kernel.org/stable/c/7d483ad300fc0a06f69b019dda8f74970714baf8
Show all 45 references
- git.kernel.org https://git.kernel.org/stable/c/810cd546a29bfac90ed1328ea01d693d4bd11cb1
- git.kernel.org https://git.kernel.org/stable/c/84ef8dd3238330d1795745ece83b19f0295751bf
- git.kernel.org https://git.kernel.org/stable/c/9f53b2433ad248cd3342cc345f56f5c7904bd8c4
- linux.oracle.com https://linux.oracle.com/cve/CVE-2025-38708.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2025-25757.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html
- lists.debian.org https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
- lore.kernel.org https://lore.kernel.org/linux-cve-announce/2025090455-CVE-2025-38708-6792@gregkh/T
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2025-38708
- ubuntu.com https://ubuntu.com/security/notices/USN-7909-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7909-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7909-3
- ubuntu.com https://ubuntu.com/security/notices/USN-7909-4
- ubuntu.com https://ubuntu.com/security/notices/USN-7909-5
- ubuntu.com https://ubuntu.com/security/notices/USN-7910-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7910-2
- ubuntu.com https://ubuntu.com/security/notices/USN-7933-1
- ubuntu.com https://ubuntu.com/security/notices/USN-7938-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-4
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-5
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-6
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-7
- ubuntu.com https://ubuntu.com/security/notices/USN-8028-8
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8031-3
- ubuntu.com https://ubuntu.com/security/notices/USN-8052-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8052-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8074-1
- ubuntu.com https://ubuntu.com/security/notices/USN-8074-2
- ubuntu.com https://ubuntu.com/security/notices/USN-8126-1
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2025-38708
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.