CVE-2022-25315: Integer Overflow

Published Feb 18, 2022
·
Updated

An integer overflow was found in expat. The issue occurs in storeRawNames() by abusing the mbuffer expansion logic to allow allocations very close to INTMAX and out-of-bounds heap writes. This flaw can cause a denial of service or potentially arbitrary code execution.

Other sources

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames.

Affected Software

29 affected componentsFixes available
redhat/expat<0:2.0.1-14.el6_10
0:2.0.1-14.el6_10
redhat/firefox<0:91.7.0-3.el7_9
0:91.7.0-3.el7_9
redhat/thunderbird<0:91.7.0-2.el7_9
0:91.7.0-2.el7_9
redhat/expat<0:2.1.0-14.el7_9
0:2.1.0-14.el7_9
redhat/firefox<0:91.7.0-3.el8_5
0:91.7.0-3.el8_5
redhat/thunderbird<0:91.7.0-2.el8_5
0:91.7.0-2.el8_5
redhat/mingw-expat<0:2.4.8-1.el8
0:2.4.8-1.el8
redhat/expat<0:2.2.5-4.el8_5.3
0:2.2.5-4.el8_5.3
redhat/firefox<0:91.7.0-3.el8_1
0:91.7.0-3.el8_1
redhat/thunderbird<0:91.7.0-2.el8_1
0:91.7.0-2.el8_1
redhat/expat<0:2.2.5-3.el8_1.1
0:2.2.5-3.el8_1.1
redhat/firefox<0:91.7.0-3.el8_2
0:91.7.0-3.el8_2
redhat/thunderbird<0:91.7.0-2.el8_2
0:91.7.0-2.el8_2
redhat/expat<0:2.2.5-3.el8_2.2
0:2.2.5-3.el8_2.2
redhat/firefox<0:91.7.0-3.el8_4
0:91.7.0-3.el8_4
redhat/thunderbird<0:91.7.0-2.el8_4
0:91.7.0-2.el8_4
redhat/expat<0:2.2.5-4.el8_4.2
0:2.2.5-4.el8_4.2
redhat/redhat-virtualization-host<0:4.3.22-20220330.1.el7_9
0:4.3.22-20220330.1.el7_9
debian/expat
2.2.6-2+deb10u42.2.6-2+deb10u62.2.10-2+deb11u52.5.0-12.5.0-2
redhat/expat<2.4.5
2.4.5
Libexpat Project Libexpat<2.4.5
Debian Debian Linux=10.0
Debian Debian Linux=11.0
Fedoraproject Fedora=34
Fedoraproject Fedora=35
Oracle HTTP Server=12.2.1.3.0
Oracle HTTP Server=12.2.1.4.0
Oracle ZFS Storage Appliance Kit=8.8
Siemens SINEMA Remote Connect Server<3.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.0.1-14.el6_10
  2. Upgrade

    Upgrade redhat/firefox to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-3.el7_9
  3. Upgrade

    Upgrade redhat/thunderbird to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-2.el7_9
  4. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.1.0-14.el7_9
  5. Upgrade

    Upgrade redhat/firefox to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-3.el8_5
  6. Upgrade

    Upgrade redhat/thunderbird to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-2.el8_5
  7. Upgrade

    Upgrade redhat/mingw-expat to a version that resolves this vulnerability.

    Fixed in 0:2.4.8-1.el8
  8. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.2.5-4.el8_5.3
  9. Upgrade

    Upgrade redhat/firefox to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-3.el8_1
  10. Upgrade

    Upgrade redhat/thunderbird to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-2.el8_1
  11. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.2.5-3.el8_1.1
  12. Upgrade

    Upgrade redhat/firefox to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-3.el8_2
  13. Upgrade

    Upgrade redhat/thunderbird to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-2.el8_2
  14. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.2.5-3.el8_2.2
  15. Upgrade

    Upgrade redhat/firefox to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-3.el8_4
  16. Upgrade

    Upgrade redhat/thunderbird to a version that resolves this vulnerability.

    Fixed in 0:91.7.0-2.el8_4
  17. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 0:2.2.5-4.el8_4.2
  18. Upgrade

    Upgrade redhat/redhat-virtualization-host to a version that resolves this vulnerability.

    Fixed in 0:4.3.22-20220330.1.el7_9
  19. Upgrade

    Upgrade debian/expat to a version that resolves this vulnerability.

    Fixed in 2.2.6-2+deb10u4Fixed in 2.2.6-2+deb10u6Fixed in 2.2.10-2+deb11u5Fixed in 2.5.0-1Fixed in 2.5.0-2
  20. Upgrade

    Upgrade redhat/expat to a version that resolves this vulnerability.

    Fixed in 2.4.5
  21. Upgrade

    Upgrade Expat (libexpat) to a version that resolves this vulnerability.

    Fixed in 2.4.5
  22. Compensating control

    Restrict applications using the expat (libexpat) library from processing untrusted XML content, since there is no known mitigation for the integer overflow other than this restriction.

Event History

Feb 18, 2022
CVE Published
via MITRE·04:24 AM
Data Sourced
via MITRE·04:24 AM
Description
Feb 21, 2022
Data Sourced
via Red Hat·05:10 AM
DescriptionSeverityAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is CVE-2022-25315?

CVE-2022-25315 is a vulnerability in Expat (aka libexpat) before version 2.4.5, which allows for an integer overflow in storeRawNames.

2

What is the severity of CVE-2022-25315?

The severity of CVE-2022-25315 is critical with a CVSS score of 9.8.

3

How does CVE-2022-25315 occur?

CVE-2022-25315 occurs in Expat through the function storeRawNames(), by abusing the m_buffer expansion logic to allow allocations very close to INT_MAX and out-of-bounds heap writes.

4

What are the affected software versions of CVE-2022-25315?

The affected software versions of CVE-2022-25315 include Expat 2.4.5 and earlier, as well as various versions of Firefox and Thunderbird.

5

How can CVE-2022-25315 be fixed?

To fix CVE-2022-25315, it is recommended to update to Expat version 2.4.5 or apply the appropriate patches provided by the software vendors.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203