]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r345366:
authorKristof Provost <kp@FreeBSD.org>
Thu, 21 Mar 2019 14:17:10 +0000 (14:17 +0000)
committerKristof Provost <kp@FreeBSD.org>
Thu, 21 Mar 2019 14:17:10 +0000 (14:17 +0000)
commit018b3394cde4ee8355b56e9ed1d351521010ffb5
treefe44f60dbc49ba39ff2727ed58983371914a1b9d
parentce0a61d4c02c5ac188b9a58306a4214741577392
MFC r345366:

pf: Ensure that IP addresses match in ICMP error packets

States in pf(4) let ICMP and ICMP6 packets pass if they have a
packet in their payload that matches an exiting connection.  It was
not checked whether the outer ICMP packet has the same destination
IP as the source IP of the inner protocol packet.  Enforce that
these addresses match, to prevent ICMP packets that do not make
sense.

Reported by: Nicolas Collignon, Corentin Bayet, Eloi Vanderbeken, Luca Moro at Synacktiv
Obtained from: OpenBSD
Security: CVE-2019-5598
sys/netpfil/pf/pf.c
tests/sys/netpfil/pf/pft_ping.py