# CVE-2025-6966: Null-pointer dereference in python-apt TagSection.keys()

- Priority: **Routine**
- Reason: Not severe (CVSS 6.9, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2025-12-05 · Modified: 2025-12-15
- Aliases: UBUNTU-CVE-2025-6966, USN-7916-2, DEBIAN-CVE-2025-6966, DLA-4408-1, USN-7916-1
- Record: https://cvemate.com/vulnerability/CVE-2025-6966 · JSON: https://cvemate.com/vulnerability/CVE-2025-6966/json

## Description

```text
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.
```

## Signals

- CVSS: 6.9 medium (v4.0, CVE.org) CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
- EPSS: 0.157%, percentile 5.07%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- canonical python-apt: ≥ 3.0, \< 3.0.0ubuntu1.1 \| ≥ 3.0, \< 3.0.0ubuntu0.25.04.1 \| ≥ 2.7, \< 2.7.7ubuntu5.1 \| ≥ 2.4, \< 2.4.0ubuntu4.1 \| ≥ 2.0, \< 2.0.1ubuntu0.20.04.1+esm1 \| ≥ 1.6, \< 1.6.6ubuntu0.1~esm1 \| ≥ 1.1, \< 1.1.0~beta1ubuntu0.16.04.12+esm1 \| \< 0.9.3.5ubuntu3+esm5
- debian python-apt (Debian): \< 2.2.1.1 \| All versions (No fix recorded) \| \< 3.1.0
- ubuntu python-apt (Ubuntu): \< 2.0.1ubuntu0.20.04.2esm2 \| \< 0.9.3.5ubuntu3+esm5 \| \< 1.1.0~beta1ubuntu0.16.04.12+esm1 \| \< 1.6.6ubuntu0.1~esm1 \| \< 2.0.1ubuntu0.20.04.1+esm1 \| \< 2.4.0ubuntu4.1 \| \< 2.7.7ubuntu5.1 \| \< 3.0.0ubuntu1.1
- debian debian\_linux: 11.0
- ubuntu python-apt: \< 0.9.3.11 \| ≥ 1.6.0, \< 1.6.6 \| ≥ 2.0.0, \< 2.0.1 \| ≥ 2.7.0, \< 2.7.7 \| 0.9.3.5:ubuntu1 \| 0.9.3.5:ubuntu2 \| 0.9.3.11 \| 0.9.3.11:build1 \| 1.1.0:beta1 \| 1.1.0:beta1build1 \| 1.1.0:beta1ubuntu0.16.04.1 \| 1.1.0:beta1ubuntu0.16.04.10 \| 1.1.0:beta1ubuntu0.16.04.11 \| 1.1.0:beta1ubuntu0.16.04.2 \| 1.1.0:beta1ubuntu0.16.04.3 \| 1.1.0:beta1ubuntu0.16.04.4 \| 1.1.0:beta1ubuntu0.16.04.5 \| 1.1.0:beta1ubuntu0.16.04.7 \| 1.1.0:beta1ubuntu0.16.04.8 \| 1.1.0:beta1ubuntu0.16.04.9 \| 1.1.0:beta2ubuntu1 \| 1.1.0:beta3 \| 1.1.0:beta4 \| 1.1.0:beta4ubuntu1 \| 1.1.0:beta5 \| 1.1.0:beta5ubuntu1 \| 1.6.6 \| 2.0.1 \| 2.4.0:\\+22.10 \| 2.4.0 \| 2.4.0:ubuntu1 \| 2.4.0:ubuntu2 \| 2.4.0:ubuntu3 \| 2.4.0:ubuntu4 \| 2.7.7 \| 2.7.7:build1 \| 2.7.7:ubuntu1 \| 2.7.7:ubuntu2 \| 2.7.7:ubuntu3 \| 2.7.7:ubuntu4 \| 2.7.7:ubuntu5 \| 3.0.0 \| 3.0.0:ubuntu1

## References

- <https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/2091865>
- <https://lists.debian.org/debian-lts-announce/2025/12/msg00019.html>
- <https://ubuntu.com/security/CVE-2025-6966>
- <https://www.cve.org/CVERecord?id=CVE-2025-6966>
- <https://ubuntu.com/security/notices/USN-7916-1>
- <https://ubuntu.com/security/notices/USN-7916-2>
- <https://bugs.launchpad.net/bugs/2137070>
- <https://security-tracker.debian.org/tracker/CVE-2025-6966>

---

Data as of 2026-12-05T02:45:45.880Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
