All of lore.kernel.org
 help / color / mirror / Atom feed
From: patchwork-bot+netdevbpf@kernel.org
To: Henry Martin <bsdhenrymartin@gmail.com>
Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, fw@strlen.de, steffen.klassert@secunet.com,
	herbert@gondor.apana.org.au, horms@kernel.org,
	netdev@vger.kernel.org, security@kernel.org,
	stable@vger.kernel.org
Subject: Re: [PATCH net v3] net: fix xfrm_state refcount underflow and leak in skb_ext COW
Date: Wed, 02 Dec 2026 12:40:04 +0000	[thread overview]
Message-ID: <179621520400.1432519.15947767262810728462.git-patchwork-notify@kernel.org> (raw)
In-Reply-To: <20261125020718.261041-1-bsdhenrymartin@gmail.com>

Hello:

This patch was applied to netdev/net.git (main)
by Paolo Abeni <pabeni@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



      reply	other threads:[~2026-12-02 12:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-25  2:07 [PATCH net v3] net: fix xfrm_state refcount underflow and leak in skb_ext COW Henry Martin
2026-12-02 12:40 ` patchwork-bot+netdevbpf [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179621520400.1432519.15947767262810728462.git-patchwork-notify@kernel.org \
    --to=patchwork-bot+netdevbpf@kernel.org \
    --cc=bsdhenrymartin@gmail.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=fw@strlen.de \
    --cc=herbert@gondor.apana.org.au \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=security@kernel.org \
    --cc=stable@vger.kernel.org \
    --cc=steffen.klassert@secunet.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.