Red Hat Enterprise Linux 10
Tftp: tftp-hpa: denial of service due to out-of-bounds read/write in remap engine
A flaw was found in tftp-hpa. When the `in.tftpd` remap engine processes an inverse remap rule that also aborts with a non-empty custom error message, it can pass invalid match offsets to the `genmatchstring()` function. This leads to out-of-bounds read/write operations. A remote, unauthenticated attacker can exploit this vulnerability by sending a specially crafted request, causing the daemon to crash and resulting in a denial of service.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:5.2-50.el10_2
Fixed in 0:5.2-51.el10_3
Fixed in 0:5.2-28.el8_10
Fixed in 0:5.2-40.el9_8.1
Fixed in 0:5.2-41.el9_9
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:5.2-50.el10_2 or later.
Upgrade Red Hat Enterprise Linux 10 to 0:5.2-51.el10_3 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:5.2-28.el8_10 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:5.2-40.el9_8.1 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:5.2-41.el9_9 or later.
Workaround
To mitigate this issue, avoid enabling filename remapping with the `m/-map-file` option for the `in.tftpd` service unless strictly necessary. If filename remapping is required, ensure that any inverse (`~`) and abort (`a`) rules in the remap file do not include a non-empty custom error message. Changes to the `in.tftpd` configuration may require restarting the service to take effect.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:78952
- Vendor advisory access.redhat.com/errata/RHSA-2026:80663
- Vendor advisory access.redhat.com/errata/RHSA-2026:82280
3 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:98457
- Vendor advisory access.redhat.com/errata/RHSA-2026:98563
- Patch git.kernel.org/pub/scm/network/tftp/tftp-hpa.git/c…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.