# CVE-2026-53197: xfrm: iptfs: fix ABBA deadlock in iptfs\_destroy\_state()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-25 · Modified: 2026-06-25
- Aliases: UBUNTU-CVE-2026-53197, DEBIAN-CVE-2026-53197, CGA-3mj7-cphw-h5p2, CGA-5qvp-p4c2-j87q, CGA-7qpc-8j5j-rj3r, CGA-c5f2-p4j9-22ww, CGA-j7x3-3wfj-m2g2, CGA-r846-5gxr-rqhf, CGA-rhpx-x749-qf4x, CGA-rhv9-2x92-8gm2
- Record: https://cvemate.com/vulnerability/CVE-2026-53197 · JSON: https://cvemate.com/vulnerability/CVE-2026-53197/json

## Description

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

xfrm: iptfs: fix ABBA deadlock in iptfs_destroy_state()

iptfs_destroy_state() calls hrtimer_cancel() while holding a spinlock
that the timer callback also acquires, leading to an ABBA deadlock on
SMP systems.

For the output timer (iptfs_timer):
  - iptfs_destroy_state() holds x->lock, calls hrtimer_cancel()
  - iptfs_delay_timer() callback takes x->lock

For the drop timer (drop_timer):
  - iptfs_destroy_state() holds drop_lock, calls hrtimer_cancel()
  - iptfs_drop_timer() callback takes drop_lock

Both timers use HRTIMER_MODE_REL_SOFT, so their callbacks run in softirq
context.  When hrtimer_cancel() is called for a soft timer that is
currently executing on another CPU, hrtimer_cancel_wait_running() spins
on softirq_expiry_lock -- the same lock held by the softirq running the
callback.  If the callback is blocked waiting for the spinlock held by
the caller of hrtimer_cancel(), a circular dependency forms:

  CPU 0: holds lock_A -> waits for softirq_expiry_lock
  CPU 1: holds softirq_expiry_lock -> waits for lock_A

Fix by calling hrtimer_cancel() before acquiring the respective locks.
hrtimer_cancel() is safe to call without holding any lock and will wait
for any in-progress callback to complete.  For the output timer, the
lock is still acquired afterwards to drain the packet queue.  For the
drop timer, the lock/unlock pair is removed entirely since it only
existed to serialize with the timer callback, which hrtimer_cancel()
already guarantees.

Found by source code audit.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.093%, percentile 0.575%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 131)

- chainguard linux-aws-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-azure-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-gcp-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-gcp-6.18-bootc-boot-installed (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-6.18 (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-6.18-bootc-boot-installed (Chainguard): \< 6.18.38-r0
- chainguard linux-qemu-melange (Chainguard): \< 6.18.38-r0
- chainguard linux-vmware-6.18 (Chainguard): \< 6.18.38-r0
- debian linux (Debian): \< 7.0.13-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-31.31
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 7.0.0-1012.12
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.14 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.17 (Ubuntu): All versions (No fix recorded)

## References

- <https://git.kernel.org/stable/c/a13ca53e47e500854a3b9ec18b5dc83acfec863e>
- <https://git.kernel.org/stable/c/822b98d354e63e8249e85473c5f3c519f3c9cecc>
- <https://git.kernel.org/stable/c/c8a8a75b733467b00c08b91a38dbaf207a08ed6e>
- <https://ubuntu.com/security/CVE-2026-53197>
- <https://www.cve.org/CVERecord?id=CVE-2026-53197>
- <https://git.kernel.org/linus/c8a8a75b733467b00c08b91a38dbaf207a08ed6e>
- <https://ubuntu.com/security/notices/USN-8726-1>
- <https://ubuntu.com/security/notices/USN-8727-1>
- <https://ubuntu.com/security/notices/USN-8728-1>
- <https://ubuntu.com/security/notices/USN-8760-1>
- <https://ubuntu.com/security/notices/USN-8726-2>
- <https://ubuntu.com/security/notices/USN-8726-3>
- <https://ubuntu.com/security/notices/USN-8800-1>
- <https://ubuntu.com/security/notices/USN-8760-2>
- <https://ubuntu.com/security/notices/USN-8728-2>
- <https://ubuntu.com/security/notices/USN-8726-4>
- <https://ubuntu.com/security/notices/USN-8728-3>
- <https://security-tracker.debian.org/tracker/CVE-2026-53197>

---

Data as of 2026-12-05T04:21:31.527Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
