{"id":"CVE-2025-38708","aliases":["CVE-2025-38708"],"related":[],"kind":"vulnerability","state":"published","title":"drbd: add missing kref_get in handle_write_conflicts","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrbd: add missing kref_get in handle_write_conflicts\n\nWith `two-primaries` enabled, DRBD tries to detect \"concurrent\" writes\nand handle write conflicts, so that even if you write to the same sector\nsimultaneously on both nodes, they end up with the identical data once\nthe writes are completed.\n\nIn handling \"superseeded\" writes, we forgot a kref_get,\nresulting in a premature drbd_destroy_device and use after free,\nand further to kernel crashes with symptoms.\n\nRelevance: No one should use DRBD as a random data generator, and apparently\nall users of \"two-primaries\" handle concurrent writes correctly on layer up.\nThat is cluster file systems use some distributed lock manager,\nand live migration in virtualization environments stops writes on one node\nbefore starting writes on the other node.\n\nWhich means that other than for \"test cases\",\nthis code path is never taken in real life.\n\nFYI, in DRBD 9, things are handled differently nowadays.  We still detect\n\"write conflicts\", but no longer try to be smart about them.\nWe decided to disconnect hard instead: upper layers must not submit concurrent\nwrites. If they do, that's their fault.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrbd: add missing kref_get in handle_write_conflicts\n\nWith `two-primaries` enabled, DRBD tries to detect \"concurrent\" writes\nand handle write conflicts, so that even if you write to the same sector\nsimultaneously on both nodes, they end up with the identical data once\nthe writes are completed.\n\nIn handling \"superseeded\" writes, we forgot a kref_get,\nresulting in a premature drbd_destroy_device and use after free,\nand further to kernel crashes with symptoms.\n\nRelevance: No one should use DRBD as a random data generator, and apparently\nall users of \"two-primaries\" handle concurrent writes correctly on layer up.\nThat is cluster file systems use some distributed lock manager,\nand live migration in virtualization environments stops writes on one node\nbefore starting writes on the other node.\n\nWhich means that other than for \"test cases\",\nthis code path is never taken in real life.\n\nFYI, in DRBD 9, things are handled differently nowadays.  We still detect\n\"write conflicts\", but no longer try to be smart about them.\nWe decided to disconnect hard instead: upper layers must not submit concurrent\nwrites. If they do, that's their fault.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndrbd: añadir kref_get faltante en handle_write_conflicts\n\nCon 'two-primaries' habilitado, DRBD intenta detectar escrituras 'concurrentes' y manejar conflictos de escritura, de modo que incluso si se escribe en el mismo sector simultáneamente en ambos nodos, terminan con los datos idénticos una vez que las escrituras se completan.\n\nAl manejar escrituras 'superpuestas', olvidamos un kref_get, lo que resultó en un drbd_destroy_device prematuro y uso después de liberar, y además en fallos del kernel con síntomas.\n\nRelevancia: Nadie debería usar DRBD como un generador de datos aleatorios, y aparentemente todos los usuarios de 'two-primaries' manejan las escrituras concurrentes correctamente en la capa superior. Es decir, los sistemas de archivos en clúster usan algún gestor de bloqueo distribuido, y la migración en vivo en entornos de virtualización detiene las escrituras en un nodo antes de iniciar escrituras en el otro nodo.\n\nLo que significa que, aparte de para 'casos de prueba', esta ruta de código nunca se toma en la vida real.\n\nPara su información, en DRBD 9, las cosas se manejan de manera diferente hoy en día. Todavía detectamos 'conflictos de escritura', pero ya no intentamos ser inteligentes al respecto. Decidimos desconectar de forma contundente en su lugar: las capas superiores no deben enviar escrituras concurrentes. Si lo hacen, es su culpa.","source":"nvd"}],"published":"2025-09-04T15:32:59.108Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"0336bfe9c237476bd7c45605a36ca79c2bca62e5","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"810cd546a29bfac90ed1328ea01d693d4bd11cb1","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"84ef8dd3238330d1795745ece83b19f0295751bf","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"57418de35420cedab035aa1da8a26c0499b7f575","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"9f53b2433ad248cd3342cc345f56f5c7904bd8c4","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"7d483ad300fc0a06f69b019dda8f74970714baf8","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"46e3763dcae0ffcf8fcfaff4fc10a90a92ffdd89","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"3a896498f6f577e57bf26aaa93b48c22b6d20c20","status":"affected"},{"type":"git","introduced":"668700b40a7c8727bbd2b3fd4fd22e0ce3f1aeb6","fixed":"00c9c9628b49e368d140cfa61d7df9b8922ec2a8","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.5","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.5","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.43","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.15.11","lastAffected":"6.15.*","status":"unaffected"},{"type":"semver","introduced":"6.16.2","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.5","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.43"},{"status":"affected","introduced":"6.13","fixed":"6.15.11"},{"status":"affected","introduced":"6.16","fixed":"6.16.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0336bfe9c237476bd7c45605a36ca79c2bca62e5","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/810cd546a29bfac90ed1328ea01d693d4bd11cb1","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/84ef8dd3238330d1795745ece83b19f0295751bf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57418de35420cedab035aa1da8a26c0499b7f575","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f53b2433ad248cd3342cc345f56f5c7904bd8c4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d483ad300fc0a06f69b019dda8f74970714baf8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46e3763dcae0ffcf8fcfaff4fc10a90a92ffdd89","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3a896498f6f577e57bf26aaa93b48c22b6d20c20","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00c9c9628b49e368d140cfa61d7df9b8922ec2a8","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-38708","url":"https://www.cve.org/CVERecord?id=CVE-2025-38708","licence":"CVE Terms of Use","modified":"2026-10-15T01:07:44.390Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-38708","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-38708","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.150Z","epss":{"score":0.00419,"percentile":0.38151,"date":"2026-12-01T12:00:22.000Z"}}