# CVE-2026-74348: ocfs2/dlm: require a ref for locking\_state debugfs open

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.22% (percentile 7, 2026-11-26)
- **Published:** 2026-08-15T05:58:35.977Z
- **Modified:** 2026-11-06T17:19:46.800Z

## Who should check

- Anyone running Linux \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 6cc93dea4078cbcddee63fa2234e382a76600464; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 90a6512425414098a63fc97b77bed089c75d106b; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 5bee5d5f67aedd26d2b72e00e49dd93331fbcc30; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< aa7883b6a3c76301a3299deb34de948e73bb6a08; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 9c81c1a61a52b6ecf0d14f1dbd95f154a7a9e92a; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< a087b2d3411e7f9df71ba3293596923ee2c70d65; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< a09831214912a1f270663d935613910fafd8d883; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 03ad858ce8064861ea580021976dc19b7aabb549
- Anyone running Linux 2.6.26

## Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2/dlm: require a ref for locking\_state debugfs open

debug\_lockres\_open() copies inode-\>i\_private into struct debug\_lockres and
debug\_lockres\_release() later drops that pointer with dlm\_put().  That
only works if open successfully pins the struct dlm\_ctxt.

Today open calls dlm\_grab(dlm) but ignores its return value.  Once the
last domain unregister has removed the context from dlm\_domains,
dlm\_grab() returns NULL, yet open still stores the raw pointer and returns
success.  The later release path is outside the debugfs removal barrier,
so it can call dlm\_put() after dlm\_free\_ctxt\_mem() has freed the context. 
KASAN reports this as a slab-use-after-free in dlm\_put() called from
debug\_lockres\_release().

Fail the open when dlm\_grab() cannot acquire the reference and unwind the
seq\_file private state before returning.  That keeps locking\_state from
handing out a file descriptor whose release path does not own the
dlm\_ctxt.

The buggy scenario involves two paths, with each column showing the order
within that path:

locking\_state debugfs open:          last domain unregister:
1. debug\_lockres\_open() reads        1. dlm\_unregister\_domain() calls
   inode-\>i\_private.                    dlm\_complete\_dlm\_shutdown().
2. debug\_lockres\_open() calls        2. shutdown removes the dlm\_ctxt from
   dlm\_grab(dlm) and gets NULL.         dlm\_domains.
3. open still stores the raw dlm     3. final teardown reaches
   pointer in dl-\>dl\_ctxt and           dlm\_free\_ctxt\_mem() and frees it.
   returns success.
4. debug\_lockres\_release() later
   calls dlm\_put(dl-\>dl\_ctxt).

Validation reproduced this kernel report:
KASAN slab-use-after-free in dlm\_put+0x82/0x200
RIP: 0033:0x7f4d349bc9e0
The buggy address belongs to the object at ffff888103a3c000 which belongs
to the cache kmalloc-2k of size 2048
The buggy address is located 816 bytes inside of freed 2048-byte region
\[ffff888103a3c000, ffff888103a3c800)
Write of size 4
Call trace:
  dump\_stack\_lvl+0x66/0xa0 (?:?)
  print\_report+0xd0/0x630 (?:?)
  dlm\_put+0x82/0x200 (?:?)
  srso\_alias\_return\_thunk+0x5/0xfbef5 (?:?)
  \_\_virt\_addr\_valid+0x188/0x2f0 (?:?)
  kasan\_report+0xe4/0x120 (?:?)
  kasan\_check\_range+0x105/0x1b0 (?:?)
  debug\_lockres\_release+0x53/0x80 (fs/ocfs2/dlm/dlmdebug.c:587)
  dlm\_put+0x9/0x200 (?:?)
  debug\_lockres\_release+0x5c/0x80 (fs/ocfs2/dlm/dlmdebug.c:587)
  full\_proxy\_release+0x67/0x90 (?:?)
  \_\_fput+0x1df/0x4b0 (?:?)
  do\_raw\_spin\_lock+0x10f/0x1b0 (?:?)
  fput\_close\_sync+0xd2/0x170 (?:?)
  \_\_x64\_sys\_close+0x55/0x90 (?:?)
  do\_syscall\_64+0x10c/0x640 (arch/x86/entry/syscall\_64.c:87)
  irqentry\_exit+0xac/0x6e0 (?:?)
  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f (?:?)
