{"id":"CVE-2026-80845","aliases":["CVE-2026-80845"],"related":[],"kind":"vulnerability","state":"published","title":"xfrm: avoid lock inversion in nat keepalive work","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: avoid lock inversion in nat keepalive work\n\nnat_keepalive_work() walks the state table while xfrm_state_walk()\nholds net->xfrm.xfrm_state_lock. Its callback then acquires x->lock,\nwhich conflicts with the delete path taking the same locks in reverse\norder via xfrm_state_delete() and __xfrm_state_delete(). This creates\nan AB-BA deadlock that is reported by lockdep when a NAT keepalive\nworker races with SA deletion.\n\nFix this by splitting the keepalive walk into two phases. First,\ncollect the candidate states while the walk holds xfrm_state_lock and\ntake a reference on each state. Then, after the walk completes, process\neach collected state and acquire x->lock without nesting it under\nxfrm_state_lock.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nxfrm: avoid lock inversion in nat keepalive work\n\nnat_keepalive_work() walks the state table while xfrm_state_walk()\nholds net->xfrm.xfrm_state_lock. Its callback then acquires x->lock,\nwhich conflicts with the delete path taking the same locks in reverse\norder via xfrm_state_delete() and __xfrm_state_delete(). This creates\nan AB-BA deadlock that is reported by lockdep when a NAT keepalive\nworker races with SA deletion.\n\nFix this by splitting the keepalive walk into two phases. First,\ncollect the candidate states while the walk holds xfrm_state_lock and\ntake a reference on each state. Then, after the walk completes, process\neach collected state and acquire x->lock without nesting it under\nxfrm_state_lock.","source":"cvelist"}],"published":"2026-09-04T15:54:55.489Z","modified":"2026-10-19T09:17:19.983Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae","fixed":"ea09210462316e5235a25eccb11ad0708d86615e","status":"affected"},{"type":"git","introduced":"f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae","fixed":"5c86c895d1cac81a71ead3005084c6265cf6a7a5","status":"affected"},{"type":"git","introduced":"f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae","fixed":"89ef3a2e1e4682ab82b0455ce113f8c39fb9e50d","status":"affected"},{"type":"git","introduced":"f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae","fixed":"a9fa05b7a1246797748d15771052639e0d3cabf1","status":"affected"},{"type":"git","introduced":"f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae","fixed":"763fe700b7c58ad64fe5202c5638848244dd4127","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.12.108","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.49","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.13","lastAffected":"7.1.*","status":"unaffected"},{"type":"semver","introduced":"7.2.3","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ea09210462316e5235a25eccb11ad0708d86615e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5c86c895d1cac81a71ead3005084c6265cf6a7a5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/89ef3a2e1e4682ab82b0455ce113f8c39fb9e50d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a9fa05b7a1246797748d15771052639e0d3cabf1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/763fe700b7c58ad64fe5202c5638848244dd4127","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80845","url":"https://www.cve.org/CVERecord?id=CVE-2026-80845","licence":"CVE Terms of Use","modified":"2026-10-19T08:44:39.455Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80845","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80845","licence":"Public domain","modified":"2026-10-19T09:17:19.983Z"}],"updatedAt":"2026-11-25T22:59:36.348Z","epss":{"score":0.00168,"percentile":0.06334,"date":"2026-12-02T12:00:21.000Z"}}