linux-stable/net
David Leadbeater 9255253b77 netfilter: nf_conntrack_irc: Tighten matching on DCC message
[ Upstream commit e8d5dfd1d8 ]

CTCP messages should only be at the start of an IRC message, not
anywhere within it.

While the helper only decodes packes in the ORIGINAL direction, its
possible to make a client send a CTCP message back by empedding one into
a PING request.  As-is, thats enough to make the helper believe that it
saw a CTCP message.

Fixes: 869f37d8e4 ("[NETFILTER]: nf_conntrack/nf_nat: add IRC helper port")
Signed-off-by: David Leadbeater <dgl@dgl.cx>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-09-28 10:55:45 +02:00
..
6lowpan 6lowpan: Off by one handling ->nexthdr 2020-01-29 10:24:22 +01:00
9p net/9p: Initialize the iounit field during fid creation 2022-08-25 11:09:27 +02:00
802 net/802/garp: fix memleak in garp_request_join() 2021-08-04 11:58:02 +02:00
8021q vlan: fix memory leak in vlan_dev_set_egress_priority 2020-01-12 11:24:27 +01:00
appletalk appletalk: Fix skb allocation size in loopback case 2021-04-07 12:05:39 +02:00
atm atm: fix a memory leak of vcc->user_back 2020-10-01 20:40:12 +02:00
ax25 ax25: Fix NULL pointer dereference in ax25_kill_by_device 2022-03-16 12:49:00 +01:00
batman-adv batman-adv: Don't expect inter-netns unique iflink indices 2022-03-16 12:49:01 +01:00
bluetooth Bluetooth: L2CAP: Fix build errors in some archs 2022-09-05 10:23:57 +02:00
bridge netfilter: br_netfilter: Drop dst references before setting. 2022-09-15 12:39:46 +02:00
caif net-caif: avoid user-triggerable WARN_ON(1) 2021-09-22 11:43:09 +02:00
can can: bcm: fix UAF of bcm op 2022-02-08 18:15:26 +01:00
ceph libceph: clear con->out_msg on Policy::stateful_server faults 2020-11-10 10:23:59 +01:00
core net: Fix a data-race around sysctl_net_busy_read. 2022-09-05 10:23:55 +02:00
dcb net: dcb: disable softirqs in dcbnl_flush_dev() 2022-03-08 19:00:59 +01:00
dccp dccp: don't duplicate ccid when cloning dccp sock 2021-09-22 11:43:09 +02:00
decnet net: decnet: Fix sleeping inside in af_decnet 2021-07-28 09:14:27 +02:00
dns_resolver
dsa net: dsa: tag_brcm: Fix skb->fwd_offload_mark location 2020-04-13 10:32:53 +02:00
ethernet net: add annotations on hh->hh_len lockless accesses 2020-01-12 11:24:19 +01:00
hsr hsr: use netdev_err() instead of WARN_ONCE() 2021-05-22 10:40:20 +02:00
ieee802154 net: ieee802154: Return meaningful error codes from the netlink helpers 2022-02-08 18:15:29 +01:00
ipv4 tcp: fix early ETIMEDOUT after spurious non-SACK RTO 2022-09-15 12:39:46 +02:00
ipv6 net: ping6: Fix memleak in ipv6_renew_options(). 2022-08-25 11:09:20 +02:00
ipx
irda
iucv net/af_iucv: set correct sk_protocol for child sockets 2020-12-11 13:37:56 +01:00
kcm
key af_key: Do not call xfrm_probe_algs in parallel 2022-09-05 10:23:54 +02:00
l2tp l2tp: fix race in pppol2tp_release with session object destroy 2022-06-25 11:45:19 +02:00
l3mdev
lapb net: lapb: Copy the skb before sending a packet 2021-02-10 09:09:25 +01:00
llc llc: only change llc->dev when bind() succeeds 2022-03-28 08:06:06 +02:00
mac80211 wifi: mac80211: Fix UAF in ieee80211_scan_rx() 2022-09-28 10:55:45 +02:00
mac802154 net: mac802154: Fix a condition in the receive path 2022-09-15 12:39:45 +02:00
mpls net: avoid infinite loop in mpls_gso_segment when mpls_hlen == 0 2021-03-17 16:10:13 +01:00
ncsi net/ncsi: Use real net-device for response handler 2021-01-12 19:49:01 +01:00
netfilter netfilter: nf_conntrack_irc: Tighten matching on DCC message 2022-09-28 10:55:45 +02:00
netlabel cipso,calipso: resolve a number of problems with the DOI refcounts 2022-01-27 08:47:42 +01:00
netlink netlink: do not reset transport header in netlink_recvmsg() 2022-05-18 09:15:43 +02:00
netrom netrom: Decrease sock refcount when sock timers expire 2021-07-28 09:14:27 +02:00
nfc NFC: NULL out the dev->rfkill to prevent UAF 2022-06-14 16:52:31 +02:00
openvswitch openvswitch: fix OOB access in reserve_sfa_size() 2022-04-27 13:14:11 +02:00
packet net/packet: fix packet_sock xmit return value checking 2022-04-27 13:14:10 +02:00
phonet phonet: refcount leak in pep_sock_accep 2022-01-11 13:38:12 +01:00
qrtr net: qrtr: fix a kernel-infoleak in qrtr_recvmsg() 2021-03-30 14:41:42 +02:00
rds rds: add missing barrier to release_refill 2022-08-25 11:09:28 +02:00
rfkill rfkill: Fix incorrect check to avoid NULL pointer dereference 2020-01-12 11:24:23 +01:00
rose rose: check NULL rose_loopback_neigh->loopback 2022-09-05 10:23:54 +02:00
rxrpc rxrpc: Don't try to resend the request if we're receiving the reply 2022-06-14 16:52:33 +02:00
sched sch_sfb: Also store skb len before calling child enqueue 2022-09-15 12:39:46 +02:00
sctp sctp: read sk->sk_bound_dev_if once in sctp_rcv() 2022-06-14 16:52:32 +02:00
strparser
sunrpc SUNRPC: use _bh spinlocking on ->transport_lock 2022-09-15 12:39:46 +02:00
switchdev
tipc tipc: fix shift wrapping bug in map_get() 2022-09-15 12:39:46 +02:00
unix af_unix: annote lockless accesses to unix_tot_inflight & gc_in_progress 2022-01-27 08:47:41 +01:00
vmw_vsock vsock: Fix memory leak in vsock_connect() 2022-08-25 11:09:29 +02:00
wimax
wireless wifi: cfg80211: debugfs: fix return type in ht40allow_map_read() 2022-09-15 12:39:44 +02:00
x25 net/x25: Fix null-ptr-deref caused by x25_disconnect 2022-04-20 09:06:38 +02:00
xfrm xfrm: fix refcount leak in __xfrm_policy_check() 2022-09-05 10:23:54 +02:00
compat.c net: Return the correct errno code 2021-06-30 08:49:12 -04:00
Kconfig
Makefile net: split out functions related to registering inflight socket files 2021-08-04 11:58:01 +02:00
socket.c net: Fix a data-race around sysctl_somaxconn. 2022-09-05 10:23:55 +02:00
sysctl_net.c