linux/net/ncsi
Jian Zhang 5c3398a542 net: ncsi: fix skb leak in error paths
Early return paths in NCSI RX and AEN handlers fail to release
the received skb, resulting in a memory leak.

Specifically, ncsi_aen_handler() returns on invalid AEN packets
without consuming the skb. Similarly, ncsi_rcv_rsp() exits early
when failing to resolve the NCSI device, response handler, or
request, leaving the skb unfreed.

CC: stable@vger.kernel.org
Fixes: 7a82ecf4cf ("net/ncsi: NCSI AEN packet handler")
Fixes: 138635cc27 ("net/ncsi: NCSI response packet handler")
Signed-off-by: Jian Zhang <zhangjian.3032@bytedance.com>
Link: https://patch.msgid.link/20260305060656.3357250-1-zhangjian.3032@bytedance.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2026-03-06 17:34:48 -08:00
..
Kconfig
Makefile
internal.h net: ncsi: Fix buffer overflow in fetching version id 2025-06-12 18:21:59 -07:00
ncsi-aen.c net: ncsi: fix skb leak in error paths 2026-03-06 17:34:48 -08:00
ncsi-cmd.c
ncsi-manage.c Convert 'alloc_obj' family to use the new default GFP_KERNEL argument 2026-02-21 17:09:51 -08:00
ncsi-netlink.c
ncsi-netlink.h
ncsi-pkt.h net: ncsi: Fix GCPS 64-bit member variables 2025-04-15 15:19:55 +02:00
ncsi-rsp.c net: ncsi: fix skb leak in error paths 2026-03-06 17:34:48 -08:00