The problem can be corrected by upgrading the affected package to version 3.0.7-1ubuntu6.2. In general, a standard system upgrade is sufficient to effect the necessary changes.

Details follow:

During an audit of the Samba 3.x code base Stefan Esser discovered a Unicode file name buffer overflow within the handling of TRANSACT2_QFILEPATHINFO replies. A malicious samba user with write access to a share could exploit this by creating specially crafted path names (files with very long names containing Unicode characters) that would overflow an internal buffer and could lead to remote execution of arbitrary code with the privileges of the samba server.

Since the samba server usually (by default) runs as root, this flaw can lead to privilege escalation and unbounded system compromise.