Bug 1219867 (CVE-2024-25110)

Summary: VUL-0: CVE-2024-25110: python-uamqp: use-after-free issue in open_get_offered_capabilities
Product: [Novell Products] SUSE Security Incidents Reporter: SMASH SMASH <smash_bz>
Component: IncidentsAssignee: John Paul Adrian Glaubitz <adrian.glaubitz>
Status: IN_PROGRESS --- QA Contact: Security Team bot <security-team>
Severity: Normal    
Priority: P3 - Medium CC: adrian.glaubitz, andrea.mattiazzo
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Other   
URL: https://smash.suse.de/issue/393767/
Whiteboard: CVSSv3.1:SUSE:CVE-2024-25110:7.5:(AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H)
Found By: Security Response Team Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description SMASH SMASH 2024-02-13 08:22:11 UTC
The UAMQP is a general purpose C library for AMQP 1.0. During a call to open_get_offered_capabilities, a memory allocation may fail causing a use-after-free issue and if a client called it during connection communication it may cause a remote code execution. Users are advised to update the submodule with commit `30865c9c`. There are no known workarounds for this vulnerability.

References:
http://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2024-25110
https://github.com/Azure/azure-uamqp-c/security/advisories/GHSA-c646-4whf-r67v
https://www.cve.org/CVERecord?id=CVE-2024-25110

Patch:
https://github.com/Azure/azure-uamqp-c/commit/30865c9ccedaa32ddb036e87a8ebb52c3f18f695
Comment 1 Andrea Mattiazzo 2024-02-13 08:22:48 UTC
Tracking as affected:
- SUSE:SLE-12-SP1:Update/python-uamqp
- SUSE:SLE-15-SP1:Update/python-uamqp 
- openSUSE:Factory/python-uamqp
Comment 2 John Paul Adrian Glaubitz 2024-02-13 10:14:27 UTC
Submitted a fix for SUSE:SLE-15-SP1:Update: https://build.suse.de/request/show/321306

I cannot submit a fix for openSUSE:Factory at the moment since the package fails to build from source with Python 3.12: https://github.com/Azure/azure-uamqp-python/issues/379

The version in SUSE:SLE-12-SP1:Update is very old so that the patch won't apply.

Mu suggestion would be to update python-uamqp in SUSE:SLE-12-SP1:Update to the version found in SUSE:SLE-15-SP1:Update to fix both CVE-2024-21646 (bsc#1219409) and CVE-2024-25110 (bsc#1219867).
Comment 3 John Paul Adrian Glaubitz 2024-02-13 11:18:58 UTC
Submitted an updated package to openSUSE:Factory now: https://build.opensuse.org/request/show/114637

Updating the package in SUSE:SLE-12-SP1:Update is not trivial since that would require a much newer version of CMake.
Comment 4 John Paul Adrian Glaubitz 2024-02-13 12:31:14 UTC
(In reply to John Paul Adrian Glaubitz from comment #3)
> Submitted an updated package to openSUSE:Factory now:
> https://build.opensuse.org/request/show/114637

Corrected link: https://build.opensuse.org/request/show/1146374
Comment 5 Maintenance Automation 2024-02-22 16:30:09 UTC
SUSE-SU-2024:0591-1: An update that solves one vulnerability can now be installed.

Category: security (important)
Bug References: 1219867
CVE References: CVE-2024-25110
Sources used:
openSUSE Leap 15.5 (src): python-uamqp-1.5.3-150100.4.13.1
Public Cloud Module 15-SP2 (src): python-uamqp-1.5.3-150100.4.13.1
Public Cloud Module 15-SP3 (src): python-uamqp-1.5.3-150100.4.13.1
Public Cloud Module 15-SP4 (src): python-uamqp-1.5.3-150100.4.13.1
Public Cloud Module 15-SP5 (src): python-uamqp-1.5.3-150100.4.13.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.