CVE-2026-2340
Samba: vfs_worm does not block directory modification
Reported by redhat · Published May 27, 2026
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| python3-samba-test | errata.rockylinux.org | 4.23.5-109.el10 |
| libldb-devel | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| ldb-tools | errata.rockylinux.org | 4.23.5-10.el9 |
| samba-vfs-iouring-debuginfo | errata.rockylinux.org | 4.23.5-10.el9 |
| samba-winbind-krb5-locator-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9, 4.19.4-16.el8 |
| python3-ldb-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| python3-samba | errata.rockylinux.org | 4.23.5-109.el10 |
| samba-client-debuginfo | errata.rockylinux.org | 4.23.5-109.el10 |
| samba-debuginfo | errata.rockylinux.org | 4.23.5-10.el9 |
| libnetapi-debuginfo | errata.rockylinux.org | 4.23.5-109.el10, 4.23.5-10.el9 |
| samba-ldb-ldap-modules-debuginfo | errata.rockylinux.org | 4.23.5-10.el9 |
| samba-winbind-debuginfo | errata.rockylinux.org | 4.23.5-109.el10 |
39 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Red Hat | Red Hat Enterprise Linux 10 | 0:4.23.5-109.el10_2 |
| Red Hat | Red Hat Enterprise Linux 10.0 Extended Update Support | 0:4.21.3-114.el10_0.1 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.19.4-16.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8 | 0:4.19.4-16.el8_10 |
| Red Hat | Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | 0:4.15.5-16.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On | 0:4.15.5-16.el8_6.1 |
| Red Hat | Red Hat Enterprise Linux 8.8 Telecommunications Update Service | 0:4.17.5-7.el8_8.1 |
| Red Hat | Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | 0:4.17.5-7.el8_8.1 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.23.5-10.el9_8 |
| Red Hat | Red Hat Enterprise Linux 9 | 0:4.23.5-10.el9_8 |
| Red Hat | Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | 0:4.17.5-105.el9_2.5 |
| Red Hat | Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions | 0:4.19.4-105.el9_4.4 |
| Red Hat | Red Hat Enterprise Linux 9.6 Extended Update Support | 0:4.21.3-14.el9_6.1 |
| Red Hat | Red Hat OpenShift Container Platform 4.12 | 412.86.202608241157-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.12 | 412.86.202609082051-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.13 | 413.92.202609080414-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.13 | 413.92.202609302032-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.14 | 414.92.202608172040-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.14 | 414.92.202609011250-0 |
| Red Hat | Red Hat OpenShift Container Platform 4.15 | 415.92.202608180329-0 |
…and 46 more
Timeline
- May 27, 2026 CVE Published
- May 28, 2026 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (30 in total, the first dated here)
- Jun 4, 2026 Distribution Patch (32 in total, the first dated here)
- Jul 23, 2026 Coalition ESS Score
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2026-2340
vulnetix vdb fixes CVE-2026-2340
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-2340/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- RHSA-2026:22644 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:22963 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:25049 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:25979 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:28053 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:28054 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:28055 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:28056 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:28057 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:29863 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:56786 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:56853 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:56911 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:57483 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:59831 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:60019 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:62409 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:62549 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:65839 vendor-advisoryx_refsource_REDHAT
- RHSA-2026:65851 vendor-advisoryx_refsource_REDHAT
…and 7 more