xfrm: Fix dev use-after-free in xfrm async resumption
No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel 6.7, Kernel 8045c0df98d4f14c54e5cb875f1c9c0ce89fe4ff, Kernel fed4d3195a31125566876952ce66113ec1eb9008 and 7 more.
In the Linux kernel, the following vulnerability has been resolved: xfrm: Fix dev use-after-free in xfrm async resumption xfrm async resumption hold skb->dev refcnt until after transport_finish. However, xfrm_rcv_cb may modify skb->dev to tunnel dev without taking device reference, such as vti_rcv_cb. The subsequent async resumption will decrement the tunnel device's reference count, which lead to uaf of tunnel dev and refcnt leak of orig dev as below: unregister_netdevice: waiting for vti1 to become free. Usage count = -2 Stash the original skb->dev to fix refcnt imbalance. The new skb->dev set by xfrm_rcv_cb can race with device teardown. Extend rcu protection over xfrm_rcv_cb and transport_finish to prevent races.
Affected
Vendors, products and packages with version ranges
| Vendor | Product | Versions | Fixed |
|---|---|---|---|
| Linux | Kernel | >=6.6.160 <6.7, >=1c428b03840094410c5fb6a5db30640486bbbfcb <8045c0df98d4f14c54e5cb875f1c9c0ce89fe4ff, >=4236c30b437b80f673b9e08c8fae38b8d471ac9e <fed4d3195a31125566876952ce66113ec1eb9008, >=6.1.191 <6.2, >=6.12.94 <6.12.112, >=6.18.23 <6.18.54, >=6.19.13 <6.20, =4d06caedea587c59cc2cc893ceecc57c75c64312, =5002beda5cac69d522dc54da0d5d463ed9c963d2, =7.0, =94439cbe478b53f92223da9aae95fffb28623c3f, >=0f451b43c88bf2b9c038b414be580efee42e031b <1acd93259b6be269e26be5d71c224bccd1f8352f, >=1c428b03840094410c5fb6a5db30640486bbbfcb <63a30015199912bd5055bead8001b1ae68a67cdb | 6.7, 8045c0df98d4f14c54e5cb875f1c9c0ce89fe4ff, fed4d3195a31125566876952ce66113ec1eb9008, 6.2, 6.12.112, 6.18.54, 6.20, 1acd93259b6be269e26be5d71c224bccd1f8352f, 63a30015199912bd5055bead8001b1ae68a67cdb |
| linux-kernel: Kernel | >=6.12.94 <6.12.112, >=6.18.23 <6.18.54, >=6.19.13 <6.20, >=6.6.160 <6.7, >=7.0.0 <7.1.5, >=6.1.191 <6.2 | 6.12.112, 6.18.54, 6.20, 6.7, 7.1.5, 6.2 |
Timeline
Every event on this vulnerability
Related
Other vulnerabilities in Kernel, strongest first
Embed
A live severity badge for an advisory, README or ticket