-----BEGIN PGP SIGNED MESSAGE-----
AUSCERT External Security Bulletin Redistribution
ESB-2001.224 -- NetBSD Security Advisory 2001-007
IP Filter may incorrectly pass packets
31 May 2001
AusCERT Security Bulletin Summary
Product: IP Filter (ipf)
Operating System: NetBSD-current prior to April 6, 2001
NetBSD 1.5.x prior to April 14, 2001
NetBSD 1.4.x prior to April 14, 2001
Impact: Reduced Security
- --------------------------BEGIN INCLUDED TEXT--------------------
- -----BEGIN PGP SIGNED MESSAGE-----
NetBSD Security Advisory 2001-007
Topic: IP Filter may incorrectly pass packets
Version: NetBSD 1.4, 1.5, -current
Severity: Unexpected network packets may be received by the system
Fixed: NetBSD-current: April 6, 2001
NetBSD-1.5 branch: April 14, 2001
NetBSD-1.4 branch: April 14, 2001
IP Filter (ipf) - the IP packet filtering software in NetBSD - has a
bug where the checks on a fragmented packet are incomplete and
it may be possible to abuse this to bypass filter rules.
Fragmented packets may be stored in a ``fragment cache'' in certain
circumstances. The fragment cache is checked for a packet match
before any of the filter rules are checked. There were insufficient
checks made on fragmented packets before inserting the packet into
the fragment cache.
This problem is most likely to occur if "keep frags" or "keep state"
is used in the ipf rules, but it is possible if the ftp NAT proxy
is used in the ipnat rules.
Solutions and Workarounds
Upgrade the system from newer sources or binaries.
Systems running NetBSD-current dated from before April 6, 2001
should be upgraded to NetBSD-current dated April 6, 2001 or later.
Systems running NetBSD 1.5.x systems dated from before April 14, 2001
should be upgraded to NetBSD 1.5.x dated April 14, 2001 or later.
NetBSD 1.5.1 will ship with the fix.
Systems running NetBSD 1.4.x systems dated from before April 14, 2001
should be upgraded to NetBSD 1.4.x dated April 14, 2001 or later.
If you cannot upgrade the kernel and if you are running on a platform
that supports it, you can patch the kernel binary using gdb:
# gdb --write /netbsd
(gdb) set ipfr_inuse=1000000
Then reboot your system for the change to take effect. The value 1000000
is not important, it just has to be greater than the IPFT_SIZE constant.
Thomas Lopatic for reporting the problem, and Darren Reed for fixing it.
2001-05-29 - Initial Release
An up-to-date PGP signed copy of this release will be maintained at
Information about NetBSD and NetBSD security can be found at
http://www.NetBSD.ORG/ and http://www.NetBSD.ORG/Security/.
Copyright 2001, The NetBSD Foundation, Inc. All Rights Reserved.
$NetBSD: NetBSD-SA2001-007.txt,v 1.4 2001/05/29 05:58:42 lukem Exp $
- -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.5 (NetBSD)
Comment: For info see http://www.gnupg.org
- -----END PGP SIGNATURE-----
- --------------------------END INCLUDED TEXT--------------------
You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to firstname.lastname@example.org
and we will forward your request to the appropriate person.
This security bulletin is provided as a service to AusCERT's members. As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to use any or all of this information is
the responsibility of each user or organisation, and should be done so in
accordance with site policies and procedures.
NOTE: This is only the original release of the security bulletin. It may
not be updated when updates to the original are made. If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the original authors to ensure that the information is still current.
Contact information for the authors of the original document is included
in the Security Bulletin above. If you have any questions or need further
information, please contact them directly.
Previous advisories and external security bulletins can be retrieved from:
If you believe that your system has been compromised, contact AusCERT or
your representative in FIRST (Forum of Incident Response and Security
Internet Email: email@example.com
Facsimile: (07) 3365 7031
Telephone: (07) 3365 4417 (International: +61 7 3365 4417)
AusCERT personnel answer during Queensland business hours
which are GMT+10:00 (AEST).
On call after hours for emergencies.
-----BEGIN PGP SIGNATURE-----
-----END PGP SIGNATURE-----