Patch "netfilter: ipv6: nf_defrag: accept duplicate fragments again" has been added to the 4.19-stable tree
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 36 lines · Sasha Levin
This is a note to let you know that I've just added the patch titled
netfilter: ipv6:
nf_defrag: accept duplicate fragments againto the 4.19-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summaryThe filename of the patch is:
netfilter-ipv6-nf_defrag-accept-duplicate-fragments-.patch
and it can be found in the queue-4.19 subdirectory.If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.
commit
447d05e723b06f8aa1a9cba0f7b4c0029924663cAuthor: Guillaume Nault <[email protected]> Date: Thu Jun 6 18:04:00 2019 +0200netfilter: ipv6:
nf_defrag: accept duplicate fragments again[ Upstream commit
8a3dca632538c550930ce8bafa8c906b130d35cf]When fixing the skb leak introduced by the conversion to rbtree, I forgot about the special case of duplicate fragments. The condition under the '
insert_error' label isn't effective anymore asnf_ct_frg6_gather()doesn't override the returned value anymore. So duplicate fragments now getNF_DROPverdict.To accept duplicate fragments again, handle them specially as soon as
inet_frag_queue_insert()reports them. Return-EINPROGRESSwhich will translate toNF_STOLENverdict, like any accepted fragment. However, such packets don't carry any new information and aren't queued, so we just drop them immediately.
Quoted 4 lines
Fixes a0d56cb911ca ("netfilter: ipv6: nf_defrag: fix leakage of unqueued fragments")Signed-off-by Guillaume Nault <[email protected]>Signed-off-by Pablo Neira Ayuso <[email protected]>Signed-off-by Sasha Levin <[email protected]>
Why not add this to 5.1.y as well?
thanks,
greg k-h