dlm: validate lock modes in recovery messages

Summary

CVECVE-2026-139770
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:20:09 UTC
Updated2026-11-30 14:20:09 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 80edda84148e11a1df4bdf3c963bebb9f1ba5d40 git Not specified
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 ead3d0eec0a7110adfccb46870e25a01cfe106e8 git Not specified
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 dddfdd527a4f015c0205578e7d397f313bdcd4b1 git Not specified
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 c0808860594e7a85c53a84be3bd3d60e79eb0064 git Not specified
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf git Not specified
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 754b20172f449755816c4def9437b4c938a7c6fe git Not specified
CNA Linux Linux affected e7fd41792fc0ee52a05fcaac87511f118328d147 7bf1aca6d626944091a5cb218b4e487547edff0a git Not specified
CNA Linux Linux affected 2.6.19 Not specified
CNA Linux Linux unaffected 2.6.19 semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/dddfdd527a4f015c0205578e7d397f313bdcd4b1 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/ead3d0eec0a7110adfccb46870e25a01cfe106e8 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/754b20172f449755816c4def9437b4c938a7c6fe 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c0808860594e7a85c53a84be3bd3d60e79eb0064 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/7bf1aca6d626944091a5cb218b4e487547edff0a 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/80edda84148e11a1df4bdf3c963bebb9f1ba5d40 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report