# CVE-2026-139770: dlm: validate lock modes in recovery messages

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, no login needed
- **Published:** 2026-11-30T13:37:49.492Z
- **Modified:** 2026-12-01T06:17:48.967Z

## Who should check

- Anyone running Linux \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 80edda84148e11a1df4bdf3c963bebb9f1ba5d40; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< ead3d0eec0a7110adfccb46870e25a01cfe106e8; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< dddfdd527a4f015c0205578e7d397f313bdcd4b1; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< c0808860594e7a85c53a84be3bd3d60e79eb0064; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 754b20172f449755816c4def9437b4c938a7c6fe; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 7bf1aca6d626944091a5cb218b4e487547edff0a
- Anyone running Linux 2.6.19

## 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.

## Affected and fixed versions

- Linux: \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 80edda84148e11a1df4bdf3c963bebb9f1ba5d40; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< ead3d0eec0a7110adfccb46870e25a01cfe106e8; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< dddfdd527a4f015c0205578e7d397f313bdcd4b1; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< c0808860594e7a85c53a84be3bd3d60e79eb0064; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 754b20172f449755816c4def9437b4c938a7c6fe; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 7bf1aca6d626944091a5cb218b4e487547edff0a (cvelist)
- Linux: 2.6.19 (cvelist)

## Technologies

Linux kernel

## Mitigation

- Upgrade Linux to 7bf1aca6d626944091a5cb218b4e487547edff0a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-139770. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-139770.md
Affected: Linux >= e7fd41792fc0ee52a05fcaac87511f118328d147, < 80edda84148e11a1df4bdf3c963bebb9f1ba5d40; >= e7fd41792fc0ee52a05fcaac87511f118328d147, < ead3d0eec0a7110adfccb46870e25a01cfe106e8; >= e7fd41792fc0ee52a05fcaac87511f118328d147, < dddfdd527a4f015c0205578e7d397f313bdcd4b1; >= e7fd41792fc0ee52a05fcaa…
Fixed in: Linux 80edda84148e11a1df4bdf3c963bebb9f1ba5d40, Linux 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf, Linux 754b20172f449755816c4def9437b4c938a7c6fe, Linux 7bf1aca6d626944091a5cb218b4e487547edff0a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-139770 being exploited?

There is no confirmed exploitation: CVE-2026-139770 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

### How serious is CVE-2026-139770?

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

### Which versions are affected by CVE-2026-139770?

Linux \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 80edda84148e11a1df4bdf3c963bebb9f1ba5d40; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< ead3d0eec0a7110adfccb46870e25a01cfe106e8; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< dddfdd527a4f015c0205578e7d397f313bdcd4b1; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< c0808860594e7a85c53a84be3bd3d60e79eb0064; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 754b20172f449755816c4def9437b4c938a7c6fe; \>= e7fd41792fc0ee52a05fcaac87511f118328d147, \< 7bf1aca6d626944091a5cb218b4e487547edff0a; Linux 2.6.19.

### Is there a fix for CVE-2026-139770?

Yes. Fixed in Linux 80edda84148e11a1df4bdf3c963bebb9f1ba5d40, Linux 9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf, Linux 754b20172f449755816c4def9437b4c938a7c6fe, Linux 7bf1aca6d626944091a5cb218b4e487547edff0a. Upgrade Linux to 7bf1aca6d626944091a5cb218b4e487547edff0a or later.

### How do I check if I'm affected by CVE-2026-139770?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/80edda84148e11a1df4bdf3c963bebb9f1ba5d40>
- other: <https://git.kernel.org/stable/c/ead3d0eec0a7110adfccb46870e25a01cfe106e8>
- other: <https://git.kernel.org/stable/c/dddfdd527a4f015c0205578e7d397f313bdcd4b1>
- other: <https://git.kernel.org/stable/c/c0808860594e7a85c53a84be3bd3d60e79eb0064>
- other: <https://git.kernel.org/stable/c/9ae32cfbcb62a23be5e78bd73bea0d7517fa8adf>
- other: <https://git.kernel.org/stable/c/754b20172f449755816c4def9437b4c938a7c6fe>
- other: <https://git.kernel.org/stable/c/7bf1aca6d626944091a5cb218b4e487547edff0a>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-139770>

HTML: <https://flawdb.com/CVE-2026-139770> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-139770>
