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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| Yeraze | ytnef | ≤ 2.1.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | libytnef | No fix yet | — |
| Debian 13 | libytnef | No fix yet | — |
| Debian 12 | libytnef | No fix yet | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | libytnef | No fix yet | — |
| Ubuntu 26.04 LTS | libytnef | No fix yet | — |
| Ubuntu 24.04 LTS | libytnef | No fix yet | — |
| Ubuntu 22.04 LTS | libytnef | No fix yet | — |
| Ubuntu 20.04 LTS | libytnef | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | libytnef | No fix yet | — |
| Ubuntu 16.04 LTS | libytnef | No fix yet | — |
References
- https://hackmd.io/@haind-pwn/ytnef-decompressrtf-oob-read technical-description exploit
- https://github.com/Yeraze/ytnef/issues/112 issue-tracking
- https://github.com/Yeraze/ytnef/blob/d9f089144414d3b0912c29ab96f8f1c591d00319/lib/ytnef.c#L1554-L1563 technical-description
- https://github.com/Yeraze/ytnef product
- VulnCheck Advisory: ytnef through 2.1.2 Heap Out-of-Bounds Read via DecompressRTF third-party-advisory