Vulnerability · Published Nov 23, 2022 · Assigned by mitre
CVE-2022-40304
High 7.8
In plain English
A high-severity double free in the libxml2 package (AlmaLinux). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 5.8% (higher than 93% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS 3.1)7.8High
Exploit odds (30 days)5.8%top 6.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | libxml2 | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux:9 | libxml2 | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux:8 | libxml2-devel | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux:9 | libxml2-devel | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| AlmaLinux:8 | python3-libxml2 | 2.9.7-15.el8_7.1 | ALSA-2023:0173 |
| AlmaLinux:9 | python3-libxml2 | 2.9.13-3.el9_1 | ALSA-2023:0338 |
| Alpine:v3.20 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine:v3.21 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine:v3.22 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine:v3.23 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Alpine:v3.24 | libxml2 | 2.10.3-r0 | ALPINE-CVE-2022-40304 |
| Debian:12 | libxml2 | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40304 |
| Debian:13 | libxml2 | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40304 |
| Debian:14 | libxml2 | 2.9.14+dfsg-1.1 | DEBIAN-CVE-2022-40304 |
| Rocky Linux:8 | libxml2 | 0:2.9.7-15.el8_7.1 | RLSA-2023:0173 |
| Rocky Linux:9 | libxml2 | 0:2.9.13-3.el9_1 | RLSA-2023:0338 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.2 | USN-5760-1 |
| Ubuntu:22.04:LTS | libxml2 | 2.9.13+dfsg-1ubuntu0.2 | UBUNTU-CVE-2022-40304 |
Affected products (as reported)
Weakness: CWE-415 · Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
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
- 20221220 APPLE-SA-2022-12-13-2 iOS 15.7.2 and iPadOS 15.7.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-6 macOS Big Sur 11.7.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-7 tvOS 16.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-5 macOS Monterey 12.6.2 mailing-list
- 20221220 APPLE-SA-2022-12-13-8 watchOS 9.2 mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-556635.html
- https://cert-portal.siemens.com/productcert/html/ssa-625862.html
- https://cert-portal.siemens.com/productcert/html/ssa-337522.html
- https://cert-portal.siemens.com/productcert/html/ssa-341067.html
- https://cert-portal.siemens.com/productcert/html/ssa-769027.html