I. Description
A remotely exploitable heap overflow exists in the cachefsd program
shipped and installed by default with Sun Solaris 2.5.1, 2.6, 7, and 8
(SPARC and Intel architectures). Cachefsd caches requests for operations
on remote file systems mounted via the use of NFS protocol. A remote
attacker can send a crafted RPC request to the cachefsd program to exploit
the vulnerability.
Logs of exploitation attempts may resemble the following:
May 16 22:46:08 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Segmentation Fault - core dumped
May 16 22:46:21 victim-host last message repeated 7 times
May 16 22:46:22 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Bus Error - core dumped
May 16 22:46:24 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Segmentation Fault - core dumped
May 16 22:46:56 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Bus Error - core dumped
May 16 22:46:59 victim-host last message repeated 1 time
May 16 22:47:02 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Segmentation Fault - core dumped
May 16 22:47:07 victim-host last message repeated 3 times
May 16 22:47:09 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Hangup
May 16 22:47:11 victim-host inetd[600]: /usr/lib/fs/cachefs/cachefsd: Segmentation Fault - core dumped
Sun Microsystems has released a Sun
Alert Notification which addresses this issue as well as the issue
described in VU#161931.
According to the Sun
Alert Notification, failed attempts to exploit this vulnerability may
leave a core dump file in the root directory. The presence of the
core file does not preclude the success of subsequent attacks.
Additionally, if the file /etc/cachefstab exists, it may contain
unusual entries.
This issue is also being referenced as CAN-2002-0033:
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CAN-2002-0033