VDB

CVE-2026-2340

CVE-2026-2340 PUBLISHED CVSS 6.5 MEDIUM

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.

PackageEcosystemFixed in
python3-samba-testerrata.rockylinux.org4.23.5-109.el10
libldb-develerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
ldb-toolserrata.rockylinux.org4.23.5-10.el9
samba-vfs-iouring-debuginfoerrata.rockylinux.org4.23.5-10.el9
samba-winbind-krb5-locator-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9, 4.19.4-16.el8
python3-ldb-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
python3-sambaerrata.rockylinux.org4.23.5-109.el10
samba-client-debuginfoerrata.rockylinux.org4.23.5-109.el10
samba-debuginfoerrata.rockylinux.org4.23.5-10.el9
libnetapi-debuginfoerrata.rockylinux.org4.23.5-109.el10, 4.23.5-10.el9
samba-ldb-ldap-modules-debuginfoerrata.rockylinux.org4.23.5-10.el9
samba-winbind-debuginfoerrata.rockylinux.org4.23.5-109.el10

39 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
Red HatRed Hat Enterprise Linux 100:4.23.5-109.el10_2
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support0:4.21.3-114.el10_0.1
Red HatRed Hat Enterprise Linux 80:4.19.4-16.el8_10
Red HatRed Hat Enterprise Linux 80:4.19.4-16.el8_10
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:4.15.5-16.el8_6.1
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:4.15.5-16.el8_6.1
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service0:4.17.5-7.el8_8.1
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:4.17.5-7.el8_8.1
Red HatRed Hat Enterprise Linux 90:4.23.5-10.el9_8
Red HatRed Hat Enterprise Linux 90:4.23.5-10.el9_8
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:4.17.5-105.el9_2.5
Red HatRed Hat Enterprise Linux 9.4 Update Services for SAP Solutions0:4.19.4-105.el9_4.4
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support0:4.21.3-14.el9_6.1
Red HatRed Hat OpenShift Container Platform 4.12412.86.202608241157-0
Red HatRed Hat OpenShift Container Platform 4.12412.86.202609082051-0
Red HatRed Hat OpenShift Container Platform 4.13413.92.202609080414-0
Red HatRed Hat OpenShift Container Platform 4.13413.92.202609302032-0
Red HatRed Hat OpenShift Container Platform 4.14414.92.202608172040-0
Red HatRed Hat OpenShift Container Platform 4.14414.92.202609011250-0
Red HatRed Hat OpenShift Container Platform 4.15415.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

…and 7 more

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›