CVE-2026-139769: dlm: fix NULL pointer dereference in dlm_dump_rsb_name()
In the Linux kernel, the following vulnerability has been resolved:
dlm: fix NULL pointer dereference in dlmdumprsbname()
The function dlmdumprsbname() is called from receivercomlookup() when a debug dump is requested via a special RCOMLOOKUP message with rcid == 0xFFFFFFFF.
The resource name passed to dlmdumprsbname() comes from the received message. There is no guarantee that an RSB with this name exists in the local hash table.
dlmsearchrsbtree() returns 0 when the RSB is found and stores a valid pointer in r. When the lookup fails, it returns -EBADR and leaves r NULL.
The current error handling is inverted:
if (!error) goto out;
As a result, dlmdumprsb() is called only when the lookup fails and r is NULL, resulting in a NULL pointer dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.