CVE-2022-40304
high · 7.8An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
An issue was discovered in libxml2 before 2.10.3. Certain invalid XML entity definitions can corrupt a hash table key, potentially leading to subsequent logic errors. In one case, a double-free can be provoked.
CVE-2022-40304 is rated HIGH (7.8), with 22 indexed affected package builds across 4 distributions.
https://pkgseek.com/embed/security/CVE-2022-40304?locale=en
Linux distributions often keep an upstream version and backport security patches into the distribution revision. PkgSeek therefore uses exact package versions and vendor advisories; a lower-looking upstream version alone does not prove that a package is vulnerable.
Newest affected build per package, repository source and distribution release.
libxml22.9.7-13.0.1.al8.1Fixed in 2.9.7-15.0.1.al8.1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2libxml2-devel2.9.7-13.0.1.al8.1Fixed in 2.9.7-15.0.1.al8.1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2-develpython3-libxml22.9.7-13.0.1.al8.1Fixed in 2.9.7-15.0.1.al8.1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade python3-libxml2libxml22.9.7-15.el8Fixed in 2.9.7-15.el8_7.1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2libxml2-devel2.9.7-15.el8Fixed in 2.9.7-15.el8_7.1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2-develpython3-libxml22.9.7-15.el8Fixed in 2.9.7-15.el8_7.1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade python3-libxml2libxml22.9.13-2.el9Fixed in 2.9.13-3.el9_1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2libxml2-devel2.9.13-2.el9Fixed in 2.9.13-3.el9_1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2-develpython3-libxml22.9.13-2.el9Fixed in 2.9.13-3.el9_1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade python3-libxml2libxml22.9.13-1.el9_0.1Fixed in 2.9.13-3.el9_1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2libxml2-devel2.9.13-1.el9_0.1Fixed in 2.9.13-3.el9_1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade libxml2-develpython3-libxml22.9.13-1.el9_0.1Fixed in 2.9.13-3.el9_1Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo dnf upgrade python3-libxml2libxml22.9.10+dfsg-5Fixed in 2.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2libxml2-dev2.9.10+dfsg-5Fixed in 2.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2-devlibxml2-doc2.9.10+dfsg-5Fixed in 2.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2-doclibxml2-utils2.9.10+dfsg-5Fixed in 2.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2-utilspython3-libxml22.9.10+dfsg-5Fixed in 2.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade python3-libxml2python3-libxml2-dbg2.9.10+dfsg-5Fixed in 2.9.10+dfsg-5ubuntu0.20.04.5UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade python3-libxml2-dbglibxml22.9.13+dfsg-1build1Fixed in 2.9.13+dfsg-1ubuntu0.2UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2libxml2-dev2.9.13+dfsg-1build1Fixed in 2.9.13+dfsg-1ubuntu0.2UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2-devlibxml2-doc2.9.13+dfsg-1build1Fixed in 2.9.13+dfsg-1ubuntu0.2UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2-doclibxml2-utils2.9.13+dfsg-1build1Fixed in 2.9.13+dfsg-1ubuntu0.2UBUNTU-CVE-2022-40304· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
USN-5760-1· Affected according to vendor evidenceEvidence basis: Official distribution record matches the exact indexed package version
Verified 7/16/2026
Update from the configured distribution repositories, then verify the installed full package version against the vendor advisory.
sudo apt update && sudo apt install --only-upgrade libxml2-utilsCached Chinese vulnerability records provide local-language classification and aliases. They do not override distribution package or backport status.