Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2021-20316

Опубликовано: 10 янв. 2022
Источник: redhat
CVSS3: 5.9
EPSS Низкий

Описание

A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.

Отчет

As per upstream, "Prior to Samba 4.15.0, patches for this are not possible due to the prior design of the Samba VFS layer, which used pathname-based calls for most meta-data operations. A two and a half year effort was undertaken to completely re-write the Samba VFS layer to stop the use of pathname-based calls in all cases involving reading and writing of metadata returned to the client. This work has finally been completed in Samba 4.15.0."

Меры по смягчению последствий

Do not enable SMB1 (please note SMB1 is disabled by default in Samba from version 4.11.0 and onwards). This prevents the creation of symbolic links via SMB1. If SMB1 must be enabled for backward compatibility then add the parameter: unix extensions = no to the [global] section of your smb.conf and restart smbd. This prevents SMB1 clients from creating symlinks on the exported file system. However, if the same region of the file system is also exported using NFS, NFS clients can create symlinks that potentially can also hit the race condition. For non-patched versions of Samba, we recommend only exporting areas of the file system by either SMB2 or NFS, not both.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6sambaOut of support scope
Red Hat Enterprise Linux 6samba4Out of support scope
Red Hat Enterprise Linux 7sambaOut of support scope
Red Hat Enterprise Linux 9sambaNot affected
Red Hat Enterprise Linux 8sambaFixedRHSA-2022:207410.05.2022
Red Hat Enterprise Linux 8sambaFixedRHSA-2022:207410.05.2022
Red Hat Gluster Storage 3.5 for RHEL 8sambaFixedRHSA-2022:175610.05.2022

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-362
https://bugzilla.redhat.com/show_bug.cgi?id=2009673samba: Symlink race error can allow metadata read and modify outside of the exported share

EPSS

Процентиль: 60%
0.00406
Низкий

5.9 Medium

CVSS3

Связанные уязвимости

CVSS3: 6.8
ubuntu
почти 3 года назад

A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.

CVSS3: 6.8
nvd
почти 3 года назад

A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.

CVSS3: 6.8
msrc
8 месяцев назад

Описание отсутствует

CVSS3: 6.8
debian
почти 3 года назад

A flaw was found in the way Samba handled file/directory metadata. Thi ...

CVSS3: 6.8
github
почти 3 года назад

A flaw was found in the way Samba handled file/directory metadata. This flaw allows an authenticated attacker with permissions to read or modify share metadata, to perform this operation outside of the share.

EPSS

Процентиль: 60%
0.00406
Низкий

5.9 Medium

CVSS3