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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.4, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2026-06-15 · Modified: 2026-07-23
- Aliases: UBUNTU-CVE-2026-6040, DEBIAN-CVE-2026-6040
- Record: https://cvemate.com/vulnerability/CVE-2026-6040 · JSON: https://cvemate.com/vulnerability/CVE-2026-6040/json

## Description

```text
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.
```

## Signals

- CVSS: 7.3 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
- EPSS: 0.159%, percentile 5.267%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian libreoffice (Debian): \< 4:25.2.3-2+deb13u5 \| \< 4:26.2.3.2-2
- ubuntu libreoffice (Ubuntu): \< 4:24.2.7-0ubuntu0.24.04.6 \| All versions (No fix recorded) \| \< 4:26.2.4.2-0ubuntu0.26.04.2
- the document foundation libreoffice: ≥ 25.8, \< \< 25.8.7 \| ≥ 26.2, \< \< 26.2.3

## References

- <https://www.libreoffice.org/about-us/security/advisories/cve-2026-6040>
- <https://access.redhat.com/security/cve/CVE-2026-6040>
- <https://bugzilla.redhat.com/show_bug.cgi?id=2488966>
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6040.json>
- <https://ubuntu.com/security/CVE-2026-6040>
- <https://www.cve.org/CVERecord?id=CVE-2026-6040>
- <https://ubuntu.com/security/notices/USN-8534-1>
- <https://security-tracker.debian.org/tracker/CVE-2026-6040>

---

Data as of 2026-12-05T08:49:31.840Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
