CVE-2026-97894: Out-of-bounds read in UTF-16 text and DIF spreadsheet import
LibreOffice Calc can open spreadsheets in the DIF format, and text files such as CSV in the UTF-16 encoding. Both are read one line at a time. An out-of-bounds read existed when a line of a crafted file was read, because the length of the line could be miscalculated, so memory beyond the line could be copied into the imported document. In fixed versions each line is read up to its limit and no further.
Affected Software
Event History
Frequently Asked Questions
What content must an attacker provide to trigger the issue?
The attacker needs to provide a crafted DIF spreadsheet or a UTF-16 text file, such as a CSV file, containing a line whose length causes the import logic to miscalculate its bounds. The issue is triggered while LibreOffice Calc imports that file.
What is the likely impact if a user opens a malicious file?
Memory beyond the affected input line may be copied into the imported document. The provided information describes an out-of-bounds read and does not establish code execution or other impacts.
How can I determine whether a document may have triggered the vulnerability?
Inspect whether the document was imported by LibreOffice Calc as a DIF spreadsheet or UTF-16 text file and contains crafted or malformed line data. The available information does not provide a reliable post-import detection method or affected-version list.