Use-after-free in pycares - CVE-2025-48945

 

Use-after-free in pycares - CVE-2025-48945

Published: July 14, 2025


Vulnerability identifier: #VU112888
CSH Severity: Medium
CVSS v4: 8.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2025-48945
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to perform a denial of service (DoS) attack.

The vulnerability exists due to a use-after-free error caused by improper handling of callback references when the Channel object is destroyed. A remote attacker can send specially crafted DNS queries to the affected application and perform a denial of service attack.


Affected software

pycares
SUSE Linux Enterprise Server 15 SP5
SUSE Linux Enterprise Server 15 SP4
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
Python 3 Module
openSUSE Leap
openEuler
Fedora
python-pycares-debuginfo
python-pycares-help
python-pycares-debugsource
python-pycares
python3-pycares
python311-pycares
python311-pycares-debuginfo

How to mitigate CVE-2025-48945

Install updates from vendor's website.

pycares - update to 4.9.0
python-pycares-debuginfo - update to 4.9.0-1
python-pycares-help - update to 4.9.0-1
python-pycares-debugsource - update to 4.9.0-1
python-pycares - update to 4.9.0-1
python3-pycares - update to 4.9.0-1
python-pycares - addressed in versions 4.9.0-1.fc41, 4.9.0-1.fc42
python-pycares-debugsource - update to 4.10.0-150400.9.8.1
python311-pycares - update to 4.10.0-150400.9.8.1
python311-pycares-debuginfo - update to 4.10.0-150400.9.8.1

External References

Related Security Bulletins