CVE-2022-50506

Medium

Description

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.

SeverityMedium
CVSS5.5
Exploit probability—
ProductLinux Kernel
PublishedOct 4, 2025
First seenOct 4, 2025

How to fix

Update
  • linux linux_kernel6.0.6 or later

Affected products

ProductAffected versionsFixed in
linux linux_kernel5.18 ≤ v < 6.0.6, 6.16.0.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.