NULL Pointer Dereference Affecting asterisk package, versions [15.0.0,15.2.2)


Severity

Recommended
0.0
high
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
4.13% (93rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-UNMANAGED-ASTERISK-2371540
  • published26 Jan 2022
  • disclosed22 Feb 2018
  • creditUnknown

Introduced: 22 Feb 2018

CVE-2018-7285  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade asterisk to version 15.2.2 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference. A NULL pointer access issue was discovered in Asterisk 15.x through 15.2.1. The RTP support in Asterisk maintains its own registry of dynamic codecs and desired payload numbers. While an SDP negotiation may result in a codec using a different payload number, these desired ones are still stored internally. When an RTP packet was received, this registry would be consulted if the payload number was not found in the negotiated SDP. This registry was incorrectly consulted for all packets, even those which are dynamic. If the payload number resulted in a codec of a different type than the RTP stream (for example, the payload number resulted in a video codec but the stream carried audio), a crash could occur if no stream of that type had been negotiated. This was due to the code incorrectly assuming that a stream of that type would always exist.

CVSS Base Scores

version 3.1