# CVE-2026-74513: dibs: fix use-after-free of dmb\_node in loopback attach/detach/unregister

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.17% (percentile 4, 2026-11-26)
- **Published:** 2026-08-15T12:27:34.329Z
- **Modified:** 2026-10-21T13:19:45.107Z

## Who should check

- Anyone running Linux \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< 90b2166605a7476007f7c013521d30b0be557cac; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< c0837aeace96152d14b17fdd19d70102b6631a7d; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< 48c073f88c93707089a4214f21cb4c3de5aea6e4; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< a10ea943356b9d70c5616a0a06f6fa97cfdaccb1
- Anyone running Linux 6.10

## Description

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

dibs: fix use-after-free of dmb\_node in loopback attach/detach/unregister

dibs\_lo\_attach\_dmb(), dibs\_lo\_detach\_dmb() and dibs\_lo\_unregister\_dmb()
look up the dmb\_node under dmb\_ht\_lock, drop the lock and only then
operate on the node's refcount. Nothing keeps the node alive across
that window: \_\_dibs\_lo\_unregister\_dmb() removes the node from the hash
table under the write lock and immediately frees it.

A concurrent final put can therefore free the node between the lookup
and the refcount operation:

CPU0 (attach)                     CPU1 (owner unregisters)

read\_lock\_bh(&dmb\_ht\_lock)
find dmb\_node (refcnt == 1)
read\_unlock\_bh(&dmb\_ht\_lock)
                                  refcount\_dec\_and\_test() 1 -\> 0
                                  write\_lock\_bh(&dmb\_ht\_lock)
                                  hash\_del(&dmb\_node-\>list)
                                  write\_unlock\_bh(&dmb\_ht\_lock)
                                  kfree(dmb\_node)
refcount\_inc\_not\_zero(&dmb\_node-\>refcnt)  \<-- use-after-free

The same window exists for the refcount\_dec\_and\_test() calls in the
detach and unregister paths.

Close the race structurally by making hash table membership and the
refcount transitions atomic with respect to each other:

- Perform the final refcount\_dec\_and\_test() and hash\_del() in a single
  dmb\_ht\_lock write-side critical section, in both the unregister and
  the detach path. Freeing the node still happens after the lock is
  dropped, which is safe because a node whose refcount reached zero has
  left the hash table and can no longer be found.

- This establishes the invariant that any node found in the hash table
  holds at least one reference, and that the final reference can only
  be dropped under the write lock. dibs\_lo\_attach\_dmb() can thus take
  its reference with a plain refcount\_inc() while still holding the
  read lock; refcount\_inc\_not\_zero() is no longer needed.

\_\_dibs\_lo\_unregister\_dmb() no longer touches the hash table and is
renamed to dibs\_lo\_free\_dmb() accordingly.

Note: commit cc21191b584c ("dibs: Move data path to dibs layer") moved
the code to its current location; the race was introduced earlier by
commit c3a910f2380f ("net/smc: implement DMB-merged operations of
loopback-ism").

Tested SMC-D via ISM and dibs loopback.

## Affected and fixed versions

- Linux: \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< 90b2166605a7476007f7c013521d30b0be557cac; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< c0837aeace96152d14b17fdd19d70102b6631a7d; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< 48c073f88c93707089a4214f21cb4c3de5aea6e4; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< a10ea943356b9d70c5616a0a06f6fa97cfdaccb1 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-74513.md
Affected: Linux >= c3a910f2380fe294d14e42af66af3d3eed8fecbf, < 90b2166605a7476007f7c013521d30b0be557cac; >= c3a910f2380fe294d14e42af66af3d3eed8fecbf, < c0837aeace96152d14b17fdd19d70102b6631a7d; >= c3a910f2380fe294d14e42af66af3d3eed8fecbf, < 48c073f88c93707089a4214f21cb4c3de5aea6e4; >= c3a910f2380fe294d14e42a…
Fixed in: Linux 90b2166605a7476007f7c013521d30b0be557cac, Linux 48c073f88c93707089a4214f21cb4c3de5aea6e4

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

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

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

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< 90b2166605a7476007f7c013521d30b0be557cac; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< c0837aeace96152d14b17fdd19d70102b6631a7d; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< 48c073f88c93707089a4214f21cb4c3de5aea6e4; \>= c3a910f2380fe294d14e42af66af3d3eed8fecbf, \< a10ea943356b9d70c5616a0a06f6fa97cfdaccb1; Linux 6.10.

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

Yes. Fixed in Linux 90b2166605a7476007f7c013521d30b0be557cac, Linux 48c073f88c93707089a4214f21cb4c3de5aea6e4. No fix listed yet: follow the vendor advisory.

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

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/90b2166605a7476007f7c013521d30b0be557cac>
- other: <https://git.kernel.org/stable/c/c0837aeace96152d14b17fdd19d70102b6631a7d>
- other: <https://git.kernel.org/stable/c/48c073f88c93707089a4214f21cb4c3de5aea6e4>
- other: <https://git.kernel.org/stable/c/a10ea943356b9d70c5616a0a06f6fa97cfdaccb1>

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

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