mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH net 0/2] pfcp: fix two bugs in the receive path
@ 2026-09-30 12:48 Haishuang Yan
  2026-09-30 12:48 ` [PATCH net 1/2] pfcp: fix metadata_dst leak in pfcp_encap_recv() Haishuang Yan
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Haishuang Yan @ 2026-09-30 12:48 UTC (permalink / raw)
  To: netdev
  Cc: Andrew Lunn, David S . Miller, Eric Dumazet, Jakub Kicinski,
	Paolo Abeni, Simon Horman, Michal Swiatkowski, Alexander Lobakin,
	Marcin Szycik, linux-kernel, Haishuang Yan

This series fixes two bugs in pfcp_encap_recv(), both introduced when
the receive path started filling in PFCP tunnel metadata.

Patch 1 fixes a metadata_dst leak when iptunnel_pull_header() fails
after tun_dst has been allocated.

Patch 2 makes sure the SEID is in the linear area before it is read, so
that a short packet with the S flag set cannot make the driver read
beyond the end of the packet data.

Haishuang Yan (2):
  pfcp: fix metadata_dst leak in pfcp_encap_recv()
  pfcp: make sure the SEID is linear before reading it

 drivers/net/pfcp.c | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

-- 
2.43.0




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-09-30 15:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-30 12:48 [PATCH net 0/2] pfcp: fix two bugs in the receive path Haishuang Yan
2026-09-30 12:48 ` [PATCH net 1/2] pfcp: fix metadata_dst leak in pfcp_encap_recv() Haishuang Yan
2026-09-30 12:48 ` [PATCH net 2/2] pfcp: make sure the SEID is linear before reading it Haishuang Yan
2026-09-30 15:24 ` [PATCH net 0/2] pfcp: fix two bugs in the receive path netdev-bot+sinfo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®