CVE-2023-22741: 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. Patch, in 1.13.11: https://github.com/freeswitch/sofia-sip/commit/da53e4fbcb138b080a75576dd49c1fff2ada2764
CVE-2023-32307 (https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-rm4c-ccvf-ff9c): Sofia-SIP is an open-source SIP User-Agent library, compliant with the IETF RFC3261 specification. Referring to [GHSA-8599-x7rq-fr54](https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8599-x7rq-fr54), several other potential heap-over-flow and integer-overflow in stun_parse_attr_error_code and stun_parse_attr_uint32 were found because the lack of attributes length check when Sofia-SIP handles STUN packets. The previous patch of [GHSA-8599-x7rq-fr54](https://github.com/freeswitch/sofia-sip/security/advisories/GHSA-8599-x7rq-fr54) fixed the vulnerability when attr_type did not match the enum value, but there are also vulnerabilities in the handling of other valid cases. The OOB read and integer-overflow made by attacker may lead to crash, high consumption of memory or even other more serious consequences. These issue have been addressed in version 1.13.15. Users are advised to upgrade.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6d35a3a78373c711a2b940a9c5a745c64c8cebaa commit 6d35a3a78373c711a2b940a9c5a745c64c8cebaa Author: Hans de Graaff <graaff@gentoo.org> AuthorDate: 2023-10-07 06:05:59 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2023-10-07 06:07:02 +0000 net-libs/sofia-sip: add 1.13.16 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Hans de Graaff <graaff@gentoo.org> net-libs/sofia-sip/Manifest | 1 + net-libs/sofia-sip/sofia-sip-1.13.16.ebuild | 44 +++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+)
The stable bug for this is running into all kinds of issues on different arches. With net-voip/telepathy-rakia the only reverse dependency and also being maintainer-needed perhaps we are better off treecleaning both packages.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=05860c3b5536481bb533cb2acf60619a3b196bad commit 05860c3b5536481bb533cb2acf60619a3b196bad Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:39:34 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:40:08 +0000 net-im/telepathy-connection-managers: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-im/telepathy-connection-managers/metadata.xml | 18 ---------- .../telepathy-connection-managers-2-r2.ebuild | 38 ---------------------- profiles/arch/alpha/package.use.mask | 4 --- profiles/arch/arm/package.use.mask | 4 --- profiles/arch/arm64/package.use.mask | 4 --- profiles/arch/ia64/package.use.mask | 4 --- profiles/arch/powerpc/package.use.mask | 4 --- profiles/arch/sparc/package.use.mask | 4 --- profiles/base/package.use.mask | 4 --- profiles/package.mask | 5 --- 10 files changed, 89 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f06315b1722b4b88be94a5b2134f7df28221e5b commit 6f06315b1722b4b88be94a5b2134f7df28221e5b Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:39:08 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:39:08 +0000 net-libs/sofia-sip: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-libs/sofia-sip/Manifest | 2 -- net-libs/sofia-sip/metadata.xml | 8 ----- net-libs/sofia-sip/sofia-sip-1.13.16.ebuild | 48 ----------------------------- net-libs/sofia-sip/sofia-sip-1.13.9.ebuild | 44 -------------------------- profiles/package.mask | 1 - 5 files changed, 103 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=078b4bf6f5fbf025d07c6fa185a1e97a424e7018 commit 078b4bf6f5fbf025d07c6fa185a1e97a424e7018 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:38:52 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:38:52 +0000 net-libs/telepathy-accounts-signon: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-libs/telepathy-accounts-signon/Manifest | 1 - net-libs/telepathy-accounts-signon/metadata.xml | 8 -------- .../telepathy-accounts-signon-2.1.ebuild | 24 ---------------------- profiles/package.mask | 1 - 4 files changed, 34 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=57fefd09ac431c424c7cdf1dffd4d3976b772e81 commit 57fefd09ac431c424c7cdf1dffd4d3976b772e81 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:38:35 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:38:35 +0000 net-libs/telepathy-farstream: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-libs/telepathy-farstream/Manifest | 1 - net-libs/telepathy-farstream/metadata.xml | 8 ---- .../telepathy-farstream-0.6.2-r1.ebuild | 50 ---------------------- profiles/package.mask | 1 - 4 files changed, 60 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd936ffb150439c993d361fb4fbcddc6a7c9a2e5 commit fd936ffb150439c993d361fb4fbcddc6a7c9a2e5 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:38:21 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:38:21 +0000 net-libs/telepathy-qt: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-libs/telepathy-qt/Manifest | 1 - ...lepathy-qt-0.9.8-fix-tests-finding-glib-2.patch | 23 ------ net-libs/telepathy-qt/metadata.xml | 23 ------ net-libs/telepathy-qt/telepathy-qt-0.9.8-r2.ebuild | 79 -------------------- net-libs/telepathy-qt/telepathy-qt-9999.ebuild | 83 ---------------------- profiles/package.mask | 1 - 6 files changed, 210 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f08e06c21690ad0cf43d042e3211f3eafd25d8c2 commit f08e06c21690ad0cf43d042e3211f3eafd25d8c2 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:37:53 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:37:53 +0000 net-voip/telepathy-gabble: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-voip/telepathy-gabble/Manifest | 2 - ...lepathy-gabble-0.18.4-build-fix-no-jingle.patch | 29 --- .../telepathy-gabble-0.18.4-openssl-1.1.patch | 223 --------------------- net-voip/telepathy-gabble/metadata.xml | 12 -- .../telepathy-gabble-0.18.4-r5.ebuild | 86 -------- profiles/package.mask | 1 - 6 files changed, 353 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=37e204946a5e80eb8bc491d0ab098aa870c584f5 commit 37e204946a5e80eb8bc491d0ab098aa870c584f5 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:37:28 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:37:28 +0000 net-voip/telepathy-rakia: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-voip/telepathy-rakia/Manifest | 2 - net-voip/telepathy-rakia/metadata.xml | 8 ---- .../telepathy-rakia-0.8.0-r1.ebuild | 44 ---------------------- profiles/package.mask | 1 - 4 files changed, 55 deletions(-) https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23315f44c549fb937c1d0f7349d252e7a0b9e3d9 commit 23315f44c549fb937c1d0f7349d252e7a0b9e3d9 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2024-05-08 09:37:00 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2024-05-08 09:37:10 +0000 net-voip/telepathy-salut: Remove last-rited pkg Bug: https://bugs.gentoo.org/926193 Bug: https://bugs.gentoo.org/891791 Signed-off-by: Michał Górny <mgorny@gentoo.org> net-voip/telepathy-salut/Manifest | 2 - .../telepathy-salut-0.5.0-uninitialized.patch | 13 -- .../files/telepathy-salut-0.8.1-openssl-1.1.patch | 188 --------------------- net-voip/telepathy-salut/metadata.xml | 8 - .../telepathy-salut-0.8.1-r5.ebuild | 72 -------- profiles/package.mask | 1 - 6 files changed, 284 deletions(-)
Re-opening since we still need to consider a GLSA for this package.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/data/glsa.git/commit/?id=cebb01e5fb39e6103d5f68c94f8836cf6d7f5e8c commit cebb01e5fb39e6103d5f68c94f8836cf6d7f5e8c Author: GLSAMaker <glsamaker@gentoo.org> AuthorDate: 2024-07-05 06:01:03 +0000 Commit: Hans de Graaff <graaff@gentoo.org> CommitDate: 2024-07-05 06:01:50 +0000 [ GLSA 202407-10 ] Sofia-SIP: Multiple Vulnerabilities Bug: https://bugs.gentoo.org/891791 Signed-off-by: GLSAMaker <glsamaker@gentoo.org> Signed-off-by: Hans de Graaff <graaff@gentoo.org> glsa-202407-10.xml | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+)