mptcp.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* [PATCH net v2 0/3] Fix out of bounds when parsing TCP options
@ 2021-06-10 16:40 Maxim Mikityanskiy
  2021-06-10 16:40 ` [PATCH net v2 1/3] netfilter: synproxy: " Maxim Mikityanskiy
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Maxim Mikityanskiy @ 2021-06-10 16:40 UTC (permalink / raw)
  To: Mat Martineau, Matthieu Baerts, Jakub Kicinski, David S. Miller,
	Pablo Neira Ayuso, Jozsef Kadlecsik, Florian Westphal,
	Toke Høiland-Jørgensen, Jamal Hadi Salim, Cong Wang,
	Jiri Pirko, Patrick McHardy, Jesper Dangaard Brouer, Paolo Abeni,
	Christoph Paasch, Peter Krystad
  Cc: Young Xiao, netdev, mptcp, Maxim Mikityanskiy

This series fixes out-of-bounds access in various places in the kernel
where parsing of TCP options takes place. Fortunately, many more
occurrences don't have this bug.

v2 changes:

synproxy: Added an early return when length < 0 to avoid calling
skb_header_pointer with negative length.

sch_cake: Added doff validation to avoid parsing garbage.

Maxim Mikityanskiy (3):
  netfilter: synproxy: Fix out of bounds when parsing TCP options
  mptcp: Fix out of bounds when parsing TCP options
  sch_cake: Fix out of bounds when parsing TCP options and header

 net/mptcp/options.c              | 2 ++
 net/netfilter/nf_synproxy_core.c | 5 +++++
 net/sched/sch_cake.c             | 6 +++++-
 3 files changed, 12 insertions(+), 1 deletion(-)

-- 
2.25.1


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

end of thread, other threads:[~2021-06-11 14:30 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-10 16:40 [PATCH net v2 0/3] Fix out of bounds when parsing TCP options Maxim Mikityanskiy
2021-06-10 16:40 ` [PATCH net v2 1/3] netfilter: synproxy: " Maxim Mikityanskiy
2021-06-10 16:43   ` Florian Westphal
2021-06-10 16:40 ` [PATCH net v2 2/3] mptcp: " Maxim Mikityanskiy
2021-06-10 21:03   ` Mat Martineau
2021-06-10 21:09     ` Mat Martineau
2021-06-11 14:30     ` Matthieu Baerts
2021-06-10 16:40 ` [PATCH net v2 3/3] sch_cake: Fix out of bounds when parsing TCP options and header Maxim Mikityanskiy
2021-06-10 21:50 ` [PATCH net v2 0/3] Fix out of bounds when parsing TCP options patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).