# CVE-2026-23285: drbd: fix null-pointer dereference on local read error

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.14%, higher than 3% of CVEs (2026-12-01)
- Published: 2026-03-25T10:26:44.698Z
- Modified: 2026-06-17T10:21:15.373Z
- Weaknesses: CWE-476
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

drbd: fix null-pointer dereference on local read error

In drbd_request_endio(), READ_COMPLETED_WITH_ERROR is passed to
__req_mod() with a NULL peer_device:

  __req_mod(req, what, NULL, &m);

The READ_COMPLETED_WITH_ERROR handler then unconditionally passes this
NULL peer_device to drbd_set_out_of_sync(), which dereferences it,
causing a null-pointer dereference.

Fix this by obtaining the peer_device via first_peer_device(device),
matching how drbd_req_destroy() handles the same situation.

(As written by CVE List.)

## Affected

- Linux Linux: from 0d11f3cf279c5ad20a41f29242f170ba3c02f2da before 6f1d1614f841d91a4169db65812ffd1271735b42; from 0d11f3cf279c5ad20a41f29242f170ba3c02f2da before 1e906c08594c8f9a6a524f38ede2c4e051196106; from 0d11f3cf279c5ad20a41f29242f170ba3c02f2da before 4e8935053ba389ae8d6685c10854d8021931bd89; from 0d11f3cf279c5ad20a41f29242f170ba3c02f2da before 91df51d2df0ca4fd3281f73626341563d64a98a5; from 0d11f3cf279c5ad20a41f29242f170ba3c02f2da before 0d195d3b205ca90db30d70d09d7bb6909aac178f; 6.4 (not affected: before 6.4; from 6.6.130 up to 6.6.*; from 6.12.77 up to 6.12.*; from 6.18.17 up to 6.18.*; from 6.19.7 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.4 before 6.6.130; from 6.7 before 6.12.77; from 6.13 before 6.18.17; from 6.19 before 6.19.7; 7.0

## References

- <https://git.kernel.org/stable/c/6f1d1614f841d91a4169db65812ffd1271735b42> (patch)
- <https://git.kernel.org/stable/c/1e906c08594c8f9a6a524f38ede2c4e051196106> (patch)
- <https://git.kernel.org/stable/c/4e8935053ba389ae8d6685c10854d8021931bd89> (patch)
- <https://git.kernel.org/stable/c/91df51d2df0ca4fd3281f73626341563d64a98a5> (patch)
- <https://git.kernel.org/stable/c/0d195d3b205ca90db30d70d09d7bb6909aac178f> (patch)

## Sources

- CVE List: [CVE-2026-23285](https://www.cve.org/CVERecord?id=CVE-2026-23285), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2026-23285](https://nvd.nist.gov/vuln/detail/CVE-2026-23285), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-23285 · Whole record: https://cve.day/CVE-2026-23285.json · Rebuilt by cve.day 2026-11-25T22:59:16.652Z
