FreeBSD-SA-07:04.file                                       Security Advisory
The FreeBSD Project

Topic:          Heap overflow in file(1)

Category:       contrib
Module:         file
Announced:      2007-05-23
Affects:        All FreeBSD releases.
Corrected:      2007-05-23 16:12:51 UTC (RELENG_6, 6.2-STABLE)
2007-05-23 16:13:07 UTC (RELENG_6_2, 6.2-RELEASE-p5)
2007-05-23 16:13:20 UTC (RELENG_6_1, 6.1-RELEASE-p17)
2007-05-23 16:12:10 UTC (RELENG_5, 5.5-STABLE)
2007-05-23 16:12:35 UTC (RELENG_5_5, 5.5-RELEASE-p13)
CVE Name:       CVE-2007-1536

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit .

I.   Background

The file(1) utility attempts to classify file system objects based on
filesystem, magic number and language tests.

The libmagic(3) library provides most of the functionality of file(1)
and may be used by other applications.

II.  Problem Description

When writing data into a buffer in the file_printf function, the length
of the unused portion of the buffer is not correctly tracked, resulting
in a buffer overflow when processing certain files.

III. Impact

An attacker who can cause file(1) to be run on a maliciously constructed
input can cause file(1) to crash.  It may be possible for such an attacker
to execute arbitrary code with the privileges of the user running file(1).

The above also applies to any other applications using the libmagic(3)
library.

IV.  Workaround

No workaround is available, but systems where file(1) and other
libmagic(3)-using applications are never run on untrusted input are not
vulnerable.

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 5-STABLE, or 6-STABLE, or to the
RELENG_6_2, RELENG_6_1, or RELENG_5_5 security branch dated after the
correction date.

2) To patch your present system:

The following patches have been verified to apply to FreeBSD 5.5, 6.1,
and 6.2 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

[FreeBSD 5.5]
# fetch http://security.FreeBSD.org/patches/SA-07:04/file5.patch
# fetch http://security.FreeBSD.org/patches/SA-07:04/file5.patch.asc

[FreeBSD 6.1 and 6.2]
# fetch http://security.FreeBSD.org/patches/SA-07:04/file6.patch
# fetch http://security.FreeBSD.org/patches/SA-07:04/file6.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/lib/libmagic
# make obj && make depend && make && make install

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

Branch                                                           Revision
Path
- -------------------------------------------------------------------------
RELENG_5
src/contrib/file/file.h                                     1.1.1.7.2.1
src/contrib/file/funcs.c                                    1.1.1.1.2.1
src/contrib/file/magic.c                                    1.1.1.1.2.1
RELENG_5_5
src/UPDATING                                            1.342.2.35.2.13
src/sys/conf/newvers.sh                                  1.62.2.21.2.15
src/contrib/file/file.h                                     1.1.1.7.8.1
src/contrib/file/funcs.c                                    1.1.1.1.8.1
src/contrib/file/magic.c                                    1.1.1.1.8.1
RELENG_6
src/contrib/file/file.h                                     1.1.1.8.2.1
src/contrib/file/funcs.c                                    1.1.1.2.2.1
src/contrib/file/magic.c                                    1.1.1.2.2.1
RELENG_6_2
src/UPDATING                                             1.416.2.29.2.8
src/sys/conf/newvers.sh                                   1.69.2.13.2.8
src/contrib/file/file.h                                     1.1.1.8.8.1
src/contrib/file/funcs.c                                    1.1.1.2.8.1
src/contrib/file/magic.c                                    1.1.1.2.8.1
RELENG_6_1
src/UPDATING                                            1.416.2.22.2.19
src/sys/conf/newvers.sh                                  1.69.2.11.2.19
src/contrib/file/file.h                                     1.1.1.8.6.1
src/contrib/file/funcs.c                                    1.1.1.2.6.1
src/contrib/file/magic.c                                    1.1.1.2.6.1
- -------------------------------------------------------------------------

VII. References

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-1536

The latest revision of this advisory is available at
http://security.FreeBSD.org/advisories/FreeBSD-SA-07:04.file.asc
Source: FreeBSD.org
FreeBSD-SA-07:03.ipv6                                       Security Advisory
The FreeBSD Project

Topic:          IPv6 Routing Header 0 is dangerous

Category:       core
Module:         ipv6
Announced:      2007-04-26
Credits:        Philippe Biondi, Arnaud Ebalard, Jun-ichiro itojun Hagino
Affects:        All FreeBSD releases.
Corrected:      2007-04-24 11:42:42 UTC (RELENG_6, 6.2-STABLE)
2007-04-26 23:42:23 UTC (RELENG_6_2, 6.2-RELEASE-p4)
2007-04-26 23:41:59 UTC (RELENG_6_1, 6.1-RELEASE-p16)
2007-04-24 11:44:23 UTC (RELENG_5, 5.5-STABLE)
2007-04-26 23:41:27 UTC (RELENG_5_5, 5.5-RELEASE-p12)
CVE Name:       CVE-2007-2242

