CVE-2026-80845

xfrm: avoid lock inversion in nat keepalive work

State
Published
Severity
Not scored
Published
Sep 4, 2026
Updated
Oct 19, 2026
Reserved
Aug 26, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

xfrm: avoid lock inversion in nat keepalive work

nat_keepalive_work() walks the state table while xfrm_state_walk() holds net->xfrm.xfrm_state_lock. Its callback then acquires x->lock, which conflicts with the delete path taking the same locks in reverse order via xfrm_state_delete() and __xfrm_state_delete(). This creates an AB-BA deadlock that is reported by lockdep when a NAT keepalive worker races with SA deletion.

Fix this by splitting the keepalive walk into two phases. First, collect the candidate states while the walk holds xfrm_state_lock and take a reference on each state. Then, after the walk completes, process each collected state and acquire x->lock without nesting it under xfrm_state_lock.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae to before ea09210462316e5235a25eccb11ad0708d86615eAffected
  • f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae to before 5c86c895d1cac81a71ead3005084c6265cf6a7a5Affected
  • f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae to before 89ef3a2e1e4682ab82b0455ce113f8c39fb9e50dAffected
  • f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae to before a9fa05b7a1246797748d15771052639e0d3cabf1Affected
  • f531d13bdfe3f4f084aaa8acae2cb0f02295f5ae to before 763fe700b7c58ad64fe5202c5638848244dd4127Affected
LinuxLinux
  • 6.11Affected
  • before 6.11Not affected
  • 6.12.108 through 6.12.*Not affected
  • 6.18.49 through 6.18.*Not affected
  • 7.1.13 through 7.1.*Not affected
  • 7.2.3 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.