CVE-2026-6040: Heap use-after-free in ODF number-format blank-width parsing

Published Jun 15, 2026
·
Updated

A heap use-after-free existed when importing the blank-width characters of an ODF number format. A position value read from the document was not checked against the length of the format-code string, so a malformed number format could be processed against memory outside that string. In fixed versions the position is bounds-checked before use.

Affected Software

4 affected componentsFixes available
debian/libreoffice<=1:7.0.4-4+deb11u10, <=1:7.0.4-4+deb11u13
4:7.4.7-1+deb12u144:7.4.7-1+deb12u134:25.2.3-2+deb13u64:25.2.3-2+deb13u54:26.2.4.2-2
ubuntu/libreoffice<4:24.2.7-0ubuntu0.24.04.6
4:24.2.7-0ubuntu0.24.04.6
ubuntu/libreoffice*
ubuntu/libreoffice<4:26.2.4.2-0ubuntu0.26.04.2
4:26.2.4.2-0ubuntu0.26.04.2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4:7.4.7-1+deb12u14Fixed in 4:7.4.7-1+deb12u13Fixed in 4:25.2.3-2+deb13u6Fixed in 4:25.2.3-2+deb13u5Fixed in 4:26.2.4.2-2
  2. Upgrade

    Upgrade ubuntu/libreoffice to a version that resolves this vulnerability.

    Fixed in 4:24.2.7-0ubuntu0.24.04.6
  3. Upgrade

    Upgrade ubuntu/libreoffice to a version that resolves this vulnerability.

    Fixed in 4:26.2.4.2-0ubuntu0.26.04.2

Event History

Jun 15, 2026
CVE Published
via MITRE·04:21 PM
Data Sourced
via MITRE·04:21 PM
DescriptionWeakness
Data Sourced
via Red Hat·06:01 PM
DescriptionSeverityAffected Software
Data Sourced
via OSV·06:16 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·06:16 PM
DescriptionSeverityWeakness
Jun 30, 2026
Updated
via NVD·03:21 AM
SeverityWeakness

Frequently Asked Questions

1

What must an attacker do to trigger the flaw?

An attacker needs to supply a malformed ODF document containing a number format with blank-width character position data that exceeds the format-code string length. A user must import the document for the vulnerable parsing path to be reached.

2

What is the expected security impact if exploitation succeeds?

The CVSS vector rates confidentiality and integrity impact as low and availability impact as high. The attack is local, requires no privileges, and requires user interaction.

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