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

- Priority: **Insufficient evidence**
- Reason: No CVSS vector published; no exploitation reported by the 5 checked sources
- Next step: Check the vendor advisory
- Status: published
- Published: 2026-11-20 · Modified: 2026-11-23
- Aliases: DEBIAN-CVE-2026-99786, UBUNTU-CVE-2026-99786, CGA-3gg3-hfhr-h8x6, CGA-4jc5-37vf-hq4j, CGA-522w-x8r8-6w8m, CGA-5mm7-rm77-2v82, CGA-fqx9-x383-568p, CGA-hhgm-r898-6w48, CGA-j88w-62wx-rpfw, CGA-mc8h-4mf2-2hc2, CGA-mfjh-5v59-qwq8, CGA-wqgw-w57w-45j8, CGA-34vw-w685-p836, CGA-63h2-738m-rxqq, CGA-82cm-9636-x5f4, CGA-99mj-mprq-v7cv, CGA-9jjx-mhhf-hhfx, CGA-mcgp-m5gh-6mm3, CGA-p38j-xph3-q2g9, CGA-j47x-r866-744p, CGA-vq2p-gw3x-rwjc
- Record: https://cvemate.com/vulnerability/CVE-2026-99786 · JSON: https://cvemate.com/vulnerability/CVE-2026-99786/json

## Description

```text
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.
```

## Signals

- CVSS: none published
- EPSS: 0.216%, percentile 12.764%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 178)

- chainguard linux-desktop-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-desktop-7.2-modules (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2 (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-bootc-boot-installed (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-headers (Chainguard): All versions (No fix recorded)
- chainguard linux-server-7.2-modules (Chainguard): All versions (No fix recorded)
- debian linux (Debian): All versions (No fix recorded) \| \< 6.12.118-1 \| \< 7.3.5-1
- debian linux-6.12 (Debian): \< 6.12.118-1~deb12u1
- ubuntu linux (Ubuntu): All versions (No fix recorded)
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/f10bd6c317cef7aa15e185e514513e8548f9ce77>
- <https://git.kernel.org/stable/c/6f66839895b7e9c2673df5bd9dd8d5a82033c825>
- <https://git.kernel.org/stable/c/50d8f2c52093320c70676e9f8af686ff6740abd0>
- <https://git.kernel.org/stable/c/868f63c8bfafa9b827168c9126f85264c39c02ec>
- <https://security-tracker.debian.org/tracker/CVE-2026-99786>
- <https://git.kernel.org/stable/c/a8595be59bd8b4efe12febe24e88be8aaf30408a>
- <https://git.kernel.org/stable/c/e89a27224b3018177a4410042a1a9d77aafc70d1>
- <https://git.kernel.org/stable/c/0dd6f109432ad24422f2b021c05782f06f66fcd9>
- <https://git.kernel.org/stable/c/de8314052f753a6f500c1613c92107709a072575>
- <https://ubuntu.com/security/CVE-2026-99786>
- <https://www.cve.org/CVERecord?id=CVE-2026-99786>
- <https://git.kernel.org/linus/868f63c8bfafa9b827168c9126f85264c39c02ec>

---

Data as of 2026-12-05T04:10:17.695Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
