Linux
xfrm: iptfs: reset runtime state when cloning SAs
In the Linux kernel, the following vulnerability has been resolved: xfrm: iptfs: reset runtime state when cloning SAs iptfs_clone_state() clones the IPTFS mode data with kmemdup(). This copies runtime objects which must not be shared with the original SA, including the embedded sk_buff_head, hrtimers, spinlock, and in-flight reassembly/reorder state. If xfrm_state_migrate() fails after clone_state() but before the later init_state() call has reinitialized those fields, the cloned state can be destroyed by xfrm_state_gc_task() with list and timer state copied from the original SA. With queued packets this lets the clone splice and free skbs owned by the original IPTFS queue, leading to use-after-free and double-free reports in iptfs_destroy_state() and skb release paths. Reinitialize the clone's runtime state before publishing it through x->mode_data. Because clone_state() now publishes a destroyable mode_data object before init_state(), take the mode callback module reference there. Avoid taking it again from __iptfs_init_state() for the same object.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 0e4fbf013fa566f274ce9b4ce698c75b1f998c52, < 9327252e04626d4bb02ca8c0c108fbe8eabf0c5a
- >= 0e4fbf013fa566f274ce9b4ce698c75b1f998c52, < dfb9f6cbfa9826655a49698cf90eb800fce2178e
- >= 0e4fbf013fa566f274ce9b4ce698c75b1f998c52, < 7f83d174073234839aea176f265e517e0d50a1d2
Fixed in 9327252e04626d4bb02ca8c0c108fbe8eabf0c5a, dfb9f6cbfa9826655a49698cf90eb800fce2178e, 7f83d174073234839aea176f265e517e0d50a1d2
- 6.14
Fixed in 0, 6.18.35, 7.0.12, 7.1
Mitigation
Upgrade Linux to 9327252e04626d4bb02ca8c0c108fbe8eabf0c5a or dfb9f6cbfa9826655a49698cf90eb800fce2178e or 7f83d174073234839aea176f265e517e0d50a1d2 or later.
Upgrade Linux to 0 or 6.18.35 or 7.0.12 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.