summaryrefslogtreecommitdiffstats
path: root/net/ipv4/proc.c
diff options
context:
space:
mode:
authorSteffen Klassert <steffen.klassert@secunet.com>2019-02-26 07:04:50 +0100
committerBen Hutchings <ben@decadent.org.uk>2019-08-13 12:38:59 +0100
commitc3877029d2374d70aa35961c596555f14b798f62 (patch)
tree8ff776ab755f0f1f2250b88c8fea413ab2169832 /net/ipv4/proc.c
parent8e9ba7fbb8088e798390b7e39b7eb282325be7c9 (diff)
downloadlinux-stable-c3877029d2374d70aa35961c596555f14b798f62.tar.gz
linux-stable-c3877029d2374d70aa35961c596555f14b798f62.tar.bz2
linux-stable-c3877029d2374d70aa35961c596555f14b798f62.zip
xfrm4: Fix uninitialized memory read in _decode_session4
commit 8742dc86d0c7a9628117a989c11f04a9b6b898f3 upstream. We currently don't reload pointers pointing into skb header after doing pskb_may_pull() in _decode_session4(). So in case pskb_may_pull() changed the pointers, we read from random memory. Fix this by putting all the needed infos on the stack, so that we don't need to access the header pointers after doing pskb_may_pull(). Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com> Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'net/ipv4/proc.c')
0 files changed, 0 insertions, 0 deletions