CVE-2022-50506NULL Pointer Dereference in Linux

Severity
5.5MEDIUMNVD
EPSS
0.0%
top 95.28%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedOct 4

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.

CVSS vector

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HExploitability: 1.8 | Impact: 3.6

Affected Packages4 packages

NVDlinux/linux_kernel5.186.0.6+1
Debianlinux/linux_kernel< 6.0.6-1+2
CVEListV5linux/linuxc347a787e34cba0e5a80a04082dacaf25910560505580a3bbf3cec677cb00a85dfeb21d6a9b48eaf+2
debiandebian/linux< linux 6.0.6-1 (bookworm)

Patches

🔴Vulnerability Details

2
GHSA
GHSA-2p73-743m-m4r5: In the Linux kernel, the following vulnerability has been resolved: drbd: only clone bio if we have a backing device Commit c347a787e34cb (drbd: set2025-10-04
OSV
CVE-2022-50506: In the Linux kernel, the following vulnerability has been resolved: drbd: only clone bio if we have a backing device Commit c347a787e34cb (drbd: set -2025-10-04

📋Vendor Advisories

2
Red Hat
kernel: drbd: only clone bio if we have a backing device2025-10-04
Debian
CVE-2022-50506: linux - In the Linux kernel, the following vulnerability has been resolved: drbd: only ...2022