I.   Background

IPv6 provides a routing header option which allows a packet sender to
indicate how the packet should be routed, overriding the routing knowledge
present in a network.  This functionality is roughly equivalent to the
"source routing" option in IPv4.  All nodes in an IPv6 network -- both
routers and hosts -- are required by RFC 2460 to process such headers.

II.  Problem Description

There is no mechanism for preventing IPv6 routing headers from being used
to route packets over the same link(s) many times.

III. Impact

An attacker can "amplify" a denial of service attack against a link between
two vulnerable hosts; that is, by sending a small volume of traffic the
attacker can consume a much larger amount of bandwidth between the two
vulnerable hosts.

An attacker can use vulnerable hosts to "concentrate" a denial of service
attack against a victim host or network; that is, a set of packets sent
over a period of 30 seconds or more could be constructed such that they
all arrive at the victim within a period of 1 second or less.

Other attacks may also be possible.

IV.  Workaround

No workaround is available.

V.   Solution

NOTE WELL: The solution described below causes IPv6 type 0 routing headers
to be ignored.  Support for IPv6 type 0 routing headers can be re-enabled
if required by setting the newly added net.inet6.ip6.rthdr0_allowed sysctl
to a non-zero value.

Perform one of the following:

1) Upgrade your vulnerable system to 5-STABLE, or 6-STABLE, or to the
RELENG_6_2, RELENG_6_1, or RELENG_5_5 security branch dated after the
correction date.

2) To patch your present system:

The following patches have been verified to apply to FreeBSD 5.5, 6.1,
and 6.2 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

# fetch http://security.FreeBSD.org/patches/SA-07:03/ipv6.patch
# fetch http://security.FreeBSD.org/patches/SA-07:03/ipv6.patch.asc

b) Apply the patch.

# cd /usr/src
# patch < /path/to/patch

c) Recompile your kernel as described in
 and reboot the
system.

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

Branch                                                           Revision
Path
- ————————————————————————-
RELENG_5
src/sys/netinet6/in6.h                                         1.35.2.5
src/sys/netinet6/in6_proto.c                                   1.29.2.5
src/sys/netinet6/route6.c                                      1.10.4.2
RELENG_5_5
src/UPDATING                                            1.342.2.35.2.12
src/sys/conf/newvers.sh                                  1.62.2.21.2.14
src/sys/netinet6/in6.h                                     1.35.2.3.2.1
src/sys/netinet6/in6_proto.c                               1.29.2.4.2.1
src/sys/netinet6/route6.c                                  1.10.4.1.4.1
RELENG_6
src/sys/netinet6/in6.h                                         1.36.2.8
src/sys/netinet6/in6_proto.c                                   1.32.2.6
src/sys/netinet6/route6.c                                      1.11.2.2
RELENG_6_2
src/UPDATING                                             1.416.2.29.2.7
src/sys/conf/newvers.sh                                   1.69.2.13.2.7
src/sys/netinet6/in6.h                                     1.36.2.7.2.1
src/sys/netinet6/in6_proto.c                               1.32.2.5.2.1
src/sys/netinet6/route6.c                                  1.11.2.1.4.1
RELENG_6_1
src/UPDATING                                            1.416.2.22.2.18
src/sys/conf/newvers.sh                                  1.69.2.11.2.18
src/sys/netinet6/in6.h                                     1.36.2.6.2.1
src/sys/netinet6/in6_proto.c                               1.32.2.4.2.1
src/sys/netinet6/route6.c                                  1.11.2.1.2.1
- ————————————————————————-

VII. References

http://www.secdev.org/conf/IPv6_RH_security-csw07.pdf

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-2242

The latest revision of this advisory is available at
http://security.FreeBSD.org/advisories/FreeBSD-SA-07:03.ipv6.asc
Source: FreeBSD.org
FreeBSD-SA-07:02.bind                                       Security Advisory
The FreeBSD Project

Topic:          Multiple Denial of Service vulnerabilities in named(8)

Category:       contrib
Module:         bind
Announced:      2007-02-09
Affects:        FreeBSD 5.3 and later.
Corrected:      2007-02-07 00:42:09 UTC (RELENG_6, 6.2-STABLE)
2007-02-09 20:24:15 UTC (RELENG_6_2, 6.2-RELEASE-p1)
2007-02-09 20:23:29 UTC (RELENG_6_1, 6.1-RELEASE-p13)
2007-02-07 00:46:35 UTC (RELENG_5, 5.5-STABLE)
2007-02-09 20:22:44 UTC (RELENG_5_5, 5.5-RELEASE-p11)
CVE Name:       CVE-2007-0493, CVE-2007-0494

