Affected versions
Ubuntu16.04:LTS/libytnef
- Affected versions
- * || =1.5-6 || =1.5-9 || =1.5-9ubuntu0.1
- Fixed version
- Not reported
Ubuntu18.04:LTS/libytnef
- Affected versions
- * || =1.9.2-2
- Fixed version
- Not reported
Ubuntu20.04:LTS/libytnef
- Affected versions
- * || =1.9.3-1
- Fixed version
- Not reported
Ubuntu22.04:LTS/libytnef
- Affected versions
- * || =1.9.3-3 || =2.0-1
- Fixed version
- Not reported
Ubuntu24.04:LTS/libytnef
- Affected versions
- * || =2.0-1 || =2.1.2-1 || =2.1.2-1build1
- Fixed version
- Not reported
Ubuntu26.04:LTS/libytnef
- Affected versions
- * || =2.1.2-1build1 || =2.1.2-1build2
- Fixed version
- Not reported
Ubuntu26.10/libytnef
- Affected versions
- * || =2.1.2-1build2
- Fixed version
- Not reported
Description
ytnef through 2.1.2 contains a heap out-of-bounds read vulnerability in DecompressRTF() in lib/ytnef.c that never validates uncompressedSize for uncompressed RTF streams. Attackers can supply a crafted winmail.dat TNEF attachment with a malicious PT_BINARY MAPI property to crash ytnefprint or libytnef callers and leak adjacent heap memory.
Links
- https://github.com/Yeraze/ytnef
- https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1554-L1563
- https://github.com/Yeraze/ytnef/issues/112
- https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read
- https://ubuntu.com/security/CVE-2026-111145
- https://www.cve.org/CVERecord?id=CVE-2026-111145
- https://www.vulncheck.com/advisories/ytnef-through-2.1.2-heap-out-of-bounds-read-via-decompressrtf

