==================================================================== CERT-Renater Note d'Information No. 2017/VULN339 _____________________________________________________________________ DATE : 10/11/2017 HARDWARE PLATFORM(S): / OPERATING SYSTEM(S): Systems running Asterisk Open Source versions prior to 13.18.1, 14.7.1, 15.1.1, Certified Asterisk versions prior to 13.13-cert7. ===================================================================== http://downloads.asterisk.org/pub/security/AST-2017-009.html http://downloads.asterisk.org/pub/security/AST-2017-010.html http://downloads.asterisk.org/pub/security/AST-2017-011.html _______________________________________________________________ Asterisk Project Security Advisory - AST-2017-009 Product Asterisk Summary Buffer overflow in pjproject header parsing can cause crash in Asterisk Nature of Advisory Denial of Service Susceptibility Remote Unauthenticated Sessions Severity Critical Exploits Known No Reported On October 5, 2017 Reported By Youngsung Kim at LINE Corporation Posted On Last Updated On October 25, 2017 Advisory Contact gjoseph AT digium DOT com CVE Name Description By carefully crafting invalid values in the Cseq and the Via header port, pjproject’s packet parsing code can create strings larger than the buffer allocated to hold them. This will usually cause Asterisk to crash immediately. The packets do not have to be authenticated. Resolution Stricter validation is now done on strings that represent numeric values before they are converted to intrinsic types. Invalid values now cause packet processing to stop and error messages to be emitted. Affected Versions Product Release Series Asterisk Open Source 13.x All Releases Asterisk Open Source 14.x All Releases Asterisk Open Source 15.x All Releases Certified Asterisk 13.13 All Releases Corrected In Product Release Asterisk Open Source 13.18.1, 14.7.1, 15.1.1 Certified Asterisk 13.13-cert7 Patches SVN URL Revision http://downloads.asterisk.org/pub/security/AST-2017-009-13.diff Asterisk 13 http://downloads.asterisk.org/pub/security/AST-2017-009-14.diff Asterisk 14 http://downloads.asterisk.org/pub/security/AST-2017-009-15.diff Asterisk 15 http://downloads.asterisk.org/pub/security/AST-2017-009-13.13.diff Certified Asterisk 13.13 Links https://issues.asterisk.org/jira/browse/ASTERISK-27319 Asterisk Project Security Advisories are posted at http://www.asterisk.org/security This document may be superseded by later versions; if so, the latest version will be posted at http://downloads.digium.com/pub/security /AST-2017-009.pdf and http://downloads.digium.com/pub/security /AST-2017-009.html Revision History Date Editor Revisions Made October 25, 2017 George Joseph Initial Revision Asterisk Project Security Advisory - AST-2017-009 Copyright © 2017 Digium, Inc. All Rights Reserved. Permission is hereby granted to distribute and publish this advisory in its original, unaltered form. _______________________________________________________________ Asterisk Project Security Advisory - AST-2017-010 Product Asterisk Summary Buffer overflow in CDR's set user Nature of Advisory Buffer Overflow Susceptibility Remote Authenticated Sessions Severity Moderate Exploits Known No Reported On October 9, 2017 Reported By Richard Mudgett Posted On Last Updated On October 25, 2017 Advisory Contact Rmudgett AT digium DOT com CVE Name Description No size checking is done when setting the user field for Party B on a CDR. Thus, it is possible for someone to use an arbitrarily large string and write past the end of the user field storage buffer. The earlier AST-2017-001 advisory for the CDR user field overflow was for the Party A buffer. This currently affects any system using CDR's that also make use of the following: * The 'X-ClientCode' header within a SIP INFO message when using chan_sip and the 'useclientcode' option is enabled (note, it's disabled by default). * The CDR dialplan function executed from AMI when setting the user field. * The AMI Monitor action when using a long file name/path. Resolution The CDR engine now only copies up to the maximum allowed characters into the user field. Any characters outside the maximum are truncated. Affected Versions Product Release Series Asterisk Open Source 13.x All Releases Asterisk Open Source 14.x All Releases Asterisk Open Source 15.x All Releases Certified Asterisk 13.13 All Releases Corrected In Product Release Asterisk Open Source 13.18.1, 14.7.1, 15.1.1 Certified Asterisk 13.13-cert7 Patches SVN URL Revision http://downloads.asterisk.org/pub/security/AST-2017-010-13.diff Asterisk 13 http://downloads.asterisk.org/pub/security/AST-2017-010-14.diff Asterisk 14 http://downloads.asterisk.org/pub/security/AST-2017-010-15.diff Asterisk 15 http://downloads.asterisk.org/pub/security/AST-2017-010-13.13.diff Certified Asterisk 13.13 Links https://issues.asterisk.org/jira/browse/ASTERISK-27337 Asterisk Project Security Advisories are posted at http://www.asterisk.org/security This document may be superseded by later versions; if so, the latest version will be posted at http://downloads.digium.com/pub/security/AST-2017-010.pdf and http://downloads.digium.com/pub/security/AST-2017-010.html Revision History Date Editor Revisions Made October 12, 2017 Richard Mudgett Initial Revision Asterisk Project Security Advisory - AST-2017-010 Copyright © 2017 Digium, Inc. All Rights Reserved. Permission is hereby granted to distribute and publish this advisory in its original, unaltered form. _______________________________________________________________ Asterisk Project Security Advisory - AST-2017-011 Product Asterisk Summary Memory/File Descriptor/RTP leak in pjsip session resource Nature of Advisory Memory/File Descriptor/RTP Port leak Susceptibility Remote Sessions Severity Minor Exploits Known No Reported On October 15, 2017 Reported By Correy Farrell Posted On Last Updated On November 8, 2017 Advisory Contact kharwell AT digium DOT com CVE Name Description A memory leak occurs when an Asterisk pjsip session object is created and that call gets rejected before the session itself is fully established. When this happens the session object never gets destroyed. This then leads to file descriptors and RTP ports being leaked as well. Resolution Asterisk now releases the session object, and all associated memory (file descriptors and RTP ports) when a call gets rejected. Affected Versions Product Release Series Asterisk Open Source 13.x 13.5.0+ Asterisk Open Source 14.x All Releases Asterisk Open Source 15.x All Releases Certified Asterisk 13.13 All Releases Corrected In Product Release Asterisk Open Source 13.18.1, 14.7.1, 15.1.1 Certified Asterisk 13.13-cert7 Patches SVN URL Revision http://downloads.asterisk.org/pub/security/AST-2017-011-13.diff Asterisk 13 http://downloads.asterisk.org/pub/security/AST-2017-011-14.diff Asterisk 14 http://downloads.asterisk.org/pub/security/AST-2017-011-15.diff Asterisk 15 http://downloads.asterisk.org/pub/security/AST-2017-011-13.13.diff Certified Asterisk 13.13 Links https://issues.asterisk.org/jira/browse/ASTERISK-27345 Asterisk Project Security Advisories are posted at http://www.asterisk.org/security This document may be superseded by later versions; if so, the latest version will be posted at http://downloads.digium.com/pub/security/AST-2017-011.pdf and http://downloads.digium.com/pub/security/AST-2017-011.html Revision History Date Editor Revisions Made October 19, 2017 Kevin Harwell Initial Revision November 8, 2017 Kevin Harwell Updated to mention about FDs and RTP ports being leaked as well. Asterisk Project Security Advisory - AST-2017-011 Copyright © 2017 Digium, Inc. All Rights Reserved. Permission is hereby granted to distribute and publish this advisory in its original, unaltered form. ========================================================== + CERT-RENATER | tel : 01-53-94-20-44 + + 23 - 25 Rue Daviel | fax : 01-53-94-20-41 + + 75013 Paris | email: cert@support.renater.fr + ==========================================================