linux-stable/net
Dmitry Safonov ebaa7d3c26 net/tcp_ao: Don't leak ao_info on error-path
commit f9ae848904 upstream.

It seems I introduced it together with TCP_AO_CMDF_AO_REQUIRED, on
version 5 [1] of TCP-AO patches. Quite frustrative that having all these
selftests that I've written, running kmemtest & kcov was always in todo.

[1]: https://lore.kernel.org/netdev/20230215183335.800122-5-dima@arista.com/

Reported-by: Jakub Kicinski <kuba@kernel.org>
Closes: https://lore.kernel.org/netdev/20240617072451.1403e1d2@kernel.org/
Fixes: 0aadc73995 ("net/tcp: Prevent TCP-MD5 with TCP-AO being set")
Cc: stable@vger.kernel.org
Signed-off-by: Dmitry Safonov <0x7f454c46@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240619-tcp-ao-required-leak-v1-1-6408f3c94247@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-06-27 13:52:29 +02:00
..
6lowpan
9p net/9p: fix uninit-value in p9_client_rpc() 2024-06-16 13:51:05 +02:00
802
8021q net: gro: fix udp bad offset in socket lookup by adding {inner_}network_offset to napi_gro_cb 2024-05-02 11:02:48 +02:00
appletalk appletalk: Improve handling of broadcast packets 2024-05-08 12:17:19 +01:00
atm inet: introduce dst_rtable() helper 2024-06-12 11:39:55 +02:00
ax25 ax25: Replace kfree() in ax25_dev_free() with ax25_dev_put() 2024-06-21 14:40:03 +02:00
batman-adv batman-adv: bypass empty buckets in batadv_purge_orig_ref() 2024-06-27 13:52:13 +02:00
bluetooth Bluetooth: fix connection setup in l2cap_connect 2024-06-21 14:40:22 +02:00
bpf bpf: Set run context for rawtp test_run callback 2024-06-21 14:40:05 +02:00
bridge net: bridge: mst: fix suspicious rcu usage in br_mst_set_state 2024-06-21 14:40:25 +02:00
caif
can
ceph
core net: do not leave a dangling sk pointer, when socket creation fails 2024-06-27 13:52:27 +02:00
dcb
dccp Kbuild updates for v6.9 2024-03-21 14:41:00 -07:00
devlink devlink: use kvzalloc() to allocate devlink instance resources 2024-06-27 13:52:12 +02:00
dns_resolver
dsa net: dsa: Leverage core stats allocator 2024-03-07 20:37:13 -08:00
ethernet netkit: Fix pkt_type override upon netkit pass verdict 2024-06-12 11:39:48 +02:00
ethtool net: ethtool: fix the error condition in ethtool_get_phy_stats_ethtool() 2024-06-21 14:40:10 +02:00
handshake
hsr hsr: Simplify code for announcing HSR nodes timer setup 2024-05-08 18:56:30 -07:00
ieee802154 Merge tag 'ieee802154-for-net-next-2024-03-07' of git://git.kernel.org/pub/scm/linux/kernel/git/wpan/wpan-next 2024-03-08 20:35:33 -08:00
ife
ipv4 net/tcp_ao: Don't leak ao_info on error-path 2024-06-27 13:52:29 +02:00
ipv6 seg6: fix parameter passing when calling NF_HOOK() in End.DX4 and End.DX6 behaviors 2024-06-27 13:52:23 +02:00
iucv more s390 updates for 6.9 merge window 2024-03-19 11:38:27 -07:00
kcm net: kcm: fix incorrect parameter validation in the kcm_getsockopt) function 2024-03-11 09:53:22 +00:00
key
l2tp inet: introduce dst_rtable() helper 2024-06-12 11:39:55 +02:00
l3mdev
lapb
llc
mac80211 wifi: mac80211: fix monitor channel with chanctx emulation 2024-06-27 13:52:28 +02:00
mac802154
mctp
mpls inet: introduce dst_rtable() helper 2024-06-12 11:39:55 +02:00
mptcp mptcp: pm: update add_addr counters after connect 2024-06-21 14:40:30 +02:00
ncsi net/ncsi: Fix the multi thread manner of NCSI driver 2024-06-21 14:40:03 +02:00
netfilter netfilter: move the sysctl nf_hooks_lwtunnel into the netfilter core 2024-06-27 13:52:23 +02:00
netlabel
netlink net/netlink: Add getsockopt support for NETLINK_LISTEN_ALL_NSID 2024-03-11 15:48:34 -07:00
netrom netrom: Fix a memory leak in nr_heartbeat_expiry() 2024-06-27 13:52:21 +02:00
nfc nfc: nci: Fix handling of zero-length payload packets in nci_rx_work() 2024-06-12 11:39:43 +02:00
nsh nsh: Restore skb->{protocol,data,mac_header} for outer header in nsh_gso_segment(). 2024-04-26 12:20:01 +02:00
openvswitch openvswitch: Set the skbuff pkt_type for proper pmtud support. 2024-06-12 11:39:41 +02:00
packet af_packet: avoid a false positive warning in packet_setsockopt() 2024-06-27 13:52:13 +02:00
phonet phonet: fix rtm_phonet_notify() skb allocation 2024-05-06 18:30:00 -07:00
psample
qrtr net: qrtr: ns: Fix module refcnt 2024-05-30 09:45:02 +02:00
rds net/rds: fix possible cp null dereference 2024-03-29 12:04:09 -07:00
rfkill
rose
rxrpc rxrpc: Only transmit one ACK per jumbo packet received 2024-05-08 08:05:03 -07:00
sched sched: act_ct: add netns into the key of tcf_ct_flow_table 2024-06-27 13:52:22 +02:00
sctp inet: introduce dst_rtable() helper 2024-06-12 11:39:55 +02:00
smc net/smc: avoid overwriting when adjusting sock bufsizes 2024-06-21 14:40:05 +02:00
strparser
sunrpc SUNRPC: return proper error from gss_wrap_req_priv 2024-06-21 14:40:17 +02:00
switchdev
tipc tipc: force a dst refcount before doing decryption 2024-06-27 13:52:22 +02:00
tls tls: fix missing memory barrier in tls_init 2024-06-12 11:39:43 +02:00
unix af_unix: Read with MSG_PEEK loops if the first unread byte is OOB 2024-06-21 14:40:26 +02:00
vmw_vsock vsock/virtio: fix packet delivery to tap device 2024-04-02 18:00:24 -07:00
wireless wifi: cfg80211: validate HE operation element parsing 2024-06-21 14:40:31 +02:00
x25 net/x25: fix incorrect parameter validation in the x25_getsockopt() function 2024-03-11 09:53:22 +00:00
xdp Revert "xsk: Support redirect to any socket bound to the same umem" 2024-06-16 13:51:10 +02:00
xfrm net: fix __dst_negative_advice() race 2024-06-12 11:39:55 +02:00
compat.c
devres.c
Kconfig
Kconfig.debug
Makefile
socket.c net: remove {revc,send}msg_copy_msghdr() from exports 2024-03-14 16:48:53 -07:00
sysctl_net.c