CVE-2026-6040: Heap use-after-free in ODF number-format blank-width parsing
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
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/libreofficeto 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 - Upgrade
Upgrade
ubuntu/libreofficeto a version that resolves this vulnerability.Fixed in 4:24.2.7-0ubuntu0.24.04.6 - Upgrade
Upgrade
ubuntu/libreofficeto a version that resolves this vulnerability.Fixed in 4:26.2.4.2-0ubuntu0.26.04.2
Event History
Frequently Asked Questions
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.
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.