Bug 2544597 - CVE-2026-103680 tnef: Heap buffer overflow in find_free_number() via numbered-backup suffix generation [fedora-all]
Summary: CVE-2026-103680 tnef: Heap buffer overflow in find_free_number() via numbered...
Keywords:
Status: ASSIGNED
Alias: None
Product: Fedora
Classification: Fedora
Component: tnef
Version: rawhide
Hardware: Unspecified
OS: Unspecified
low
low
Target Milestone: ---
Assignee: Artur Frenszek-Iwicki
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: {"flaws": ["f66e10a6-ce1f-4a08-b810-6...
Depends On:
Blocks: CVE-2026-103680
TreeView+ depends on / blocked
 
Reported: 2026-10-01 11:37 UTC by Vladimir Vasilev
Modified: 2026-10-01 12:17 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github verdammelt tnef pull 53 0 None open Fix buffer overflow in find_free_number() 2026-10-01 12:17:39 UTC

Description Vladimir Vasilev 2026-10-01 11:37:56 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

A flaw was found in tnef. find_free_number() allocates a fixed-size buffer sized for a 5-digit numeric backup suffix, but formats the counter with an unbounded sprintf(). When the --number-backups option is enabled and overwrite is disabled, a crafted TNEF stream that forces roughly 100,000 colliding candidate filenames for a single extracted attachment causes the counter to require six digits, writing past the end of the allocated heap buffer. The issue requires a non-default command-line option and a large, specially crafted input to trigger.


Note You need to log in before you can comment on or make changes to this bug.