Title: 'libspf2' DNS TXT Record Handling Remote Buffer Overflow Vulnerability
Severity: HIGH
Description:
The 'libspf2' library is used to implement the Sender Policy Framework (SPF).
The library is prone to a remote buffer-overflow vulnerability that stems from a lack of bounds checking when handling specially crafted DNS TXT records. Specifically, the vulnerability resides in the 'SPF_dns_resolv_lookup()' function of the 'Spf_dns_resolv.c' file and occurs because of improper validation of a length field.
Remote attackers may exploit this issue to execute arbitrary code in the context of an application using a vulnerable version of the library. Note that an attacker would need to be in control of a malicious DNS server or carry out a man-in-the-middle attack to leverage this vulnerability.
Versions prior to 'libspf2' 1.2.8 are affected.
Affected Products:
- Astaro Security Gateway 7
- Debian Linux 4.0
- Debian Linux 4.0 alpha
- Debian Linux 4.0 amd64
- Debian Linux 4.0 arm
- Debian Linux 4.0 hppa
- Debian Linux 4.0 ia-32
- Debian Linux 4.0 ia-64
- Debian Linux 4.0 m68k
- Debian Linux 4.0 mips
- Debian Linux 4.0 mipsel
- Debian Linux 4.0 powerpc
- Debian Linux 4.0 s/390
- Debian Linux 4.0 sparc
- Gentoo Linux
- libspf2 libspf2 1.2.1
- libspf2 libspf2 1.2.2
- libspf2 libspf2 1.2.3
- libspf2 libspf2 1.2.4
- libspf2 libspf2 1.2.5
- libspf2 libspf2 1.2.6
- libspf2 libspf2 1.2.7
References:
- Astaro: Up2Date 7.305 Released
- Dan Kaminsky: DNS TXT Record Parsing Bug in LibSPF2
- Robert Buchholz: Bug 242254 - mail-filter/libspf2 <1.2.8 DNS response buffer overflow
- US-CERT: Vulnerability Note VU#183657 libspf2 DNS TXT record parsing buffer overflow
- libspf2: libspf2 SPF Library Home Page
Juniper Networks provides this content via a wide variety of sources and production methods. If notified of errors or omissions in the content of this page, Juniper Networks, at its discretion, will modify or remove the page or leave the content as is, depending on various factors including but not limited to the reputation and authority of the party providing the notification. Please use the contact information displayed elsewhere on this page to report any errors or omissions regarding the content on this page.