Debian DLA-3292-1 : sofia-sip - LTS security update

critical Nessus Plugin ID 170763

Synopsis

The remote Debian host is missing a security-related update.

Description

The remote Debian 10 host has packages installed that are affected by a vulnerability as referenced in the dla-3292 advisory.

- Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. In affected versions Sofia-SIP **lacks both message length and attributes length checks** when it handles STUN packets, leading to controllable heap-over-flow. For example, in stun_parse_attribute(), after we get the attribute's type and length value, the length will be used directly to copy from the heap, regardless of the message's left size. Since network users control the overflowed length, and the data is written to heap chunks later, attackers may achieve remote code execution by heap grooming or other exploitation methods. The bug was introduced 16 years ago in sofia-sip 1.12.4 (plus some patches through 12/21/2006) to in tree libs with git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3774 d0543943-73ff-0310-b7d9-9358b9ac24b2. Users are advised to upgrade. There are no known workarounds for this vulnerability. (CVE-2023-22741)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade the sofia-sip packages.

For Debian 10 buster, this problem has been fixed in version 1.12.11+20110422.1-2.1+deb10u2.

See Also

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1029654

https://security-tracker.debian.org/tracker/source-package/sofia-sip

https://www.debian.org/lts/security/2023/dla-3292

https://security-tracker.debian.org/tracker/CVE-2023-22741

https://packages.debian.org/source/buster/sofia-sip

Plugin Details

Severity: Critical

ID: 170763

File Name: debian_DLA-3292.nasl

Version: 1.1

Type: local

Agent: unix

Published: 1/29/2023

Updated: 9/5/2023

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 6.7

CVSS v2

Risk Factor: Critical

Base Score: 10

Temporal Score: 7.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:C/I:C/A:C

CVSS Score Source: CVE-2023-22741

CVSS v3

Risk Factor: Critical

Base Score: 9.8

Temporal Score: 8.8

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Temporal Vector: CVSS:3.0/E:P/RL:O/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:libsofia-sip-ua-dev, p-cpe:/a:debian:debian_linux:libsofia-sip-ua-glib-dev, p-cpe:/a:debian:debian_linux:libsofia-sip-ua-glib3, p-cpe:/a:debian:debian_linux:libsofia-sip-ua0, p-cpe:/a:debian:debian_linux:sofia-sip-bin, p-cpe:/a:debian:debian_linux:sofia-sip-doc, cpe:/o:debian:debian_linux:10.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 1/29/2023

Vulnerability Publication Date: 1/19/2023

Reference Information

CVE: CVE-2023-22741