{"api_version":"1","generated_at":"2026-11-20T07:29:56+00:00","cve":"CVE-2026-99786","urls":{"html":"https://cve.report/CVE-2026-99786","api":"https://cve.report/api/cve/CVE-2026-99786.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-99786","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-99786"},"summary":{"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  ------                         ----------------\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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-20 06:18:17","updated_at":"2026-11-20 06:18:17"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/868f63c8bfafa9b827168c9126f85264c39c02ec","name":"https://git.kernel.org/stable/c/868f63c8bfafa9b827168c9126f85264c39c02ec","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f10bd6c317cef7aa15e185e514513e8548f9ce77","name":"https://git.kernel.org/stable/c/f10bd6c317cef7aa15e185e514513e8548f9ce77","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/6f66839895b7e9c2673df5bd9dd8d5a82033c825","name":"https://git.kernel.org/stable/c/6f66839895b7e9c2673df5bd9dd8d5a82033c825","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/50d8f2c52093320c70676e9f8af686ff6740abd0","name":"https://git.kernel.org/stable/c/50d8f2c52093320c70676e9f8af686ff6740abd0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-99786","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-99786","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9cf545ebd591da673bb6b6c88150212ad83567a9 f10bd6c317cef7aa15e185e514513e8548f9ce77 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9cf545ebd591da673bb6b6c88150212ad83567a9 6f66839895b7e9c2673df5bd9dd8d5a82033c825 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9cf545ebd591da673bb6b6c88150212ad83567a9 50d8f2c52093320c70676e9f8af686ff6740abd0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 9cf545ebd591da673bb6b6c88150212ad83567a9 868f63c8bfafa9b827168c9126f85264c39c02ec git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.0","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.0 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/xfrm/xfrm_policy.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"f10bd6c317cef7aa15e185e514513e8548f9ce77","status":"affected","version":"9cf545ebd591da673bb6b6c88150212ad83567a9","versionType":"git"},{"lessThan":"6f66839895b7e9c2673df5bd9dd8d5a82033c825","status":"affected","version":"9cf545ebd591da673bb6b6c88150212ad83567a9","versionType":"git"},{"lessThan":"50d8f2c52093320c70676e9f8af686ff6740abd0","status":"affected","version":"9cf545ebd591da673bb6b6c88150212ad83567a9","versionType":"git"},{"lessThan":"868f63c8bfafa9b827168c9126f85264c39c02ec","status":"affected","version":"9cf545ebd591da673bb6b6c88150212ad83567a9","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/xfrm/xfrm_policy.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.0"},{"lessThan":"5.0","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"5.0","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"5.0","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"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."}],"providerMetadata":{"dateUpdated":"2026-11-20T05:51:47.765Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/f10bd6c317cef7aa15e185e514513e8548f9ce77"},{"url":"https://git.kernel.org/stable/c/6f66839895b7e9c2673df5bd9dd8d5a82033c825"},{"url":"https://git.kernel.org/stable/c/50d8f2c52093320c70676e9f8af686ff6740abd0"},{"url":"https://git.kernel.org/stable/c/868f63c8bfafa9b827168c9126f85264c39c02ec"}],"title":"xfrm: retry inexact policy lookup after node reinsertion","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-99786","datePublished":"2026-11-20T05:51:47.765Z","dateReserved":"2026-09-25T10:25:14.434Z","dateUpdated":"2026-11-20T05:51:47.765Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-20 06:18:17","lastModifiedDate":"2026-11-20 06:18:17","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"99786","Ordinal":"1","Title":"xfrm: retry inexact policy lookup after node reinsertion","CVE":"CVE-2026-99786","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"99786","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"xfrm: retry inexact policy lookup after node reinsertion"}]}}}