Hello:
This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabe…@redhat.com>:
On Wed, 25 Nov 2026 10:07:17 +0800 you wrote:
> skb_ext_maybe_cow() re-acquires the SEC_PATH xfrm_state references for a
> copied extension chunk, gated on the source skb's active bit, while the
> release side (__skb_ext_put()) is gated on the chunk's
> offset[SEC_PATH].
>
> __skb_ext_del(SKB_EXT_SEC_PATH) on a shared chunk (refcnt > 1) only
> clears the skb's active bit: the chunk keeps offset[SEC_PATH] and
> sp->len, because the remaining sharers still use them. A later
> skb_ext_add() COWs such a chunk; the copy carries the SEC_PATH data, but
> with the active bit clear no references are taken for it. When the copy
> is freed, __skb_ext_put() puts sp->len references that were never
> acquired, underflowing the refcount of every xfrm_state in the sec_path.
> The state is destroyed while still hashed in the SAD and is dereferenced
> by later packet input. On v7.4-rc4, as an unprivileged user:
>
> [...]
Here is the summary with links:
- [net,v3] net: fix xfrm_state refcount underflow and leak in skb_ext COW
https://git.kernel.org/netdev/net/c/0f48b1d42710
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html