{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-99786","id":"CVE-2026-99786","title":"xfrm: retry inexact policy lookup after node reinsertion","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: retry inexact policy lookup after node reinsertion\n\nAn inexact policy lookup first records pointers to candidate hlist heads\nand then traverses the lists.  A concurrent policy insertion can merge\ninexact tree nodes between those operations:\n\n  lookup                         policy insertion\n  ------                         ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: retry inexact policy lookup after node reinsertion\n\nAn inexact policy lookup first records pointers to candidate hlist heads\nand then traverses the lists.  A concurrent policy insertion can merge\ninexact tree nodes between those operations:\n\n  lookup                         policy insertion\n  ------                         ----------------\n  find inexact candidates\n    save obsolete hlist head\n                                 write_seqcount_begin(&bin->count)\n                                 merge inexact tree nodes\n                                   hlist_del_rcu(&policy->bydst)\n                                   reinsert policy->bydst in survivor\n                                 write_seqcount_end(&bin->count)\n  evaluate saved candidate list\n    miss the moved policy\n\nThe merge immediately reinserts the same hlist node into the surviving\ntree node.  RCU keeps the policy alive, but it does not provide a\nconsistent view while its list node is moved.  A lookup that selected the\nobsolete list can observe it empty.  A lookup already traversing a moved\npolicy can instead follow the next pointer rewritten by the reinsertion.\nEither case can return an incorrect IPsec policy result.\n\nThe per-bin sequence counter already brackets calls to\nxfrm_policy_inexact_insert_node(), including node merges.  The read side,\nhowever, currently validates the counter only while searching an\nindividual rb-tree.  A successful search returns without validation, and\nthe later candidate-list traversal is outside that read-side section.\n\nSnapshot the per-bin sequence before discovering candidate heads and\nvalidate it after evaluating all candidate lists.   Retry the lookup if\nthe inexact policy tree changes while it is being searched.","published":"2026-11-20T05:51:47.765Z","updated":"2026-11-20T05:51:47.765Z","reserved":"2026-09-25T10:25:14.434Z","status":"PUBLISHED","rejected":false,"assigner":"Linux","metric":null,"metrics":[],"rating":"unrated","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"9cf545ebd591da673bb6b6c88150212ad83567a9","lessThan":"f10bd6c317cef7aa15e185e514513e8548f9ce77","status":"affected","versionType":"git"},{"version":"9cf545ebd591da673bb6b6c88150212ad83567a9","lessThan":"6f66839895b7e9c2673df5bd9dd8d5a82033c825","status":"affected","versionType":"git"},{"version":"9cf545ebd591da673bb6b6c88150212ad83567a9","lessThan":"50d8f2c52093320c70676e9f8af686ff6740abd0","status":"affected","versionType":"git"},{"version":"9cf545ebd591da673bb6b6c88150212ad83567a9","lessThan":"868f63c8bfafa9b827168c9126f85264c39c02ec","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.0","status":"affected"},{"version":"0","lessThan":"5.0","status":"unaffected","versionType":"semver"},{"version":"6.12.118","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.64","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.5","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc2","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/f10bd6c317cef7aa15e185e514513e8548f9ce77","tags":[]},{"url":"https://git.kernel.org/stable/c/6f66839895b7e9c2673df5bd9dd8d5a82033c825","tags":[]},{"url":"https://git.kernel.org/stable/c/50d8f2c52093320c70676e9f8af686ff6740abd0","tags":[]},{"url":"https://git.kernel.org/stable/c/868f63c8bfafa9b827168c9126f85264c39c02ec","tags":[]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":null,"epssPercentile":null,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-99786","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99786","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-99786","ok":false,"note":"no open-source package data"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-99786","ok":false,"note":"no score yet"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}