Description:
Two vulnerabilities were reported in ncpfs. A local user can access arbitrary files with elevated privileges. A local user may also be able to execute arbitrary code with elevated privileges.

The ncp_fopen_nwc() function in 'ncpfs-2.2.0.18/lib/ncplib.c' does not properly control access to files. The function does not check to make sure that the file ownership matches the uid of the calling user. As a result, a local user can invoke ncpmount to cause ncpfs to access a file that the user would otherwise not be permitted to access [CVE: CVE-2005-0013].

The opt_set_volume_after_parsing_all_options() function in 'ncpfs-2.2.5/sutil/ncplogin.c' does not properly validate the length of user-supplied command line parameters. A local user can supply a specially crafted path value to trigger a buffer overflow, potentially allowing the local user to execute arbitrary code with elevated privileges [CVE: CVE-2005-0014].

Erik Sjolund is credited with discovering these flaws.

Impact:
A local user can access arbitrary files with elevated privileges.

A local user may also be able to execute arbitrary code with elevated privileges.

Solution:
The vendor has released a fixed version (2.2.6), available at: