dlm: validate lock modes in recovery messages
- 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: validate lock modes in recovery messages
The DLM recovery path restores lock state from rcom_lock messages received from remote nodes. The lock modes in these messages are copied directly into the local lkb state without validating that they are within the valid DLM lock mode range.
The rest of the DLM code assumes that lkb_rqmode and lkb_grmode contain valid lock modes. In particular, LVB callback handling in dlm_may_skip_callback() uses lock modes as indexes into the dlm_lvb_operations array:
dlm_lvb_operations[prev_mode + 1][mode + 1]
An invalid lock mode received during recovery could therefore result in an out-of-bounds read during subsequent LVB callback processing.
Validate rl_rqmode and rl_grmode before storing them into the local LKB state. This preserves the lock mode invariant required by the rest of the DLM code.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
| Product | Versions |
|---|---|
| Linux Linux | e7fd41792fc0ee52a05fcaac87511f118328d147 to before 80edda84148e11a1df4bdf3c963bebb9f1ba5d40 Affectede7fd41792fc0ee52a05fcaac87511f118328d147 to before ead3d0eec0a7110adfccb46870e25a01cfe106e8 Affectede7fd41792fc0ee52a05fcaac87511f118328d147 to before dddfdd527a4f015c0205578e7d397f313bdcd4b1 Affectede7fd41792fc0ee52a05fcaac87511f118328d147 to before c0808860594e7a85c53a84be3bd3d60e79eb0064 Affectede7fd41792fc0ee52a05fcaac87511f118328d147 to before 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf Affectede7fd41792fc0ee52a05fcaac87511f118328d147 to before 754b20172f449755816c4def9437b4c938a7c6fe Affectede7fd41792fc0ee52a05fcaac87511f118328d147 to before 7bf1aca6d626944091a5cb218b4e487547edff0a Affected |
| Linux Linux | 2.6.19 Affectedbefore 2.6.19 Not Affected5.15.226 through 5.15.* Not Affected6.1.193 through 6.1.* Not Affected6.6.163 through 6.6.* 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
- https://git.kernel.org/stable/c/80edda84148e11a1df4bdf3c963bebb9f1ba5d40
- https://git.kernel.org/stable/c/ead3d0eec0a7110adfccb46870e25a01cfe106e8
- https://git.kernel.org/stable/c/dddfdd527a4f015c0205578e7d397f313bdcd4b1
- https://git.kernel.org/stable/c/c0808860594e7a85c53a84be3bd3d60e79eb0064
- https://git.kernel.org/stable/c/9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf
- https://git.kernel.org/stable/c/754b20172f449755816c4def9437b4c938a7c6fe
- https://git.kernel.org/stable/c/7bf1aca6d626944091a5cb218b4e487547edff0a
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.