CyberRota Analysis
AI-GeneratedThe vulnerability affects the Linux kernel's xfrm module, where a use-after-free condition can occur due to improper handling of device references during asynchronous resumption. This flaw may lead to a reference count leak and potential denial of service as the system waits for a device to free, impacting network stability. Organizations utilizing Linux kernel versions with xfrm functionality should prioritize patching this vulnerability to mitigate risks associated with network device management.
Original NVD Description
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.