Freed by task stack:
  kasan\_save\_stack+0x33/0x60 (?:?)
  kasan\_save\_track+0x14/0x30 (?:?)
  kasan\_save\_free\_info+0x3b/0x60 (?:?)
  \_\_kasan\_slab\_free+0x5f/0x80 (?:?)
  kfree+0x30f/0x580 (?:?)
  dlm\_put+0x1ce/0x200 (?:?)
  dlm\_unregister\_domain+0xf6/0xb30 (?:?)
  o2cb\_cluster\_disconnect+0x6b/0x90 (?:?)
  ocfs2\_cluster\_disconnect+0x41/0x70 (?:?)
  ocfs2\_dlm\_shutdown+0x1c4/0x220 (?:?)
  ocfs2\_dismount\_volume+0x38a/0x550 (?:?)
  generic\_shutdown\_super+0xc3/0x220 (?:?)
  kill\_block\_super+0x29/0x60 (?:?)
  deactivate\_locked\_super+0x66/0xe0 (?:?)
  cleanup\_mnt+0x13d/0x210 (?:?)
  task\_work\_run+0xfa/0x170 (?:?)
  exit\_to\_user\_mode\_loop+0xd6/0x430 (?:?)
  do\_syscall\_64+0x3cb/0x640 (arch/x86/entry/syscall\_64.c:87)
  entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f (?:?)

## Affected and fixed versions

- Linux: \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 6cc93dea4078cbcddee63fa2234e382a76600464; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 90a6512425414098a63fc97b77bed089c75d106b; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 5bee5d5f67aedd26d2b72e00e49dd93331fbcc30; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< aa7883b6a3c76301a3299deb34de948e73bb6a08; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 9c81c1a61a52b6ecf0d14f1dbd95f154a7a9e92a; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< a087b2d3411e7f9df71ba3293596923ee2c70d65; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< a09831214912a1f270663d935613910fafd8d883; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 03ad858ce8064861ea580021976dc19b7aabb549 (cvelist)
- Linux: 2.6.26 (cvelist)

## Mitigation

- Upgrade Linux to 03ad858ce8064861ea580021976dc19b7aabb549 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-74348. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74348.md
Affected: Linux >= 4e3d24ed1a1285fe3289653aacc965642706bacb, < 6cc93dea4078cbcddee63fa2234e382a76600464; >= 4e3d24ed1a1285fe3289653aacc965642706bacb, < 90a6512425414098a63fc97b77bed089c75d106b; >= 4e3d24ed1a1285fe3289653aacc965642706bacb, < 5bee5d5f67aedd26d2b72e00e49dd93331fbcc30; >= 4e3d24ed1a1285fe3289653…
Fixed in: Linux 6cc93dea4078cbcddee63fa2234e382a76600464, Linux 90a6512425414098a63fc97b77bed089c75d106b, Linux 5bee5d5f67aedd26d2b72e00e49dd93331fbcc30, Linux 9c81c1a61a52b6ecf0d14f1dbd95f154a7a9e92a, Linux 03ad858ce8064861ea580021976dc19b7aabb549

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-74348 being exploited?

There is no confirmed exploitation: CVE-2026-74348 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).

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

It has no CVSS score yet. Unknown.

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

Linux \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 6cc93dea4078cbcddee63fa2234e382a76600464; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 90a6512425414098a63fc97b77bed089c75d106b; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 5bee5d5f67aedd26d2b72e00e49dd93331fbcc30; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< aa7883b6a3c76301a3299deb34de948e73bb6a08; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 9c81c1a61a52b6ecf0d14f1dbd95f154a7a9e92a; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< a087b2d3411e7f9df71ba3293596923ee2c70d65; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< a09831214912a1f270663d935613910fafd8d883; \>= 4e3d24ed1a1285fe3289653aacc965642706bacb, \< 03ad858ce8064861ea580021976dc19b7aabb549; Linux 2.6.26.

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

Yes. Fixed in Linux 6cc93dea4078cbcddee63fa2234e382a76600464, Linux 90a6512425414098a63fc97b77bed089c75d106b, Linux 5bee5d5f67aedd26d2b72e00e49dd93331fbcc30, Linux 9c81c1a61a52b6ecf0d14f1dbd95f154a7a9e92a, Linux 03ad858ce8064861ea580021976dc19b7aabb549. Upgrade Linux to 03ad858ce8064861ea580021976dc19b7aabb549 or later.

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

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/6cc93dea4078cbcddee63fa2234e382a76600464>
- other: <https://git.kernel.org/stable/c/90a6512425414098a63fc97b77bed089c75d106b>
- other: <https://git.kernel.org/stable/c/5bee5d5f67aedd26d2b72e00e49dd93331fbcc30>
- other: <https://git.kernel.org/stable/c/aa7883b6a3c76301a3299deb34de948e73bb6a08>
- other: <https://git.kernel.org/stable/c/9c81c1a61a52b6ecf0d14f1dbd95f154a7a9e92a>
- other: <https://git.kernel.org/stable/c/a087b2d3411e7f9df71ba3293596923ee2c70d65>
- other: <https://git.kernel.org/stable/c/a09831214912a1f270663d935613910fafd8d883>
- other: <https://git.kernel.org/stable/c/03ad858ce8064861ea580021976dc19b7aabb549>

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

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