Fetchmail POP3客户端缓冲溢出任意指令执行漏洞

受影响系统:
Eric Raymond Fetchmail 6.2.5.1
Eric Raymond Fetchmail 6.2.5
Eric Raymond Fetchmail 6.2.0
RedHat Enterprise Linux WS 4
RedHat Enterprise Linux WS 3
RedHat Enterprise Linux WS 2.1 IA64
RedHat Enterprise Linux WS 2.1
RedHat Enterprise Linux ES 4
RedHat Enterprise Linux ES 3
RedHat Enterprise Linux ES 2.1 IA64
RedHat Enterprise Linux ES 2.1
RedHat Enterprise Linux AS 3
RedHat Enterprise Linux AS 2.1 IA64
RedHat Enterprise Linux AS 2.1
RedHat Desktop 4.0
RedHat Desktop 3.0
RedHat Advanced Workstation 2.1 IA64
RedHat Advanced Workstation 2.1

不受影响系统:
Eric Raymond Fetchmail 6.2.6-pre7
Eric Raymond Fetchmail 6.2.5.2

描述:
fetchmail是免费的软件包,可以从远程POP2、POP3、IMAP、ETRN或ODMR服务器检索邮件并将其转发给本地SMTP、LMTP服务器或消息传送代理。

fetchmail的POP3客户端在处理服务器回应时存在缓冲区溢出漏洞,恶意服务器可能利用此漏洞在客户端上执行任意指令。

fetchmail-6.2.5及更早版本的处理UID的POP3代码将POP3服务器返回的相应读取到栈中固定大小的缓冲区,没有限制输入长度,这样被入侵的或恶意的POP3服务器就可以覆盖fetchmail的栈,导致完全控制受影响的系统。

在fetchmail-6.2.5.1中,漏洞修复可以通过POP3 UIDL防范代码注入,但却引入了两个空指针引用。攻击者可能利用这个漏洞导致拒绝服务。

厂商补丁:

Apple
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
http://www.apple.com/support/downloads/

Debian
Debian已经为此发布了一个安全公告(DSA-774-1)以及相应补丁:DSA-774-1:New fetchmail packages fix arbitrary code execution
链接:http://www.debian.org/security/2005/dsa-774

Eric Raymond
目前厂商已经发布了升级补丁以修复这个安全问题,请到厂商的主页下载:
http://download.berlios.de/fetchmail/fetchmail-patch-6.2.5.2.gz

RedHat
RedHat已经为此发布了一个安全公告(RHSA-2005:640-01)以及相应补丁:RHSA-2005:640-01:Important: fetchmail security update
链接:http://lwn.net/Alerts/144832/?format=printable

Gentoo
Gentoo已经为此发布了一个安全公告(GLSA-200507-21)以及相应补丁:GLSA-200507-21:fetchmail: Buffer Overflow
链接:http://security.gentoo.org/glsa/glsa-200507-21.xml

分享到