]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Fix NULL pointer deref in ipfw when using dummynet at layer 2.
authorSean Bruno <sbruno@FreeBSD.org>
Thu, 25 Sep 2014 02:26:05 +0000 (02:26 +0000)
committerSean Bruno <sbruno@FreeBSD.org>
Thu, 25 Sep 2014 02:26:05 +0000 (02:26 +0000)
commit488c0a7ca82736c22cc71a6eea4ca5df83725837
tree91b2e4f6fe9f3637537f7f61b70ba304d5bca602
parent32e570e70172081167f7133ee26a90e6c84a50bb
Fix NULL pointer deref in ipfw when using dummynet at layer 2.
Drop packet if pkg->ifp is NULL, which is the case here.

ref. https://github.com/HardenedBSD/hardenedBSD
commit 4eef3881c64f6e3aa38eebbeaf27a947a5d47dd7

PR 193861 --  DUMMYNET LAYER2: kernel panic

in this case a kernel panic occurs. Hence, when we do not get an interface,
we just drop the packet in question.

PR: 193681
Submitted by: David Carlier <david.carlier@hardenedbsd.org>
Obtained from: Hardened BSD
MFC after: 2 weeks
Relnotes: yes
sys/netpfil/ipfw/ip_dn_io.c