{"vuid":"VU#457622","idnumber":"457622","name":"Samba QFILEPATHINFO handling routine contains a remotely exploitable buffer overflow","keywords":["Samba","buffer overflow","TRANSACT2_QFILEPATHINFO","execution of arbitrary code","unicode file name","2004-1154"],"overview":"Samba is vulnerable to a buffer overflow that may allow a remote attacker to execute arbitrary code with root privileges.","clean_desc":"Samba is a widely used open-source implementation of Server Message Block (SMB)/Common Internet File System (CIFS). A lack of bounds checking in the TRANSACT2_QFILEPATHINFO request handling routine may allow a buffer overflow. An attacker can exploit this vulnerability by sending a specially crafted TRANSACT2_QFILEPATHINFO request to a vulnerable Samba server. When the server attempts to create a response, the buffer overflow occurs. To successfully exploit this vulnerability, the path and file requested must be valid, i.e. the file must exist on the Samba share in the location specified, and the name of the file in the path must contain unicode characters. An attacker with write access to a share could create such a path and filename. Note an attacker must be authenticated to the Samba server. However, a user with anonymous access may be able to exploit this vulnerability. According to reports, Samba versions 3.0.7 and prior are vulnerable. Samba version 2.x are not vulnerable. More detailed information is available in e-matters security advisory 13/2004.","impact":"An remote attacker could execute arbitrary code. The Samba daemon (smbd) typically runs with root privileges, in which case an attacker could gain complete control of a vulnerable system. An attacker may also be able to mount a denial-of-service attack.","resolution":"Upgrade Samba This issue has been corrected in Samba version 3.0.8. Please see the Samba download page for more details. Restrict Access to Samba As a general security best practice, restrict access to Samba services to hosts and networks that require those services. Consider blocking Samba traffic at network borders. Consult Samba Security Guidelines The Samba Team has a website listing ways to secure a Samba server.","workarounds":"","sysaffected":"","thanks":"Thanks to Stefan Esser for reporting this vulnerability.","author":"This document was written by Jeff Gennari.","public":["http://security.e-matters.de/advisories/132004.html","http://secunia.com/advisories/13189/","http://www.securitytracker.com/alerts/2004/Nov/1012235.html","http://www.osvdb.org/displayvuln.php?osvdb_id=11782"],"cveids":["CVE-2004-0882"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2004-11-15T19:12:12Z","publicdate":"2004-11-15T00:00:00Z","datefirstpublished":"2004-11-17T19:50:30Z","dateupdated":"2005-04-20T14:38:48Z","revision":148,"vrda_d1_directreport":"","vrda_d1_population":"","vrda_d1_impact":"","cam_widelyknown":"15","cam_exploitation":"0","cam_internetinfrastructure":"4","cam_population":"16","cam_impact":"18","cam_easeofexploitation":"7","cam_attackeraccessrequired":"12","cam_scorecurrent":"8.6184","cam_scorecurrentwidelyknown":"10.8864","cam_scorecurrentwidelyknownexploited":"19.9584","ipprotocol":"","cvss_accessvector":"","cvss_accesscomplexity":"","cvss_authentication":null,"cvss_confidentialityimpact":"","cvss_integrityimpact":"","cvss_availabilityimpact":"","cvss_exploitablity":null,"cvss_remediationlevel":"","cvss_reportconfidence":"","cvss_collateraldamagepotential":"","cvss_targetdistribution":"","cvss_securityrequirementscr":"","cvss_securityrequirementsir":"","cvss_securityrequirementsar":"","cvss_basescore":"","cvss_basevector":"","cvss_temporalscore":"","cvss_environmentalscore":"","cvss_environmentalvector":"","metric":8.6184,"vulnote":null}