CVE-2022-50506

drbd: only clone bio if we have a backing device

published October 4, 2025

CVSS
—
EPSS
0%
Percentile
2.8
In the wild
Unconfirmed
What it is

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

drbd: only clone bio if we have a backing device

Commit c347a787e34cb (drbd: set ->bi_bdev in drbd_req_new) moved a

bio_set_dev call (which has since been removed) to "earlier", from

drbd_request_prepare to drbd_req_new.

The problem is that this accesses device->ldev->backing_bdev, which is

not NULL-checked at this point. When we don't have an ldev (i.e. when

the DRBD device is diskless), this leads to a null pointer deref.

So, only allocate the private_bio if we actually have a disk. This is

also a small optimization, since we don't clone the bio to only to

immediately free it again in the diskless case.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00137 · 2.8th percentile
Published
2025-10-04T15:43Z
EPSS history
Timeline
  • 04 OCT 15:43Z
    drbd: only clone bio if we have a backing device
    cvelistv5