Vulnerability · Published May 27, 2026 · Assigned by redhat

CVE-2026-2340Samba: vfs_worm does not block directory modification

Medium 6.5

In plain English

A medium-severity security flaw in Red Hat Enterprise Linux 10 from Red Hat. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.9% (higher than 61% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)6.5Medium
Exploit odds (30 days)0.9%top 38.9% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:8ctdb4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:10ldb-tools4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:9ldb-tools4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libldb4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:9libldb4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libldb-devel4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:9libldb-devel4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libnetapi4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8libnetapi4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9libnetapi4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libnetapi-devel4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8libnetapi-devel4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9libnetapi-devel4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libsmbclient4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8libsmbclient4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9libsmbclient4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libsmbclient-devel4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8libsmbclient-devel4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9libsmbclient-devel4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libwbclient4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8libwbclient4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9libwbclient4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10libwbclient-devel4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8libwbclient-devel4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9libwbclient-devel4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10python3-ldb4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:9python3-ldb4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10python3-samba4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8python3-samba4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9python3-samba4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10python3-samba-dc4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8python3-samba-dc4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9python3-samba-dc4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:8python3-samba-devel4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:10python3-samba-test4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8python3-samba-test4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9python3-samba-test4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-client4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-client4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-client4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-client-libs4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-client-libs4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-client-libs4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-common4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-common4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-common4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-common-libs4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-common-libs4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-common-libs4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-common-tools4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-common-tools4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-common-tools4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-dc-libs4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-dc-libs4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-dc-libs4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-dcerpc4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-dcerpc4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-dcerpc4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-devel4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-devel4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-devel4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-gpupdate4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:9samba-gpupdate4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-krb5-printing4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-krb5-printing4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-krb5-printing4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-ldb-ldap-modules4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-ldb-ldap-modules4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-ldb-ldap-modules4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-libs4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-libs4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-libs4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-pidl4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-pidl4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-pidl4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-test4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-test4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-test4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-test-libs4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-test-libs4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-test-libs4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-tools4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-tools4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-tools4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-usershares4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-usershares4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-usershares4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-vfs-iouring4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-vfs-iouring4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-vfs-iouring4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-winbind4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-winbind4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-winbind4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-winbind-clients4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-winbind-clients4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-winbind-clients4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-winbind-krb5-locator4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-winbind-krb5-locator4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-winbind-krb5-locator4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-winbind-modules4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-winbind-modules4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-winbind-modules4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux:10samba-winexe4.23.5-109.el10_2ALSA-2026:22963
AlmaLinux:8samba-winexe4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux:9samba-winexe4.23.5-10.el9_8ALSA-2026:25049
Alpine:v3.23samba4.22.10-r0ALPINE-CVE-2026-2340
Alpine:v3.24samba4.23.8-r0ALPINE-CVE-2026-2340
Debian:12samba2:4.17.12+dfsg-0+deb12u4DEBIAN-CVE-2026-2340
Debian:13samba2:4.22.8+dfsg-0+deb13u2DEBIAN-CVE-2026-2340
Debian:14samba2:4.24.3+dfsg-1DEBIAN-CVE-2026-2340
Rocky Linux:10samba0:4.23.5-109.el10_2RLSA-2026:22963
Rocky Linux:9samba0:4.23.5-10.el9_8RLSA-2026:25049
Ubuntu:22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.12UBUNTU-CVE-2026-2340
Ubuntu:24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.6UBUNTU-CVE-2026-2340
Ubuntu:25.10samba2:4.22.3+dfsg-4ubuntu2.4UBUNTU-CVE-2026-2340
Ubuntu:26.04:LTSsamba2:4.23.6+dfsg-1ubuntu2.1UBUNTU-CVE-2026-2340

Affected products (as reported)

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

Weakness: CWE-280 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

References