For general information regarding FreeBSD Security Advisories,
including descriptions of the fields above, security branches, and the
following sections, please visit .

I.   Background

BIND 9 is an implementation of the Domain Name System (DNS) protocols.
The named(8) daemon is an Internet domain name server.  DNS Security
Extensions (DNSSEC) are additional protocol options that add
authentication and integrity to the DNS protocols.

II.  Problem Description

A type * (ANY) query response containing multiple RRsets can trigger an
assertion failure.

Certain recursive queries can cause the nameserver to crash by using memory
which has already been freed.

III. Impact

A remote attacker sending a type * (ANY) query to an authoritative DNS
server for a DNSSEC signed zone can cause the named(8) daemon to exit,
resulting in a Denial of Service.

A remote attacker sending recursive queries can cause the nameserver to
crash, resulting in a Denial of Service.

IV.  Workaround

There is no workaround available, but systems which are not authoritative
servers for DNSSEC signed zones are not affected by the first issue; and
systems which do not permit untrusted users to perform recursive DNS
resolution are not affected by the second issue.  Note that the default
configuration for named(8) in FreeBSD allows local access only (which on
many systems is equivalent to refusing access to untrusted users).

V.   Solution

Perform one of the following:

1) Upgrade your vulnerable system to 5-STABLE, or 6-STABLE, or to the
RELENG_6_2, RELENG_6_1, or RELENG_5_5 security branch dated after the
correction date.

2) To patch your present system:

The following patches have been verified to apply to FreeBSD 5.5, 6.1,
and 6.2 systems.

a) Download the relevant patch from the location below, and verify the
detached PGP signature using your PGP utility.

[FreeBSD 5.5, FreeBSD 6.1]
# fetch http://security.FreeBSD.org/patches/SA-07:02/bind61.patch
# fetch http://security.FreeBSD.org/patches/SA-07:02/bind61.patch.asc

[FreeBSD 6.2]
# fetch http://security.FreeBSD.org/patches/SA-07:02/bind62.patch
# fetch http://security.FreeBSD.org/patches/SA-07:02/bind62.patch.asc

b) Execute the following commands as root:

# cd /usr/src
# patch < /path/to/patch
# cd /usr/src/lib/bind
# make obj && make depend && make && make install
# cd /usr/src/usr.sbin/named
# make obj && make depend && make && make install

c) Restart the named application:

# /etc/rc.d/named restart

VI.  Correction details

The following list contains the revision numbers of each file that was
corrected in FreeBSD.

Branch                                                           Revision
Path
- -------------------------------------------------------------------------
RELENG_5
src/contrib/bind9/lib/dns/resolver.c                        1.1.1.1.2.8
src/contrib/bind9/lib/dns/validator.c                       1.1.1.1.2.5
src/contrib/bind9/lib/dns/include/dns/validator.h           1.1.1.1.2.4
RELENG_5_5
src/UPDATING                                            1.342.2.35.2.11
src/sys/conf/newvers.sh                                  1.62.2.21.2.13
src/contrib/bind9/lib/dns/resolver.c                    1.1.1.1.2.4.2.2
src/contrib/bind9/lib/dns/validator.c                   1.1.1.1.2.3.2.1
src/contrib/bind9/lib/dns/include/dns/validator.h       1.1.1.1.2.2.2.1
RELENG_6
src/contrib/bind9/lib/dns/resolver.c                        1.1.1.2.2.6
src/contrib/bind9/lib/dns/validator.c                       1.1.1.2.2.3
src/contrib/bind9/lib/dns/include/dns/validator.h           1.1.1.1.4.3
RELENG_6_2
src/UPDATING                                             1.416.2.29.2.4
src/sys/conf/newvers.sh                                   1.69.2.13.2.4
src/contrib/bind9/lib/dns/resolver.c                    1.1.1.2.2.4.2.2
src/contrib/bind9/lib/dns/validator.c                   1.1.1.2.2.1.4.2
src/contrib/bind9/lib/dns/include/dns/validator.h       1.1.1.1.4.1.4.2
RELENG_6_1
src/UPDATING                                            1.416.2.22.2.15
src/sys/conf/newvers.sh                                  1.69.2.11.2.15
src/contrib/bind9/lib/dns/resolver.c                    1.1.1.2.2.2.2.2
src/contrib/bind9/lib/dns/validator.c                   1.1.1.2.2.1.2.1
src/contrib/bind9/lib/dns/include/dns/validator.h       1.1.1.1.4.1.2.1
- -------------------------------------------------------------------------

VII. References

http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0493
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2007-0494

The latest revision of this advisory is available at http://security.FreeBSD.org/advisories/FreeBSD-SA-07:02.bind.asc
Source: FreeBSD.org

Dutch Bodybuilding Forums | Loans | Charity | Photoshop Tutorials | Cheap Car Insurance