[<prev] [next>] [day] [month] [year] [list]
Message-Id: <9280561545656235@sas1-02732547ccc0.qloud-c.yandex.net>
Date: Mon, 24 Dec 2018 15:57:15 +0300
From: Nazarov Sergey <s-nazarov@...dex.ru>
To: linux-kernel@...r.kernel.org
Subject: Incorrect use IPCB in icmp_send code
Hello!
icmp_send routine calls ip_option_echo, which uses IPCB to take skbuff compiled IP options.
But icmp_send could be called from TCP level too (security_sock_rcv_skb - cipso_v4_error for INET stream connection, for example).
After moving IP header data to the end of the struct tcp_skb_cb, this could lead to memory corruption when IP options copying.
Thanks.
Powered by blists - more mailing lists