# CVE-2026-99786: xfrm: retry inexact policy lookup after node reinsertion

- **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-11-20T05:51:47.765Z
- **Modified:** 2026-11-23T09:17:09.040Z

## Who should check

- Anyone running Linux \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< a8595be59bd8b4efe12febe24e88be8aaf30408a; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< e89a27224b3018177a4410042a1a9d77aafc70d1; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 0dd6f109432ad24422f2b021c05782f06f66fcd9; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< de8314052f753a6f500c1613c92107709a072575; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< f10bd6c317cef7aa15e185e514513e8548f9ce77; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 6f66839895b7e9c2673df5bd9dd8d5a82033c825; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 50d8f2c52093320c70676e9f8af686ff6740abd0; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 868f63c8bfafa9b827168c9126f85264c39c02ec
- Anyone running Linux 5.0

## Description

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

xfrm: retry inexact policy lookup after node reinsertion

An inexact policy lookup first records pointers to candidate hlist heads
and then traverses the lists.  A concurrent policy insertion can merge
inexact tree nodes between those operations:

  lookup                         policy insertion
  ------                         ----------------
  find inexact candidates
    save obsolete hlist head
                                 write\_seqcount\_begin(&bin-\>count)
                                 merge inexact tree nodes
                                   hlist\_del\_rcu(&policy-\>bydst)
                                   reinsert policy-\>bydst in survivor
                                 write\_seqcount\_end(&bin-\>count)
  evaluate saved candidate list
    miss the moved policy

The merge immediately reinserts the same hlist node into the surviving
tree node.  RCU keeps the policy alive, but it does not provide a
consistent view while its list node is moved.  A lookup that selected the
obsolete list can observe it empty.  A lookup already traversing a moved
policy can instead follow the next pointer rewritten by the reinsertion.
Either case can return an incorrect IPsec policy result.

The per-bin sequence counter already brackets calls to
xfrm\_policy\_inexact\_insert\_node(), including node merges.  The read side,
however, currently validates the counter only while searching an
individual rb-tree.  A successful search returns without validation, and
the later candidate-list traversal is outside that read-side section.

Snapshot the per-bin sequence before discovering candidate heads and
validate it after evaluating all candidate lists.   Retry the lookup if
the inexact policy tree changes while it is being searched.

## Affected and fixed versions

- Linux: \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< a8595be59bd8b4efe12febe24e88be8aaf30408a; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< e89a27224b3018177a4410042a1a9d77aafc70d1; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 0dd6f109432ad24422f2b021c05782f06f66fcd9; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< de8314052f753a6f500c1613c92107709a072575; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< f10bd6c317cef7aa15e185e514513e8548f9ce77; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 6f66839895b7e9c2673df5bd9dd8d5a82033c825; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 50d8f2c52093320c70676e9f8af686ff6740abd0; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 868f63c8bfafa9b827168c9126f85264c39c02ec (cvelist)
- Linux: 5.0 (cvelist)

## Technologies

Linux kernel

## Mitigation

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

Details: https://flawdb.com/CVE-2026-99786.md
Affected: Linux >= 9cf545ebd591da673bb6b6c88150212ad83567a9, < a8595be59bd8b4efe12febe24e88be8aaf30408a; >= 9cf545ebd591da673bb6b6c88150212ad83567a9, < e89a27224b3018177a4410042a1a9d77aafc70d1; >= 9cf545ebd591da673bb6b6c88150212ad83567a9, < 0dd6f109432ad24422f2b021c05782f06f66fcd9; >= 9cf545ebd591da673bb6b6c…
Fixed in: Linux 0dd6f109432ad24422f2b021c05782f06f66fcd9, Linux 6f66839895b7e9c2673df5bd9dd8d5a82033c825, Linux 50d8f2c52093320c70676e9f8af686ff6740abd0, Linux 868f63c8bfafa9b827168c9126f85264c39c02ec

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

There is no confirmed exploitation: CVE-2026-99786 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-99786?

It has no CVSS score yet. Unknown.

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

Linux \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< a8595be59bd8b4efe12febe24e88be8aaf30408a; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< e89a27224b3018177a4410042a1a9d77aafc70d1; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 0dd6f109432ad24422f2b021c05782f06f66fcd9; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< de8314052f753a6f500c1613c92107709a072575; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< f10bd6c317cef7aa15e185e514513e8548f9ce77; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 6f66839895b7e9c2673df5bd9dd8d5a82033c825; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 50d8f2c52093320c70676e9f8af686ff6740abd0; \>= 9cf545ebd591da673bb6b6c88150212ad83567a9, \< 868f63c8bfafa9b827168c9126f85264c39c02ec; Linux 5.0.

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

Yes. Fixed in Linux 0dd6f109432ad24422f2b021c05782f06f66fcd9, Linux 6f66839895b7e9c2673df5bd9dd8d5a82033c825, Linux 50d8f2c52093320c70676e9f8af686ff6740abd0, Linux 868f63c8bfafa9b827168c9126f85264c39c02ec. Upgrade Linux to 868f63c8bfafa9b827168c9126f85264c39c02ec or later.

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

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/a8595be59bd8b4efe12febe24e88be8aaf30408a>
- other: <https://git.kernel.org/stable/c/e89a27224b3018177a4410042a1a9d77aafc70d1>
- other: <https://git.kernel.org/stable/c/0dd6f109432ad24422f2b021c05782f06f66fcd9>
- other: <https://git.kernel.org/stable/c/de8314052f753a6f500c1613c92107709a072575>
- other: <https://git.kernel.org/stable/c/f10bd6c317cef7aa15e185e514513e8548f9ce77>
- other: <https://git.kernel.org/stable/c/6f66839895b7e9c2673df5bd9dd8d5a82033c825>
- other: <https://git.kernel.org/stable/c/50d8f2c52093320c70676e9f8af686ff6740abd0>
- other: <https://git.kernel.org/stable/c/868f63c8bfafa9b827168c9126f85264c39c02ec>

## 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-99786>
- FIRST EPSS: EPSS scores by FIRST <https://www.first.org/epss/>

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