CVE-2026-103680 PUBLISHED

Tnef: heap buffer overflow in find_free_number() via numbered-backup suffix generation

Assigner: fedora
Reserved: 01.10.2026 Published: 01.10.2026 Updated: 01.10.2026

A flaw was found in tnef. A heap-based buffer overflow can occur in the find_free_number() function when generating numbered backup suffixes for duplicate filenames. When numbered backups are enabled and file overwriting is disabled, an attacker can supply a specially crafted Transport Neutral Encapsulation Format (TNEF) file with an excessive number of colliding attachment filenames, causing the numeric counter to write past the allocated memory buffer. This issue may result in an application crash, leading to a Denial of Service (DoS), or potentially arbitrary code execution.

Metrics

CVSS Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:N/I:N/A:L
CVSS Score: 3.1

Product Status

Package Collection https://github.com/verdammelt/tnef
Package Name tnef
Versions Default: unaffected
  • affected from 0 to 1.4.18 (incl.)

Credits

  • Red Hat would like to thank Julien Ahrens (RCE Security GmbH) for reporting this issue.

References

Problem Types

  • Out-of-bounds Write CWE