[Samba] Cannot remove symlink with missing target

Jeremy Allison jra at samba.org
Wed Jan 6 19:35:20 UTC 2016

On Wed, Jan 06, 2016 at 08:33:12PM +0100, Andreas Maier wrote:
> Am 06.01.2016 um 20:10 schrieb Jeremy Allison:
> >On Wed, Jan 06, 2016 at 07:58:32PM +0100, Reindl Harald wrote:
> >>
> >>Am 06.01.2016 um 19:35 schrieb Andreas Maier:
> >>>Am 06.01.2016 um 19:28 schrieb Jeremy Allison:
> >>>>Can't reproduce this on latest 4.3.x (and I just tried). We did have
> >>>>such a bug, but I remember fixing it :-). What Samba version is
> >>>>running on the Synology ?
> >>>Jeremy,
> >>>The smbd version is 4.1.18, according to the NOS value shown in
> >>>/proc/fs/cifs/DebugData on the client side, and according to "smbd -V"
> >>>on the server side.
> >>>
> >>>I have no control over the samba level on the server side (other than
> >>>upgrading the Synology firmware). So if this has been fixed in a version
> >>>after 4.1.18, it would be good to know for sure, then I can create a
> >>>request for Synology to upgrade their included samba version
> >>well, the latest 4.1.x is 4.1.22 according to
> >>https://download.samba.org/pub/samba/
> >No, latest Samba is : 4.3.3 security release.
> >
> >We also released 4.2.7, 4.1.22 at the same time.
> >
> Jeremy,
> I checked the WHATSNEW.txt file of 4.3.3 and 4.1.22, but could not
> find anything that is related to this behavior.

No, it's a security release only.

> There is a fix for CVE-2015-5252 (Insufficient symlink verification
> in smbd), could that be the solution to the
> cannot-delete-broken-symlink behavior in addition?

No, that wasn't a security bug and wasn't what was fixed.
The bug you're having was already fixed in 4.3.x. Go to
bugzilla.samba.org and search for bugs with 'symlink'
in the title. You should be able to find the one
which will give you the date and version number
containing the fix.

More information about the samba mailing list