{"schemaVersion":3,"id":"CVE-2026-6040","aliases":["UBUNTU-CVE-2026-6040","DEBIAN-CVE-2026-6040"],"status":"published","duplicateOf":null,"title":null,"description":"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.","dates":{"published":"2026-06-15T16:21:53.903Z","modified":"2026-07-23T12:08:09.144Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.3,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":5.4,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":3.3,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Debian","score":6.9,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":5.4,"severity":"medium","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.3,"severity":"high","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00168,"percentile":0.05753,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":0.05400000000000001,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.00114},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00168,"percentile":0.05753}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00114,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00168,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00168,"percentile":0.05753}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-416","name":"Use After Free","description":"The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory \"belongs\" to the code that operates on the new pointer.","type":"weakness","status":"Stable","abstraction":"Variant","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/416.html"},{"id":"CWE-787","name":"Out-of-bounds Write","description":"The product writes data past the end, or before the beginning, of the intended buffer.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/787.html"},{"id":"CWE-825","name":"Expired Pointer Dereference","description":"The product dereferences a pointer that contains a location for memory that was previously valid, but is no longer valid.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/825.html"}],"affected":[{"vendor":"debian","product":"libreoffice","name":"libreoffice","label":"libreoffice","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/libreoffice","purlType":"deb","versions":[{"text":"< 4:25.2.3-2+deb13u5","noFixRecorded":false,"fixedIn":null},{"text":"< 4:26.2.3.2-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4:25.2.3-2+deb13u5 | < 4:26.2.3.2-2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"libreoffice","name":"libreoffice","label":"libreoffice","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/libreoffice","purlType":"deb","versions":[{"text":"< 4:24.2.7-0ubuntu0.24.04.6","noFixRecorded":false,"fixedIn":null},{"text":"All versions","noFixRecorded":true,"fixedIn":null},{"text":"< 4:26.2.4.2-0ubuntu0.26.04.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4:24.2.7-0ubuntu0.24.04.6 | All versions (No fix recorded) | < 4:26.2.4.2-0ubuntu0.26.04.2","eol":null,"hubHref":null},{"vendor":"the document foundation","product":"libreoffice","name":"LibreOffice","label":"libreoffice","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 25.8, < < 25.8.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 26.2, < < 26.2.3","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 25.8, < < 25.8.7 | ≥ 26.2, < < 26.2.3","eol":null,"hubHref":"/vendor/the_document_foundation/libreoffice"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://www.libreoffice.org/about-us/security/advisories/cve-2026-6040","label":"www.libreoffice.org/about-us/security/advisories/cve-2026-6040","hostname":"www.libreoffice.org","tags":["REPORT"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-6040","label":"access.redhat.com/security/cve/CVE-2026-6040","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2488966","label":"bugzilla.redhat.com/show_bug.cgi?id=2488966","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6040.json","label":"security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6040.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://ubuntu.com/security/CVE-2026-6040","label":"ubuntu.com/security/CVE-2026-6040","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-6040","label":"www.cve.org/CVERecord?id=CVE-2026-6040","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8534-1","label":"ubuntu.com/security/notices/USN-8534-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-6040","label":"security-tracker.debian.org/tracker/CVE-2026-6040","hostname":"security-tracker.debian.org","tags":["Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0259","SUSE-SU-2026:3140-1","USN-8534-1"],"duplicates":[],"related":["SUSE-SU-2026:3140-1","USN-8534-1"]},"timeline":[{"kind":"published","date":"2026-06-15T16:21:53.903Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-23T12:08:09.144Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":29,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T10:30:21.400Z","stale":false,"partial":false}}