CVE-2026-100057: net: erspan: set lltx to avoid sch_direct_xmit deadlock
In the Linux kernel, the following vulnerability has been resolved:
net: erspan: set lltx to avoid schdirectxmit deadlock
The ERSPAN xmit path re-enters the network stack, causing nested acquisition of xmitlock on the underlay device while already holding the ERSPAN device's xmitlock, creating an ABBA deadlock. This happens for both IPv4 ERSPAN (erspanxmit() -> iptunnelxmit()) and IPv6 ERSPAN (ip6erspantunnelxmit() -> ip6tnlxmit()):
schdirectxmit [lock erspan] -> erspanxmit -> iptunnelxmit -> ipoutput -> devqueuexmit -> schdirectxmit [lock underlay]
schdirectxmit [lock erspan] -> ip6erspantunnelxmit -> ip6tnlxmit -> ip6output -> devqueuexmit -> schdirectxmit [lock underlay]
Set dev->lltx = true so HARDTXLOCK() skips the spinlock for ERSPAN. This is safe as the ERSPAN xmit path has no shared mutable state: oseqno is atomic, TX stats are per-CPU u64stats, dstcache is per-CPU, and oflags is no longer modified in the xmit path since commit 9958e69b9893 ("gre: fix ERSPAN oflags race/corruption in xmit and fillinfo"). GRETAP, the sibling device with identical xmit structure, already sets lltx.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1Fixed in 7.3.4-1 - Configuration
Set dev->lltx to true so HARD_TX_LOCK() skips the spinlock for ERSPAN.
Linux kernel ERSPAN device dev->lltx = true