linux/drivers/net
Dan Carpenter d9c70e93ec octeontx2-pf: Fix potential use after free in otx2_tc_add_flow()
This code calls kfree_rcu(new_node, rcu) and then dereferences "new_node"
and then dereferences it on the next line.  Two lines later, we take
a mutex so I don't think this is an RCU safe region.  Re-order it to do
the dereferences before queuing up the free.

Fixes: 68fbff68db ("octeontx2-pf: Add police action for TC flower")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Vadim Fedorenko <vadim.fedorenko@linux.dev>
Link: https://patch.msgid.link/aNKCL1jKwK8GRJHh@stanley.mountain
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
2025-09-25 11:04:34 +02:00
..
arcnet
bonding bonding: don't set oif to bond dev when getting NS target destination 2025-09-17 15:13:51 -07:00
caif
can can: peak_usb: fix shift-out-of-bounds issue 2025-09-19 19:17:37 +02:00
dsa net: dsa: lantiq_gswip: suppress -EINVAL errors for bridge FDB entries added to the CPU port 2025-09-25 10:29:18 +02:00
ethernet octeontx2-pf: Fix potential use after free in otx2_tc_add_flow() 2025-09-25 11:04:34 +02:00
fddi
fjes
hamradio hamradio: ignore ops-locked netdevs 2025-08-08 13:22:28 -07:00
hippi
hyperv net: hv_netvsc: fix loss of early receive events from host during channel open. 2025-08-26 18:15:19 -07:00
ieee802154
ipa ipa: fix compile-testing with qcom-mdt=m 2025-08-04 17:15:15 -07:00
ipvlan
mctp net: mctp: usb: initialise mac header in RX path 2025-09-02 14:48:19 +02:00
mdio net: mdio: mdio-bcm-unimac: Correct rate fallback logic 2025-08-01 14:46:50 -07:00
netdevsim netdevsim: Fix wild pointer access in nsim_queue_free(). 2025-08-13 17:26:39 -07:00
ovpn
pcs net: pcs: rzn1-miic: Correct MODCTRL register offset 2025-09-02 16:37:52 -07:00
phy broadcom: fix support for PTP_EXTTS_REQUEST2 ioctl 2025-09-22 11:36:30 -07:00
plip
ppp ppp: fix memory leak in pad_compress_skb 2025-09-04 07:25:48 -07:00
pse-pd net: pse-pd: pd692x0: Skip power budget configuration when undefined 2025-08-21 07:56:08 -07:00
slip
team
thunderbolt
usb Revert "net: usb: asix: ax88772: drop phylink use in PM to avoid MDIO runtime PM wakeups" 2025-09-11 16:46:04 +02:00
vmxnet3
vxlan vxlan: Fix NPD in {arp,neigh}_reduce() when using nexthop objects 2025-09-02 16:57:00 -07:00
wan net: lapbether: ignore ops-locked netdevs 2025-08-08 13:22:28 -07:00
wireguard wireguard: peer: Replace sockaddr with sockaddr_inet 2025-07-25 15:29:58 -07:00
wireless wifi: iwlwifi: pcie: fix byte count table for some devices 2025-09-15 11:20:47 +03:00
wwan
xen-netback
Kconfig
LICENSE.SRC
Makefile
Space.c
amt.c
bareudp.c
dummy.c
eql.c
geneve.c
gtp.c
ifb.c
loopback.c
macsec.c macsec: sync features on RTM_NEWLINK 2025-09-09 18:28:27 -07:00
macvlan.c
macvtap.c
mdio.c
mhi_net.c
mii.c
net_failover.c
netconsole.c
netkit.c
nlmon.c
ntb_netdev.c
pfcp.c
rionet.c
sungem_phy.c
tap.c
tun.c net: tun: Update napi->skb after XDP process 2025-09-19 16:37:29 -07:00
tun_vnet.h
veth.c
virtio_net.c virtio_net: adjust the execution order of function `virtnet_close` during freeze 2025-08-26 03:38:20 -04:00
vrf.c vrf: Drop existing dst reference in vrf_ip6_input_dst 2025-07-26 11:28:45 -07:00
vsockmon.c
xen-netfront.c