Use-after-free in pycares - CVE-2025-48945
Published: July 14, 2025
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
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
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
- Remote denial of service in pycares
- Fedora 42 update for python-pycares
- Fedora 41 update for python-pycares
- openEuler 24.03 LTS update for python-pycares
- openEuler 22.03 LTS SP4 update for python-pycares
- openEuler 22.03 LTS SP3 update for python-pycares
- openEuler 24.03 LTS SP1 update for python-pycares
- openEuler 24.03 LTS SP2 update for python-pycares
- SUSE update for python-pycares