cve.bz

CVE-2026-2340

6.5 mediumEPSS 0.9%Fix available

Medium (6.5). EPSS 0.9% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

6.5 medium
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
EPSS
0.9% (unchanged from 0.9% a week ago; 0.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 62nd percentile. Scored 2026-11-15. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: no · Technical impact: partial, assessed 2026-05-29. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-280 Improper Handling of Insufficient Permissions or Privileges
OWASP Top 10
A10:2025 Mishandling of Exceptional Conditions
Published
Modified
NVD analysis
Analyzed
Record from
the NVD, synced

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:4.23.5-109.el10_2
  • Red Hat Red Hat Enterprise Linux 10.0 Extended Update Support: fixed in 0:4.21.3-114.el10_0.1
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:4.19.4-16.el8_10
  • Red Hat Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support: fixed in 0:4.15.5-16.el8_6.1
  • Red Hat Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On: fixed in 0:4.15.5-16.el8_6.1
  • Red Hat Red Hat Enterprise Linux 8.8 Telecommunications Update Service: fixed in 0:4.17.5-7.el8_8.1
  • Red Hat Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions: fixed in 0:4.17.5-7.el8_8.1
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:4.23.5-10.el9_8
  • Debian, Ubuntu, Red Hat, SUSE, openSUSE, AlmaLinux, Rocky Linux, Alpine: fixed package versions per release
  • Vendor advisory: https://bugzilla.samba.org/show_bug.cgi?id=15997

Ask an AI about this CVE

Show the promptExplain CVE-2026-2340 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-2340?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-2340?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-2340 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-2340

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-2340](https://cve.bz/cve/badge/CVE-2026-2340.svg)](https://cve.bz/cve/CVE-2026-2340)

HTML:

<a href="https://cve.bz/cve/CVE-2026-2340"><img src="https://cve.bz/cve/badge/CVE-2026-2340.svg" alt="CVE-2026-2340"></a>

Affected

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:4.23.5-109.el10_2
Red Hat Enterprise Linux 10.0 Extended Update Support0:4.21.3-114.el10_0.1
Red Hat Enterprise Linux 80:4.19.4-16.el8_10
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support0:4.15.5-16.el8_6.1
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On0:4.15.5-16.el8_6.1
Red Hat Enterprise Linux 8.8 Telecommunications Update Service0:4.17.5-7.el8_8.1
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions0:4.17.5-7.el8_8.1
Red Hat Enterprise Linux 90:4.23.5-10.el9_8
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions0:4.17.5-105.el9_2.5
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions0:4.19.4-105.el9_4.4
Red Hat Enterprise Linux 9.6 Extended Update Support0:4.21.3-14.el9_6.1
Red Hat OpenShift Container Platform 4.12412.86.202608241157-0
Red Hat OpenShift Container Platform 4.12412.86.202609082051-0
Red Hat OpenShift Container Platform 4.13413.92.202609080414-0
Red Hat OpenShift Container Platform 4.13413.92.202609302032-0
Red Hat OpenShift Container Platform 4.14414.92.202608172040-0
Red Hat OpenShift Container Platform 4.14414.92.202609011250-0
Red Hat OpenShift Container Platform 4.15415.92.202608180329-0
Red Hat OpenShift Container Platform 4.15415.92.202609140326-0
Red Hat OpenShift Container Platform 4.16416.94.202608150307-0
Red Hat OpenShift Container Platform 4.16416.94.202609011112-0
Red Hat OpenShift Container Platform 4.17417.94.202608250221-0
Red Hat OpenShift Container Platform 4.17417.94.202609191027-0
Red Hat OpenShift Container Platform 4.18418.94.202608142238-0
Red Hat OpenShift Container Platform 4.18418.94.202609031320-0
Red Hat OpenShift Container Platform 4.194.19.9.6.202606241344-0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12samba2:4.17.12+dfsg-0+deb12u4DEBIAN-CVE-2026-2340
Debian13samba2:4.22.8+dfsg-0+deb13u2DEBIAN-CVE-2026-2340
Debian14samba2:4.24.3+dfsg-1DEBIAN-CVE-2026-2340
Ubuntu22.04:LTSsamba2:4.15.13+dfsg-0ubuntu1.12UBUNTU-CVE-2026-2340
Ubuntu24.04:LTSsamba2:4.19.5+dfsg-4ubuntu9.6UBUNTU-CVE-2026-2340
Ubuntu25.10samba2:4.22.3+dfsg-4ubuntu2.4UBUNTU-CVE-2026-2340
Ubuntu26.04:LTSsamba2:4.23.6+dfsg-1ubuntu2.1UBUNTU-CVE-2026-2340
Red Hatenterprise_linux:8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.19.4-16.el8_10RHSA-2026:22644
Red Hatenterprise_linux:8::baseosctdb, samba, libnetapi and 50 more0:4.19.4-16.el8_10RHSA-2026:22644
Red Hatenterprise_linux:8::crbsamba-devel, ctdb-debuginfo, libnetapi-devel and 27 more0:4.19.4-16.el8_10RHSA-2026:22644
Red Hatenterprise_linux:9::appstreamsamba-client, samba-winexe, ctdb-debuginfo and 32 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::baseossamba, libldb, ldb-tools and 46 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::crbsamba-pidl, samba-test, samba-devel and 34 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:9::resilientstoragectdb, ctdb-debuginfo, samba-debuginfo and 26 more0:4.23.5-10.el9_8RHSA-2026:25049
Red Hatenterprise_linux:10.2samba, libldb, ldb-tools and 62 more0:4.23.5-109.el10_2RHSA-2026:22963
Red Hatenterprise_linux_eus:10.0samba, libldb, ldb-tools and 62 more0:4.21.3-114.el10_0.1RHSA-2026:28055
Red Hatrhel_aus:8.6::appstream, rhel_eus_long_life:8.6::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 18 more0:4.15.5-16.el8_6.1RHSA-2026:28057
Red Hatrhel_aus:8.6::baseos, rhel_eus_long_life:8.6::baseosctdb, samba, samba-libs and 38 more0:4.15.5-16.el8_6.1RHSA-2026:28057
Red Hatrhel_e4s:8.8::appstream, rhel_tus:8.8::appstreamctdb-debuginfo, samba-debuginfo, samba-debugsource and 23 more0:4.17.5-7.el8_8.1RHSA-2026:28056
11 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0samba4.22.11+git.552.66cfeb7de0a-160000.1.1SUSE-SU-2026:23129-1 SUSE-SU-2026:23152-1
SUSELinux Enterprise Server 16.0, Linux Enterprise Server for SAP applications 16.0samba4.22.9+git.506.22c03ce0781-160000.1.1SUSE-SU-2026:22080-1
SUSELinux Micro 6.2samba4.22.11+git.552.66cfeb7de0a-160000.1.1SUSE-SU-2026:23003-1
SUSELinux Micro 6.2samba4.22.9+git.506.22c03ce0781-160000.1.1SUSE-SU-2026:22045-1
openSUSELeap 16.0samba4.22.11+git.552.66cfeb7de0a-160000.1.1openSUSE-SU-2026:21540-1
openSUSELeap 16.0samba4.22.9+git.506.22c03ce0781-160000.1.1openSUSE-SU-2026:20905-1
openSUSETumbleweedsamba4.23.8+git.477.f78166bceed-1.1openSUSE-SU-2026:10884-1
AlmaLinux8ctdb, samba, libnetapi and 31 more4.19.4-16.el8_10ALSA-2026:22644
AlmaLinux9samba, libldb, ldb-tools and 34 more4.23.5-10.el9_8ALSA-2026:25049
AlmaLinux10samba, libldb, ldb-tools and 34 more4.23.5-109.el10_2ALSA-2026:22963
Rocky Linux9samba0:4.23.5-10.el9_8RLSA-2026:25049
Rocky Linux10samba0:4.23.5-109.el10_2RLSA-2026:22963
Alpinev3.23samba4.22.10-r0ALPINE-CVE-2026-2340
Alpinev3.24samba4.23.8-r0ALPINE-CVE-2026-2340
Azure Linux3sambano fix listedAZL-89145

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

This vulnerability is rated Moderate severity because exploitation requires authenticated write access to a Samba share already configured to permit file creation and modification.

The flaw affects the vfs_worm module, which provides additional immutability protections for files after a configurable grace period. Due to improper handling of rename operations, a user with existing write permissions could overwrite files that should have become immutable under the WORM policy.

The vulnerability does not bypass underlying filesystem access controls or grant additional privileges beyond those already assigned to the authenticated user. However, because the primary purpose of the vfs_worm module is to protect file integrity, the ability to modify protected files results in a high integrity impact.

Red Hat's mitigation

Administrators can mitigate this issue by:

Setting read-only permissions on protected files at the underlying filesystem level will prevent modifications.

Configuring ```worm:grace_period = 0``` (zero or less) in smb.conf will eliminate the writable grace period (will eliminate the window in which the rename can happen), understanding that this may impact workflows requiring multi-step file creation.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10samba-0:4.23.5-109.el10_2Fixed 2026-06-03RHSA-2026:22963
Red Hat Enterprise Linux 10.0 Extended Update Supportsamba-0:4.21.3-114.el10_0.1Fixed 2026-06-23RHSA-2026:28055
Red Hat Enterprise Linux 8samba-0:4.19.4-16.el8_10Fixed 2026-06-03RHSA-2026:22644
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportsamba-0:4.15.5-16.el8_6.1Fixed 2026-06-23RHSA-2026:28057
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Onsamba-0:4.15.5-16.el8_6.1Fixed 2026-06-23RHSA-2026:28057
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicesamba-0:4.17.5-7.el8_8.1Fixed 2026-06-23RHSA-2026:28056
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionssamba-0:4.17.5-7.el8_8.1Fixed 2026-06-23RHSA-2026:28056
Red Hat Enterprise Linux 9samba-0:4.23.5-10.el9_8Fixed 2026-06-10RHSA-2026:25049
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionssamba-0:4.17.5-105.el9_2.5Fixed 2026-06-23RHSA-2026:28054
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionssamba-0:4.19.4-105.el9_4.4Fixed 2026-06-23RHSA-2026:28053
Red Hat Enterprise Linux 9.6 Extended Update Supportsamba-0:4.21.3-14.el9_6.1Fixed 2026-06-15RHSA-2026:25979
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202608241157-0Fixed 2026-09-03RHSA-2026:59831
Red Hat OpenShift Container Platform 4.12openshift/ose-rhel-coreos-8:412.86.202609082051-0Fixed 2026-09-17RHSA-2026:65907
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202609080414-0Fixed 2026-09-17RHSA-2026:65839
Red Hat OpenShift Container Platform 4.13openshift/ose-rhel-coreos-9:413.92.202609302032-0Fixed 2026-10-15RHSA-2026:77320
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202608172040-0Fixed 2026-08-31RHSA-2026:56786
Red Hat OpenShift Container Platform 4.14openshift/ose-rhel-coreos-9:414.92.202609011250-0Fixed 2026-09-14RHSA-2026:62409
Red Hat Enterprise Linux 6sambaOut of support scope
Red Hat Enterprise Linux 6samba4Out of support scope
Red Hat Enterprise Linux 7sambaWill not fix
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-2340.

References

Check your stackJSON