Use-after-free in LibreOffice - CVE-2026-6040

 

Use-after-free in LibreOffice - CVE-2026-6040

Published: June 17, 2026


Vulnerability identifier: #VU134745
CSH Severity: Low
CVSS v4: 4.6 [CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2026-6040
CWE-ID: CWE-416
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to cause a denial of service.

The vulnerability exists due to use-after-free in ODF number-format blank-width parsing when importing a crafted ODF document. A remote attacker can trick the victim into opening a crafted file to cause a denial of service.

The issue occurs when processing number format data that pads a number with blank space as wide as a chosen character.


Affected software

LibreOffice
Debian Linux
Ubuntu
libreoffice (Ubuntu package)
libreoffice (Debian package)

How to mitigate CVE-2026-6040

Install security update from vendor's website.

LibreOffice - update to 26.2.4.1
libreoffice (Ubuntu package) - addressed in versions 1:7.3.7-0ubuntu0.22.04.12, 4:24.2.7-0ubuntu0.24.04.6, 4:26.2.4.2-0ubuntu0.26.04.2
libreoffice (Debian package) - update to 4:25.2.3-2+deb13u5

External References

Related Security Bulletins