CVE-2026-80845
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
04/09/2026
Last modified:
19/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
xfrm: avoid lock inversion in nat keepalive work<br />
<br />
nat_keepalive_work() walks the state table while xfrm_state_walk()<br />
holds net->xfrm.xfrm_state_lock. Its callback then acquires x->lock,<br />
which conflicts with the delete path taking the same locks in reverse<br />
order via xfrm_state_delete() and __xfrm_state_delete(). This creates<br />
an AB-BA deadlock that is reported by lockdep when a NAT keepalive<br />
worker races with SA deletion.<br />
<br />
Fix this by splitting the keepalive walk into two phases. First,<br />
collect the candidate states while the walk holds xfrm_state_lock and<br />
take a reference on each state. Then, after the walk completes, process<br />
each collected state and acquire x->lock without nesting it under<br />
xfrm_state_lock.
Impact
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/5c86c895d1cac81a71ead3005084c6265cf6a7a5
- https://git.kernel.org/stable/c/763fe700b7c58ad64fe5202c5638848244dd4127
- https://git.kernel.org/stable/c/89ef3a2e1e4682ab82b0455ce113f8c39fb9e50d
- https://git.kernel.org/stable/c/a9fa05b7a1246797748d15771052639e0d3cabf1
- https://git.kernel.org/stable/c/ea09210462316e5235a25eccb11ad0708d86615e


