Heap-based buffer overflow in Sofia-SIP - CVE-2022-31003

 

Heap-based buffer overflow in Sofia-SIP - CVE-2022-31003

Published: June 6, 2022


Vulnerability identifier: #VU64006
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-31003
CWE-ID: CWE-122
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error in the "sdp_parse" function. A remote attacker can send a specially crafted sdp message, trigger a heap-based buffer overflow and execute arbitrary code on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

Sofia-SIP
Gentoo Linux
Debian Linux
Ubuntu
libsofia-sip-ua-glib3 (Ubuntu package)
sofia-sip-bin (Ubuntu package)
libsofia-sip-ua0 (Ubuntu package)
sofia-sip (Debian package)
net-libs/sofia-sip

How to mitigate CVE-2022-31003

Install updates from vendor's website.

Sofia-SIP - update to 1.13.8
libsofia-sip-ua-glib3 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.12.11+20110422.1+1e14eea~dfsg-3ubuntu0.1, 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1, 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1, 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
sofia-sip-bin (Ubuntu package) - addressed in versions Ubuntu Pro, 1.12.11+20110422.1+1e14eea~dfsg-3ubuntu0.1, 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1, 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1, 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
libsofia-sip-ua0 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.12.11+20110422.1+1e14eea~dfsg-3ubuntu0.1, 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1, 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1, 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
sofia-sip (Debian package) - update to 1.12.11+20110422.1-2.1+deb11u1
net-libs/sofia-sip - update to 1.13.8

External References

Related Security Bulletins