Description
A symlink following vulnerability was found in Samba, where a user can create a symbolic link that will make 'smbd' escape the configured share path. This flaw allows a remote user with access to the exported part of the file system under a share via SMB1 unix extensions or NFS to create symlinks to files outside the 'smbd' configured share path and gain access to another restricted server's filesystem.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | samba | Affects samba since 4.17.0, Fixed samba 4.17.2. | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | samba | 4.17.2+git.273.a55a83528b9-1.1 | openSUSE-SU-2024:12454-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.24 | samba | 4.16.6-r0 | — |
| Alpine v3.23 | samba | 4.16.6-r0 | — |
| Alpine v3.22 | samba | 4.16.6-r0 | — |
| Alpine v3.21 | samba | 4.16.6-r0 | — |
| Alpine v3.20 | samba | 4.16.6-r0 | — |
Show 5 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.19 | samba | 4.16.6-r0 | — |
| Alpine v3.18 | samba | 4.16.6-r0 | — |
| Alpine v3.17 | samba | 4.16.6-r0 | — |
| Alpine v3.16 | samba | 4.15.12-r0 | — |
| Alpine v3.15 | samba | 4.15.12-r0 | — |
Amazon Linux
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Amazon Linux 2023 | samba +29 | 2:4.17.5-0.amzn2023.0.2 | ALAS2023-2023-032 |
Advisories 3
- openSUSE-SU-2024:12454-1 ctdb-4.17.2+git.273.a55a83528b9-1.1 on GA media SUSE / openSUSE Security Updates · Feb 4, 2026
- WID-SEC-2022-1847 Samba: Mehrere Schwachstellen BSI CERT-Bund (WID) · Jun 29, 2025
- ALAS2023-2023-032 Important: samba security update (Amazon Linux 2023) Amazon Linux Security Center (ALAS) · Feb 15, 2024