CVE-2022-50506: drbd: only clone bio if we have a backing device

Published Oct 4, 2025
·
Updated

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

drbd: only clone bio if we have a backing device

Commit c347a787e34cb (drbd: set ->bibdev in drbdreqnew) moved a biosetdev call (which has since been removed) to "earlier", from drbdrequestprepare to drbdreqnew.

The problem is that this accesses device->ldev->backingbdev, 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 privatebio 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.

Affected Software

3 affected components
Linux Kernel
Linux Linux kernel>=5.18<6.0.6
Linux Linux kernel=6.1-rc1

Event History

Oct 4, 2025
CVE Published
via MITRE·03:43 PM
Data Sourced
via MITRE·03:43 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2022-50506?

CVE-2022-50506 is classified as a low severity vulnerability in the Linux kernel.

2

How do I fix CVE-2022-50506?

To mitigate CVE-2022-50506, users should update their Linux kernel to a version that includes the fix for this vulnerability.

3

What components are affected by CVE-2022-50506?

CVE-2022-50506 specifically affects the Distributed Replicated Block Device (DRBD) functionality within the Linux kernel.

4

What happens if CVE-2022-50506 is exploited?

Exploitation of CVE-2022-50506 could potentially lead to inconsistencies in data replication, impacting the reliability of the DRBD service.

5

When was CVE-2022-50506 published?

CVE-2022-50506 was published in December 2022 as part of the ongoing security efforts for the Linux kernel.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203