Skip to content
OpenAdvisories
Medium · 6.5 CVE-2026-2340 EUVD-2026-32312GHSA-m6w2-p258-gxqp

Samba: vfs_worm does not block directory modification

Published May 27, 2026 · Updated Nov 5, 2026 · Assigned by redhat

Vendor: Red Hat Product: Red Hat Enterprise Linux 10 Product: Red Hat Enterprise Linux 10.0 Extended Update Support Product: Red Hat Enterprise Linux 6 Product: Red Hat Enterprise Linux 7 Product: Red Hat Enterprise Linux 8 Product: Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Product: Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Product: Red Hat Enterprise Linux 8.8 Telecommunications Update Service Product: Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9 Product: Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions Product: Red Hat Enterprise Linux 9.6 Extended Update Support Product: Red Hat OpenShift Container Platform 4.12 Product: Red Hat OpenShift Container Platform 4.13 Product: Red Hat OpenShift Container Platform 4.14 Product: Red Hat OpenShift Container Platform 4.15 Product: Red Hat OpenShift Container Platform 4.16 Product: Red Hat OpenShift Container Platform 4.17 Product: Red Hat OpenShift Container Platform 4.18 Product: Red Hat OpenShift Container Platform 4.19 Package: libauth-samba Package: libsmbclient Package: libwbclient Package: py3.13-samba Package: samba Package: samba Package: samba Package: samba Package: samba Package: samba-client Package: samba-common Package: samba-common-server-libs Package: samba-common-tools Package: samba-dev Package: samba-libnss-winbind Package: samba-libs Package: samba-libs-py3 Package: samba-pam-winbind Package: samba-server Package: samba-server-libs Package: samba-test Package: samba-util-libs Package: samba-winbind-clients Package: samba-winbind-krb5-locator Package: winbind Platform: Linux Ecosystem: Alpine Ecosystem: Azure Linux Ecosystem: Debian Ecosystem: Ubuntu Ecosystem: Wolfi

Description

A flaw was found in Samba’s vfs_worm module. The module is intended to provide write-once, read-many (WORM) protections by preventing modification of files after a configurable grace period. Due to insufficient validation during rename operations, an authenticated user with write access to a share could overwrite a protected file by renaming a newly created file over the existing WORM-protected file.

Affected products

VendorProductAffectedFixed
Red Hat Red Hat Enterprise Linux 10 — —
Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support — —
Red Hat Red Hat Enterprise Linux 8 — —
Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support — —
Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On — —
Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service — —
Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9 — —
Red Hat Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions — —
Red Hat Red Hat Enterprise Linux 9.6 Extended Update Support — —
Red Hat Red Hat OpenShift Container Platform 4.12 — —
Red Hat Red Hat OpenShift Container Platform 4.13 — —
Red Hat Red Hat OpenShift Container Platform 4.14 — —
Red Hat Red Hat OpenShift Container Platform 4.15 — —
Red Hat Red Hat OpenShift Container Platform 4.16 — —
Red Hat Red Hat OpenShift Container Platform 4.17 — —
Red Hat Red Hat OpenShift Container Platform 4.18 — —
Red Hat Red Hat OpenShift Container Platform 4.19 — —
Red Hat Red Hat Enterprise Linux 6 — —
Red Hat Red Hat Enterprise Linux 7 — —

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.

ReleasePackageFixed inAdvisory
Debian 14 samba 2:4.24.3+dfsg-1 —
Debian 13 samba 2:4.22.8+dfsg-0+deb13u2 —
Debian 12 samba 2:4.17.12+dfsg-0+deb12u4 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS samba 2:4.23.6+dfsg-1ubuntu2.1 —
Ubuntu 25.10 samba 2:4.22.3+dfsg-4ubuntu2.4 —
Ubuntu 24.04 LTS samba 2:4.19.5+dfsg-4ubuntu9.6 —
Ubuntu 22.04 LTS samba 2:4.15.13+dfsg-0ubuntu1.12 —
ReleasePackageFixed inAdvisory
RHEL 10 samba +36 4.23.5-109.el10_2 RHSA-2026:22963
RHEL 9 ctdb +37 4.23.5-10.el9_8 RHSA-2026:25049
RHEL 8 ctdb +33 4.19.4-16.el8_10 RHSA-2026:22644
Show 8 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
RHEL 10.0 EUS samba +36 4.21.3-114.el10_0.1 RHSA-2026:28055
RHEL 9.6 EUS ctdb +37 4.21.3-14.el9_6.1 RHSA-2026:25979
RHEL 9.4 E4S ctdb +24 4.19.4-105.el9_4.4 RHSA-2026:28053
RHEL 9.2 E4S ctdb +24 4.17.5-105.el9_2.5 RHSA-2026:28054
RHEL 8.8 TUS ctdb +28 4.17.5-7.el8_8.1 RHSA-2026:28056
RHEL 8.8 E4S ctdb +28 4.17.5-7.el8_8.1 RHSA-2026:28056
RHEL 8.6 EUS Long Life ctdb +21 4.15.5-16.el8_6.1 RHSA-2026:28057
RHEL 8.6 AUS ctdb +21 4.15.5-16.el8_6.1 RHSA-2026:28057

AlmaLinux

Errata ↗
ReleasePackageFixed inAdvisory
AlmaLinux 10 samba +36 4.23.5-109.el10_2 ALSA-2026:22963
AlmaLinux 9 samba +36 4.23.5-10.el9_8 ALSA-2026:25049
AlmaLinux 8 ctdb +33 4.19.4-16.el8_10 ALSA-2026:22644

Rocky Linux

Errata ↗
ReleasePackageFixed inAdvisory
Rocky Linux 10 samba 4.23.5-109.el10_2 RLSA-2026:22963
Rocky Linux 9 samba 4.23.5-10.el9_8 RLSA-2026:25049
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 samba 4.22.9+git.506.22c03ce0781-160000.1.1 SUSE-SU-2026:23152-1, SUSE-SU-2026:23129-1, SUSE-SU-2026:22080-1
SLES 16.0 samba 4.22.9+git.506.22c03ce0781-160000.1.1 SUSE-SU-2026:23152-1, SUSE-SU-2026:23129-1, SUSE-SU-2026:22080-1
SLE Micro 6.2 samba 4.22.9+git.506.22c03ce0781-160000.1.1 SUSE-SU-2026:23003-1, SUSE-SU-2026:22045-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed samba 4.23.8+git.477.f78166bceed-1.1 openSUSE-SU-2026:10884-1
openSUSE Leap 16.0 samba 4.22.9+git.506.22c03ce0781-160000.1.1 openSUSE-SU-2026:21540-1, openSUSE-SU-2026:20905-1
ReleasePackageFixed inAdvisory
Alpine v3.24 samba 4.23.8-r0 —
Alpine v3.23 samba 4.22.10-r0 —

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 samba No fix yet —

Oracle Linux

ReleasePackageFixed inAdvisory
Oracle Linux 10 samba +36 4.23.5-109.el10_2 ELSA-2026-22963
Oracle Linux 9 samba +36 4.23.5-10.el9_8 ELSA-2026-25049

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling samba +20 4.24.3-r0 —

Advisories 25

References