{"id":"CVE-2022-50506","published":"2025-10-04T15:43:54Z","modified":"2026-05-11T19:20:44Z","title":"drbd: only clone bio if we have a backing device","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndrbd: only clone bio if we have a backing device\n\nCommit c347a787e34cb (drbd: set ->bi_bdev in drbd_req_new) moved a\nbio_set_dev call (which has since been removed) to \"earlier\", from\ndrbd_request_prepare to drbd_req_new.\n\nThe problem is that this accesses device->ldev->backing_bdev, which is\nnot NULL-checked at this point. When we don't have an ldev (i.e. when\nthe DRBD device is diskless), this leads to a null pointer deref.\n\nSo, only allocate the private_bio if we actually have a disk. This is\nalso a small optimization, since we don't clone the bio to only to\nimmediately free it again in the diskless case.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0014,"percentile":0.03313,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/05580a3bbf3cec677cb00a85dfeb21d6a9b48eaf","tags":[]},{"url":"https://git.kernel.org/stable/c/6d42ddf7f27b6723549ee6d4c8b1b418b59bf6b5","tags":[]}],"priority":{"score":0.7,"factors":[{"name":"EPSS percentile","points":0.66}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= c347a787e34cba0e5a80a04082dacaf259105605, < 05580a3bbf3cec677cb00a85dfeb21d6a9b48eaf",">= c347a787e34cba0e5a80a04082dacaf259105605, < 6d42ddf7f27b6723549ee6d4c8b1b418b59bf6b5"]},{"vendor":"Linux","product":"Linux","versions":["5.18"]}],"euvd":{"id":"EUVD-2025-32359","exploited":false,"provenance":"source"}}