CVE-2022-40304
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.
What to do
Fixed builds are available from AlmaLinux, Alpine, Debian, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 22.04 | libxml2 | Fixed | 2.9.13+dfsg-1ubuntu0.2 | UBUNTU-CVE-2022-40304 |
| Ubuntu 20.04 | libxml2 | Fixed | 2.9.10+dfsg-5ubuntu0.20.04.5 | UBUNTU-CVE-2022-40304 |
| Ubuntu 18.04 | libxml2 | Fixed | 2.9.4+dfsg1-6.1ubuntu1.8 | UBUNTU-CVE-2022-40304 |
| Ubuntu 16.04 | libxml2 | Fix pending | 2.9.3+dfsg1-1ubuntu0.7+esm4 (Ubuntu Pro) | UBUNTU-CVE-2022-40304 |
| Ubuntu 14.04 | libxml2 | Fix pending | 2.9.1+dfsg1-3ubuntu4.13+esm4 (Ubuntu Pro) | UBUNTU-CVE-2022-40304 |
| Debian 14 | libxml2 | Fixed | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40304 |
| Debian 13 | libxml2 | Fixed | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40304 |
| Debian 12 | libxml2 | Fixed | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40304 |
| Red Hat Enterprise Linux 9 | libxml2 | Fixed | 0:2.9.13-3.el9_1 | RHSA-2023:0338 |
| Red Hat Enterprise Linux 9 | libxml2-devel | Fixed | 0:2.9.13-3.el9_1 | RHSA-2023:0338 |
| Red Hat Enterprise Linux 9 | python3-libxml2 | Fixed | 0:2.9.13-3.el9_1 | RHSA-2023:0338 |
| Red Hat Enterprise Linux 8 | libxml2 | Fixed | 0:2.9.7-15.el8_7.1 | RHSA-2023:0173 |
| Red Hat Enterprise Linux 8 | libxml2-devel | Fixed | 0:2.9.7-15.el8_7.1 | RHSA-2023:0173 |
| Red Hat Enterprise Linux 8 | python3-libxml2 | Fixed | 0:2.9.7-15.el8_7.1 | RHSA-2023:0173 |
| Red Hat Enterprise Linux 7 | libxml2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libxml2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libxml2-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 7 | libxml2-static | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2 | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-devel | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-python | Will not fix Out of support scope | ||
| Red Hat Enterprise Linux 6 | libxml2-static | Will not fix Out of support scope | ||
| AlmaLinux 9 | libxml2 | Fixed | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux 9 | libxml2-devel | Fixed | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux 9 | python3-libxml2 | Fixed | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux 8 | libxml2 | Fixed | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux 8 | libxml2-devel | Fixed | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux 8 | python3-libxml2 | Fixed | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| Rocky Linux 9 | libxml2 | Fixed | 0:2.9.13-3.el9_1 | RLSA-2023:0338 |
| Rocky Linux 8 | libxml2 | Fixed | 0:2.9.7-15.el8_7.1 | RLSA-2023:0173 |
| Alpine Linux 3.24 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.23 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.22 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.21 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.20 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.19 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.18 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.17 | libxml2 | Fixed | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.16 | libxml2 | Fixed | 2.9.14-r2 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.15 | libxml2 | Fixed | 2.9.14-r2 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.14 | libxml2 | Fixed | 2.9.14-r2 | ALPINE-CVE-2022-40304 |
| Alpine Linux 3.13 | libxml2 | Fixed | 2.9.14-r2 | ALPINE-CVE-2022-40304 |
References
- https://gitlab.gnome.org/GNOME/libxml2/-/tags
- https://gitlab.gnome.org/GNOME/libxml2/-/tags/v2.10.3
- https://gitlab.gnome.org/GNOME/libxml2/-/commit/1b41ec4e9433b05bb0376be4725804c54ef1d80b
- https://security.netapp.com/advisory/ntap-20221209-0003/
- https://support.apple.com/kb/HT213534
- https://support.apple.com/kb/HT213533
- https://support.apple.com/kb/HT213531
- https://support.apple.com/kb/HT213536
- https://support.apple.com/kb/HT213535
- http://seclists.org/fulldisclosure/2022/Dec/21
- http://seclists.org/fulldisclosure/2022/Dec/25
- http://seclists.org/fulldisclosure/2022/Dec/26
- http://seclists.org/fulldisclosure/2022/Dec/24
- http://seclists.org/fulldisclosure/2022/Dec/27
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.