Bug 512987 (CVE-2009-2562) - CVE-2009-2562 Wireshark: Integer overflow in the AFS dissector
Summary: CVE-2009-2562 Wireshark: Integer overflow in the AFS dissector
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2009-2562
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL: https://bugs.wireshark.org/bugzilla/s...
Whiteboard:
Depends On: 549581 549582 549583 549584 561099 833992
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-07-21 15:01 UTC by Jan Lieskovsky
Modified: 2019-09-29 12:31 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-04-20 15:54:32 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0360 0 normal SHIPPED_LIVE Moderate: wireshark security update 2010-04-20 15:31:15 UTC

Description Jan Lieskovsky 2009-07-21 15:01:35 UTC
An integer overflow flaw, leading to heap-based buffer overflow was found
in the Wiresharks's AFS dissector. A remote attacker could provide
a specially-crafted AFS packet capture file, which once opened by an
unsuspecting user would lead to denial of service (Wireshark crash).

References:
-----------
http://www.wireshark.org/security/wnpa-sec-2009-04.html
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=3564

Reproducer:
-----------
https://bugs.wireshark.org/bugzilla/attachment.cgi?id=3167

Upstream patch:
---------------
http://anonsvn.wireshark.org/viewvc/trunk/epan/dissectors/packet-afs.c?r1=28815&r2=28814&pathrev=28815&view=patch

Comment 2 Jan Lieskovsky 2009-07-21 15:09:03 UTC
This issue affects the versions of the Wireshark package, as shipped
with Red Hat Enteprise Linux 3, 4, and 5.

This issue affects the versions of the Wireshark package, as shipped
with Fedora releases of 10, 11, and Rawhide.

Comment 3 Jan Lieskovsky 2009-07-21 19:49:50 UTC
MITRE's CVE-2009-2562 entry:

Unspecified vulnerability in the AFS dissector in Wireshark 0.9.2
through 1.2.0 allows remote attackers to cause a denial of service
(crash) via unknown vectors.

References:
----------
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2009-2562
http://www.wireshark.org/security/wnpa-sec-2009-04.html
http://www.securityfocus.com/bid/35748
http://secunia.com/advisories/35884
http://www.vupen.com/english/advisories/2009/1970

Comment 5 Jan Lieskovsky 2009-08-12 10:06:19 UTC
Official statement from Red Hat Security Response Team regarding this issue:
----------------------------------------------------------------------------

The Red Hat Security Response Team has rated this issue as having
low security impact, a future Wireshark package update may
address this flaw in Red Hat Enterprise Linux 3, 4, and 5. More
information regarding issue severity can be found here:
http://www.redhat.com/security/updates/classification/

Comment 8 Tomas Hoger 2009-09-30 13:28:39 UTC
This really is caused by an integer overflow as indicated in comment #0.  i_orxs value is read from the dump.  It's later passed to tvb_get_ptr() for sanity-checking, however, that does not report a problem when i_orxs is 0xFFFFFFFF.  The reason is that this value is casted from unsigned to signed integer type in compute_offset_length(), i.e. it becomes -1 and that is a special value in compute_offset_length() - which means "to the end of the data".

Later, ep_alloc() is called as ep_alloc(i_orxs+1), hence with size equal to 0, allocating buffer of insufficient size.  That buffer is later filled with memcpy as memcpy(tmp_orxs, p_orxs, i_orxs).  This attempts to copy ~4 gig of data and is likely to trigger SEGV when trying to read or write from an unmapped memory.

Comment 10 Fedora Update System 2009-11-04 12:02:25 UTC
wireshark-1.2.2-1.fc11 has been pushed to the Fedora 11 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Fedora Update System 2009-12-04 23:38:56 UTC
wireshark-1.2.1-1.fc10 has been pushed to the Fedora 10 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 14 errata-xmlrpc 2010-04-20 15:31:19 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4
  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 3

Via RHSA-2010:0360 https://rhn.redhat.com/errata/RHSA-2010-0360.html


Note You need to log in before you can comment on or make changes to this bug.