CVE-2025-6966: Null-pointer dereference in python-apt TagSection.keys()
NULL pointer dereference in TagSection.keys() in python-apt on APT-based Linux systems allows a local attacker to cause a denial of service (process crash) via a crafted deb822 file with a malformed non-UTF-8 key.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 0.9.3.5ubuntu3+esm5 - Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 1.1.0~beta1ubuntu0.16.04.12+esm1 - Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 1.6.6ubuntu0.1~esm1 - Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 2.0.1ubuntu0.20.04.1+esm1 - Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 2.4.0ubuntu4.1 - Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 2.7.7ubuntu5.1 - Upgrade
Upgrade
ubuntu/python-aptto a version that resolves this vulnerability.Fixed in 3.0.0ubuntu1.1
Event History
Frequently Asked Questions
What is the severity of CVE-2025-6966?
CVE-2025-6966 has a high severity as it can lead to a denial of service via a crash.
How do I fix CVE-2025-6966?
To fix CVE-2025-6966, update python-apt to the latest version that addresses this vulnerability.
Who is affected by CVE-2025-6966?
CVE-2025-6966 affects APT-based Linux systems using python-apt.
What kind of attack does CVE-2025-6966 enable?
CVE-2025-6966 allows local attackers to exploit a NULL pointer dereference leading to a process crash.
What is the cause of CVE-2025-6966?
CVE-2025-6966 is caused by a crafted deb822 file with a malformed non-UTF-8 key.