From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from szxga03-in.huawei.com ([119.145.14.66]:35937 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751631AbbKGCuM (ORCPT ); Fri, 6 Nov 2015 21:50:12 -0500 Message-ID: <563D65FE.1070407@huawei.com> Date: Sat, 7 Nov 2015 10:46:22 +0800 From: Sheng Yong MIME-Version: 1.0 To: Greg KH CC: , Subject: Re: [PATCH for 3.10-stable] virtio-net: drop NETIF_F_FRAGLIST References: <1445910653-174955-1-git-send-email-shengyong1@huawei.com> <20151106185524.GA32467@kroah.com> In-Reply-To: <20151106185524.GA32467@kroah.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Sender: stable-owner@vger.kernel.org List-ID: On 11/7/2015 2:55 AM, Greg KH wrote: > On Tue, Oct 27, 2015 at 01:50:53AM +0000, Sheng Yong wrote: >> From: Jason Wang >> >> commit 48900cb6af4282fa0fb6ff4d72a81aa3dadb5c39 upstream. >> >> virtio declares support for NETIF_F_FRAGLIST, but assumes >> that there are at most MAX_SKB_FRAGS + 2 fragments which isn't >> always true with a fraglist. >> >> A longer fraglist in the skb will make the call to skb_to_sgvec overflow >> the sg array, leading to memory corruption. >> >> Drop NETIF_F_FRAGLIST so we only get what we can handle. >> >> Cc: Michael S. Tsirkin >> Signed-off-by: Jason Wang >> Acked-by: Michael S. Tsirkin >> Signed-off-by: David S. Miller >> --- >> drivers/net/virtio_net.c | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) > > This patch isn't in any stable tree, why just add it to 3.10? What > about all of the other ones? Hi, Greg This patch addresses CVE-2015-5156. I didn't check if other stables added this patch. 3.4.y, 3.14.y and 4.1.y can have this patch directly by cherry-pick. thanks, Sheng > > thanks, > > greg k-h > -- > To unsubscribe from this list: send the line "unsubscribe stable" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > > . >