CVEfocus › CVE database › CVE-2022-31001

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

CVSS 7.5 HighEPSS 2.1% (higher than 82% of CVEs)Published 2022-05-31Updated 2024-08-03Assigner: GitHub_M

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.

CWE-125

What to do

Fixed builds are available from Alpine, Debian, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

17Fixed
1Fix pending

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04sofia-sipFixed1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1UBUNTU-CVE-2022-31001
Ubuntu 20.04sofia-sipFixed1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1UBUNTU-CVE-2022-31001
Ubuntu 18.04sofia-sipFixed1.12.11+20110422.1-2.1+deb10u3build0.18.04.1UBUNTU-CVE-2022-31001
Ubuntu 16.04sofia-sipFix pending1.12.11+20110422.1-2.1+deb10u3ubuntu0.16.04.1~esm1 (Ubuntu Pro)UBUNTU-CVE-2022-31001
Debian 14sofia-sipFixed1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31001
Debian 13sofia-sipFixed1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31001
Debian 12sofia-sipFixed1.12.11+20110422.1+1e14eea~dfsg-3DEBIAN-CVE-2022-31001
Alpine Linux 3.24sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.23sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.22sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.21sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.20sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.19sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.18sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.17sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.16sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.15sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001
Alpine Linux 3.14sofia-sipFixed1.13.8-r0ALPINE-CVE-2022-31001

What the vendor says

As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.