Red Hat Bugzilla – Bug 1629979
CVE-2018-16745 mgetty: Stack-based buffer overflow in fax_notify_mail() in faxrec.c
Last modified: 2018-09-20 19:40:44 EDT
An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow a buffer overflow if long untrusted input can reach it. References: https://www.x41-dsec.de/lab/advisories/x41-2018-007-mgetty
Created mgetty tracking bugs for this issue: Affects: fedora-all [bug 1629980]
Mitigation: Make sure the `notify` option in /etc/mgetty+sendfax/mgetty.config does not contain more than 150 characters and that the file is readable and writable only by root.
Only root can write to /etc/mgetty+sendfax/mgetty.config and set the `notify` option which `mail_to` is set to when the program runs. Thus, this flaw is very unlikely to be exploited since it would require root to set a very long `notify` value.
Created attachment 1485086 [details] upstream patch This patch was extracted from mgetty-1.2.1. It is the same patch as the one for CVE-2018-16744.