Use-after-free in LibreOffice - CVE-2026-6040
Published: June 17, 2026
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
Debian Linux
Ubuntu
libreoffice (Ubuntu package)
libreoffice (Debian package)
How to mitigate CVE-2026-6040
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