Bug 1125155 (CVE-2014-3565) - CVE-2014-3565 net-snmp: snmptrapd crash when handling an SNMP trap containing a ifMtu with a NULL type
Summary: CVE-2014-3565 net-snmp: snmptrapd crash when handling an SNMP trap containing...
Keywords:
Status: CLOSED ERRATA
Alias: CVE-2014-3565
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:
Whiteboard:
Depends On: 1124699 1135828 1209109 1209361
Blocks: 1125160 1210268
TreeView+ depends on / blocked
 
Reported: 2014-07-31 08:22 UTC by Murray McAllister
Modified: 2021-02-17 06:20 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
A denial of service flaw was found in the way snmptrapd handled certain SNMP traps when started with the "-OQ" option. If an attacker sent an SNMP trap containing a variable with a NULL type where an integer variable type was expected, it would cause snmptrapd to crash.
Clone Of:
Environment:
Last Closed: 2015-11-20 05:16:50 UTC
Embargoed:


Attachments (Terms of Use)
patch (19.67 KB, patch)
2014-08-27 02:27 UTC, Murray McAllister
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2015:1385 0 normal SHIPPED_LIVE Moderate: net-snmp security and bug fix update 2015-07-20 18:07:39 UTC
Red Hat Product Errata RHSA-2015:2345 0 normal SHIPPED_LIVE Moderate: net-snmp security and bug fix update 2015-11-19 10:30:06 UTC

Description Murray McAllister 2014-07-31 08:22:08 UTC
A remote denial-of-service flaw was found in the way snmptrapd handled certain SNMP traps when started with the "-OQ" option. If an attacker sent an SNMP trap containing a variable with a NULL type where an integer variable type was expected, it would cause snmptrapd to crash.

Comment 2 Jan Safranek 2014-07-31 08:43:08 UTC
(In reply to Murray McAllister from comment #0)
> A remote denial-of-service flaw was found in the way snmptrapd handled SNMP
> traps containing a ifMtu with a NULL type when started with the "-OQ"
> option. 

Well, it's not about ifMtu, it's about *any* integer variable, disguised as Null in a SNMP trap. I used ifMtu just for testing, I did not have original HP MIB files.

You know, SNMP objects have types. The types are described in a MIB file, usually part of a RFC. Problem is, when there is conflict between the definition of the object in the MIB file (which says the object is 'integer') and the trap packet itself (which says the object is 'null'). snmptrapd trusts the MIB file and does not check the type in the packet.

Comment 5 Murray McAllister 2014-08-27 02:27:45 UTC
Created attachment 931224 [details]
patch

Comment 6 Murray McAllister 2014-09-01 00:51:02 UTC
This issue is public now:

http://sourceforge.net/p/net-snmp/code/ci/7f4a7b891332899cea26e95be0337aae01648742/

Comment 7 Murray McAllister 2014-09-01 00:52:39 UTC
Created net-snmp tracking bugs for this issue:

Affects: fedora-all [bug 1135828]

Comment 8 Fedora Update System 2014-09-09 22:10:49 UTC
net-snmp-5.7.2-18.fc20 has been pushed to the Fedora 20 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 9 Fedora Update System 2014-09-10 13:27:29 UTC
net-snmp-5.7.2-15.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 11 Siddharth Sharma 2014-09-12 11:07:04 UTC
Explanation:

Attacker can crash snmptrapd if "-OQ" argument is used to run snmptrapd by 
sending SNMP trap containing variable with a NULL where integer was expected,
parser tries to parse NULL from the packet which leads to crash. No 
authentication is required to crash the snmptrapd.

Comment 12 Siddharth Sharma 2014-09-12 11:11:46 UTC
Statement:

This issue affects the versions of net-snmp as shipped with Red Hat Enterprise Linux 5.  Red Hat Enterprise Linux 5 is now in Production 3 Phase of the support and maintenance life cycle. This has been rated as having Moderate security impact and is not currently planned to be addressed in future updates.

Comment 14 Fedora Update System 2014-09-23 05:00:42 UTC
net-snmp-5.7.2-23.fc21 has been pushed to the Fedora 21 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 18 errata-xmlrpc 2015-07-22 07:22:49 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 6

Via RHSA-2015:1385 https://rhn.redhat.com/errata/RHSA-2015-1385.html

Comment 20 errata-xmlrpc 2015-11-19 11:46:03 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 7

Via RHSA-2015:2345 https://rhn.redhat.com/errata/RHSA-2015-2345.html


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