CVE-2026-110605
libschrift through 0.10.2 Divide by Zero via unitsPerEm in draw_line
- State
- Published
- Severity
- 6.8 Medium
- Published
- Oct 14, 2026
- Updated
- Oct 26, 2026
- Reserved
- Oct 14, 2026
Description
libschrift through 0.10.2 contains a divide by zero vulnerability that allows attackers to crash applications by supplying a font with unitsPerEm of 0 in the head table. Attackers can provide a crafted TrueType font whose NaN glyph coordinates bypass clip_points(), causing an out-of-bounds raster read in draw_line() during sft_render() and crashing the process.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 6.8 Medium | CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N | VulnCheck |
| 3.1 | 5.5 Medium | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H | VulnCheck |
Weaknesses
- CWE-369 Divide By Zero
Affected Products
| Product | Versions |
|---|---|
libschrifttomolt |
|
References
- https://github.com/tomolt/libschrift/issues/46issue-tracking
- https://hackmd.io/@haind-pwn/libschrift-unitsperem-zero-oobthird-party-advisory
- https://github.com/tomolt/libschrift/blob/v0.10.2/schrift.c#L542technical-description
- https://github.com/tomolt/libschrift/blob/v0.10.2/schrift.c#L1422-L1503technical-description
- VulnCheck Advisory: libschrift through 0.10.2 Divide by Zero via unitsPerEm in draw_linethird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.