Module Name: src Committed By: maxv Date: Sun Jan 14 16:36:04 UTC 2018
Modified Files: src/sys/netipsec: xform_ipip.c Log Message: Fix use-after-free. There is a path where the mbuf gets pulled up without a proper mtod afterwards: 218 ipo = mtod(m, struct ip *); 281 m = m_pullup(m, hlen); 232 ipo->ip_src.s_addr Found by Mootja. Meanwhile it seems to me that 'ipo' should be set to NULL if the inner packet is IPv6, but I'll revisit that later. To generate a diff of this commit: cvs rdiff -u -r1.55 -r1.56 src/sys/netipsec/xform_ipip.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.