dlm: fix NULL pointer dereference in dlm_dump_rsb_name()
- State
- Published
- Severity
- Not Scored
- Published
- Nov 30, 2026
- Updated
- Nov 30, 2026
- Reserved
- Nov 30, 2026
Description
In the Linux kernel, the following vulnerability has been resolved:
dlm: fix NULL pointer dereference in dlm_dump_rsb_name()
The function dlm_dump_rsb_name() is called from receive_rcom_lookup() when a debug dump is requested via a special RCOM_LOOKUP message with rc_id == 0xFFFFFFFF.
The resource name passed to dlm_dump_rsb_name() comes from the received message. There is no guarantee that an RSB with this name exists in the local hash table.
dlm_search_rsb_tree() 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, dlm_dump_rsb() 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.
| Product | Versions |
|---|---|
| Linux Linux | 2d90354027ad2011c0c5a2a404fe81afc745c2a7 to before d2a69ff47bce79bdd7d8eb5457270ffabe13165a Affected2d90354027ad2011c0c5a2a404fe81afc745c2a7 to before 11c4327896711406c3756952d86773a4d8cddf0a Affected2d90354027ad2011c0c5a2a404fe81afc745c2a7 to before 7f076bf4adcf05fccff650122dfbe9fdff79ec2b Affected2d90354027ad2011c0c5a2a404fe81afc745c2a7 to before 19982c99a302ab544c69f95d37ca3070c89762d3 Affected |
| Linux Linux | 6.10 Affectedbefore 6.10 Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected |
The record has no CVSS score.
Weaknesses
The record names no weakness.
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.