CVE-2021-41054
High · 7.5CVSS
7.5
EPSS
2.3%
Published
Sep 13, 2021
CISA due date
—
Cloudanix analysis
A file transfer program used for network booting can crash when it receives certain requests, interrupting services that depend on it.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Network Service
- Class
- Buffer Overflow
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The flaw triggers a buffer overflow in tftpd_file.c when the daemon processes combined data, OACK, and option packets without correctly sizing the receive buffer, resulting in memory corruption that crashes the process.
Why it matters to the business
TFTP-based services such as network boot, firmware distribution, or configuration file transfers become unavailable, causing operational outages for dependent systems.
How an attack unfolds
An attacker sends a single crafted TFTP request containing a specific combination of data and option fields that exceed the expected buffer size, causing the atftp daemon to overflow and terminate.
How to fix it
Upgrade atftp to the latest maintained release that corrects buffer handling in tftpd_file.c; where packages remain at 0.7.4 or earlier, replace the daemon with a maintained alternative or apply vendor patches if supplied.
How to confirm the fix worked
Confirm the installed atftp version is newer than 0.7.4, then replay a minimal test packet set that previously triggered the overflow and verify the daemon remains stable.
Typical attack path
- Locate publicly reachable atftp servers
- Craft a TFTP RRQ or WRQ packet embedding oversized option combinations
- Transmit the packet to trigger the overflow
- Observe daemon crash and service denial
How to detect it
Review TFTP daemon logs and system crash reports for abrupt atftpd terminations correlated with inbound TFTP traffic from untrusted sources.
What your security team should do
- Inventory all systems running atftp and schedule immediate upgrades
- Restrict TFTP access to trusted subnets via firewall rules
- Monitor process and system logs for unexpected atftpd terminations
- Replace atftp with a supported TFTP implementation where upgrades are unavailable
The record
tftpd_file.c in atftp through 0.7.4 has a buffer overflow because buffer-size handling does not properly consider the combination of data, OACK, and other options.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | atftp | 0 | 0.7.git20120829-3.3+deb11u1 |
| Debian:12 | atftp | 0 | 0.7.git20210915-1 |
| Debian:13 | atftp | 0 | 0.7.git20210915-1 |
| Debian:9 | atftp | 0 | 0.7.git20120829-3.1~deb9u2 |
| SUSE:Linux Enterprise Server 12 SP5 | atftp | 0 | 0.7.0-160.11.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | atftp | 0 | 0.7.0-160.11.1 |
| Ubuntu:20.04:LTS | atftp | 0 | 0.7.git20120829-3.1ubuntu0.1 |
| Ubuntu:22.04:LTS | atftp | 0 | 0.7.git20210915-4 |
| Ubuntu:Pro:16.04:LTS | atftp | 0 | 0.7.git20120829-3.1~0.16.04.1+esm1 |
| Ubuntu:Pro:18.04:LTS | atftp | 0 | 0.7.git20120829-3.1~0.18.04.1+esm1 |
| openSUSE:Tumbleweed | atftp | 0 | 0.7.5-1.1 |
Related vulnerabilities
- CVE-2021-46671 options.c in atftp before 0.7.5 reads past the end of an array, and consequently… Also affects atftp
- CVE-2020-6097 An exploitable denial of service vulnerability exists in the atftpd daemon functionality… Also affects atftp
- CVE-2019-11365 An issue was discovered in atftpd in atftp 0.7.1. Also affects atftp
- CVE-2026-112108 A vulnerability was determined in ztxz16 fastllm up to 0.1.8.2. CWE-120
- CVE-2026-90804 A vulnerability was detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90803 A security vulnerability has been detected in GNU Binutils 2.47. CWE-120
- CVE-2026-90801 A security flaw has been discovered in GNU Binutils 2.47. CWE-120
- CVE-2026-42808 An issue was discovered in Bosch Sensortec COINES_SDK versions 2.0 through 2.11. The host… CWE-120