CVE-2022-31001 Out-of-bounds Read in Sofia-SIP

High 7.5 Published Updated

An attacker can cause a crash in FreeSWITCH by sending a malicious SDP message to the Sofia-SIP library due to an out-of-bounds read.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2022-31001?

CVE-2022-31001 is a high-severity memory corruption vulnerability in Debian Debian Linux, published on 31 May 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, an attacker can send a message with evil sdp to FreeSWITCH, which may cause crash. This type of crash may be caused by `#define MATCH(s, m) (strncmp(s, m, n = sizeof(m) - 1) == 0)`, which will make `n` bigger and trigger out-of-bound access when `IS_NON_WS(s[n])`. Version 1.13.8 contains a patch for this issue.

Weakness: CWE-125

Which versions are affected by CVE-2022-31001?

It affects 2 products.

Linux distribution packages (1)
sofia-sip openSUSE:TumbleweedAll versions1.13.17+50-1.1

Products include Debian Debian Linux, Signalwire Sofia-Sip.

How do I fix CVE-2022-31001?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2022-31001 being exploited?

There is no known exploitation of CVE-2022-31001 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2022-31001, DEBIAN-CVE-2022-31001, GHSA-79jq-hh82-cv9g, UBUNTU-CVE-2022-31001, openSUSE-SU-2026:10964-1.

Is CVE-2022-31001 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free