Advisory

UBUNTU-CVE-2023-22741

Also known as: CVE-2023-22741

Summary

The record has no summary.

Details

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.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2023-01-19 22:15 UTC
Modified
2026-04-22 14:02 UTC

Affected packages and fixes

sofia-sip

Debian packages (deb) · Ubuntu 18.04

Affected

  • introduced 0, fixed 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1 (ecosystem)

Fixed versions

1.12.11+20110422.1-2.1+deb10u3build0.18.04.1

Fix

  • Fixed version 1.12.11+20110422.1-2.1+deb10u3build0.18.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

sofia-sip

Debian packages (deb) · Ubuntu 20.04

Affected

  • introduced 0, fixed 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1 (ecosystem)

Fixed versions

1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1

Fix

  • Fixed version 1.12.11+20110422.1-2.1+deb10u3ubuntu0.20.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

sofia-sip

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1 (ecosystem)

Fixed versions

1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1

Fix

  • Fixed version 1.12.11+20110422.1-2.1+deb10u3ubuntu0.22.04.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences