Skip to content
Commit 93bc4e89 authored by Pekka Enberg's avatar Pekka Enberg Committed by David S. Miller
Browse files

netfilter: fix double-free and use-after free



As suggested by Patrick McHardy, introduce a __krealloc() that doesn't
free the original buffer to fix a double-free and use-after-free bug
introduced by me in netfilter that uses RCU.

Reported-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarPekka Enberg <penberg@cs.helsinki.fi>
Tested-by: default avatarDieter Ries <clip2@gmx.de>
Signed-off-by: default avatarPatrick McHardy <kaber@trash.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 3918fed5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment