what you don't know can hurt you
Home Files News &[SERVICES_TAB]About Contact Add New

Asterisk Project Security Advisory - AST-2020-001

Asterisk Project Security Advisory - AST-2020-001
Posted Nov 6, 2020
Authored by Sandro Gauci, Kevin Harwell | Site asterisk.org

Asterisk Project Security Advisory - Upon receiving a new SIP Invite, Asterisk did not return the created dialog locked or referenced. This caused a gap between the creation of the dialog object, and its next use by the thread that created it. Depending upon some off nominal circumstances, and timing it was possible for another thread to free said dialog in this gap. Asterisk could then crash when the dialog object, or any of its dependent objects were de-referenced, or accessed next by the initial creation thread.

tags | advisory
SHA-256 | 0ffdabc3873921af089a27d73efac1246b61b827d0d4706a0053ec41b4494fd6

Asterisk Project Security Advisory - AST-2020-001

Change Mirror Download
               Asterisk Project Security Advisory - AST-2020-001

Product Asterisk
Summary Remote crash in res_pjsip_session
Nature of Advisory Denial of service
Susceptibility Remote authenticated sessions
Severity Moderate
Exploits Known No
Reported On August 31, 2020
Reported By Sandro Gauci
Posted On November 5, 2020
Last Updated On November 4, 2020
Advisory Contact kharwell AT sangoma DOT com
CVE Name

Description Upon receiving a new SIP Invite, Asterisk did not
return the created dialog locked or referenced. This
caused a “gap” between the creation of the dialog
object, and its next use by the thread that created
it. Depending upon some off nominal circumstances, and
timing it was possible for another thread to free said
dialog in this “gap”. Asterisk could then crash when
the dialog object, or any of its dependent objects
were de-referenced, or accessed next by the initial
creation thread.

Note, however that this crash can only occur when
using a connection oriented protocol (e.g. TCP, TLS)
for the SIP transport. If you are using UDP then your
system should not be affected.

As well, the remote client must be authenticated, or
Asterisk must be configured for anonymous calling in
order for this problem to manifest.
Modules Affected res_pjsip.c, res_pjsip_session.c, res_pjsip_pubsub.c

Resolution Asterisk now returns the newly created dialog object both
locked, and with its reference count increased. The lock,
and added reference are then held until such a time it is
safe to release both the lock, and decrement the reference
count.

Affected Versions
Product Release Series
Asterisk Open Source 13.x All releases
Asterisk Open Source 16.x All releases
Asterisk Open Source 17.x All releases
Asterisk Open Source 18.x All releases
Certified Asterisk 16.8 All releases

Corrected In
Product Release
Asterisk Open Source 13.37.1, 16.14.1, 17.8.1, 18.0.1
Certified Asterisk 16.8-cert5

Patches
SVN URL Revision
http://downloads.asterisk.org/pub/security/AST-2020-001-13.diff Asterisk
13
http://downloads.asterisk.org/pub/security/AST-2020-001-16.diff Asterisk
16
http://downloads.asterisk.org/pub/security/AST-2020-001-17.diff Asterisk
17
http://downloads.asterisk.org/pub/security/AST-2020-001-18.diff Asterisk
18
http://downloads.asterisk.org/pub/security/AST-2020-001-16.8.diff Certified
Asterisk
16.8-cert5

Links https://issues.asterisk.org/jira/browse/ASTERISK-29057

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-2020-001.pdf and
http://downloads.digium.com/pub/security/AST-2020-001.html

Revision History
Date Editor Revisions Made
November 5, 2020 Kevin Harwell Initial revision

Asterisk Project Security Advisory - AST-2020-001
Copyright © 2020 Digium, Inc. All Rights Reserved.
Permission is hereby granted to distribute and publish this advisory in its
original, unaltered form.
Login or Register to add favorites

File Archive:

April 2024

  • Su
  • Mo
  • Tu
  • We
  • Th
  • Fr
  • Sa
  • 1
    Apr 1st
    10 Files
  • 2
    Apr 2nd
    26 Files
  • 3
    Apr 3rd
    40 Files
  • 4
    Apr 4th
    6 Files
  • 5
    Apr 5th
    26 Files
  • 6
    Apr 6th
    0 Files
  • 7
    Apr 7th
    0 Files
  • 8
    Apr 8th
    22 Files
  • 9
    Apr 9th
    14 Files
  • 10
    Apr 10th
    10 Files
  • 11
    Apr 11th
    13 Files
  • 12
    Apr 12th
    14 Files
  • 13
    Apr 13th
    0 Files
  • 14
    Apr 14th
    0 Files
  • 15
    Apr 15th
    30 Files
  • 16
    Apr 16th
    10 Files
  • 17
    Apr 17th
    22 Files
  • 18
    Apr 18th
    45 Files
  • 19
    Apr 19th
    8 Files
  • 20
    Apr 20th
    0 Files
  • 21
    Apr 21st
    0 Files
  • 22
    Apr 22nd
    11 Files
  • 23
    Apr 23rd
    68 Files
  • 24
    Apr 24th
    0 Files
  • 25
    Apr 25th
    0 Files
  • 26
    Apr 26th
    0 Files
  • 27
    Apr 27th
    0 Files
  • 28
    Apr 28th
    0 Files
  • 29
    Apr 29th
    0 Files
  • 30
    Apr 30th
    0 Files

Top Authors In Last 30 Days

File Tags

Systems

packet storm

© 2022 Packet Storm. All rights reserved.

Services
Security Services
Hosting By
Rokasec
close