Skip to main content

Samba vfs_worm EUVDEUVD-2026-32312

| CVE-2026-2340 MEDIUM
Improper Handling of Insufficient Permissions or Privileges (CWE-280)
2026-05-27 secalert@redhat.com GHSA-m6w2-p258-gxqp
6.5
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate to Samba share with low-privilege credentials
  2. Delivery
    Identify WORM-protected target file on share
  3. Exploit
    Create new file with desired replacement content
  4. Execution
    Issue rename() targeting WORM-protected destination path
  5. Persist
    vfs_worm skips immutability check on rename destination
  6. Impact
    Protected file overwritten, WORM guarantee defeated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A10:2025 - Mishandling of Exceptional Conditions
ASVS 5.0
V8 - Authorization Insufficient permission handling
Exploitation Conditions

Exploitation requires all of the following: the target Samba server must have the vfs_worm VFS module explicitly loaded in smb.conf (non-default configuration - vfs_worm is not enabled in standard Samba deployments); the attacker must hold a valid Samba account with write access to the affected share (CVSS PR:L confirms authentication is required); the target file must have already passed its configured WORM grace period (files still within the grace window are not yet subject to WORM lock and may already be overwritable through normal means); and the attacker must be able to initiate a rename operation on the share, which requires the same write-level share access. Exploitation is limited to integrity impact only - confidentiality (C:N) and availability (A:N) are unaffected per the CVSS vector. The non-default nature of the vfs_worm module configuration is the primary limiting factor for widespread exploitation.

Impact

The CVSS 3.1 score of 6.5 (Medium) reflects a network-accessible (AV:N), low-complexity (AC:L), low-privilege (PR:L) attack with no user interaction (UI:N) and high integrity impact (I:H), but no confidentiality or availability impact. In real-world terms, this is a meaningful risk specifically for organizations relying on Samba's vfs_worm for regulatory or audit compliance - environments such as financial record retention, healthcare archiving, or legal hold storage where immutability guarantees carry legal weight. For environments not using vfs_worm, this CVE has zero impact. No EPSS score was supplied in the provided data, so probabilistic exploitation likelihood cannot be quantified. The vulnerability is not listed in the CISA KEV catalog, and no public proof-of-concept has been identified, suggesting limited opportunistic exploitation risk at this time. The tag 'Information Disclosure' applied to this CVE appears inconsistent with both the description (which describes integrity bypass, not data exfiltration) and the CVSS vector (C:N). This discrepancy should be verified with the vendor - it may reflect a tagging error or an undocumented secondary impact not captured in the primary description.

Exploit ScenarioDerived

An attacker authenticates to a Samba share using a low-privilege account that has write access to a share configured with the vfs_worm module. The attacker creates a new file containing malicious or falsified content, then issues a rename operation targeting an existing WORM-protected file whose grace period has already expired. Because the vfs_worm module does not validate rename destinations against its immutability list, the rename succeeds and the protected file is silently overwritten. No public proof-of-concept exploit code has been identified at time of analysis, but the attack requires only standard filesystem operations available to any authenticated share user.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 27, 2026

WORM protection bypass in Samba's vfs_worm VFS module allows authenticated share users to defeat data retention controls by renaming a newly created file over an existing WORM-protected file. Affected users are those operating Samba deployments that have explicitly enabled the vfs_worm module for write-once, read-many data protection - such as compliance, archival, or audit log shares. An attacker with low-privilege write access can silently overwrite files that should be immutable post-grace-period, with high integrity impact (CVSS I:H). No public exploit or CISA KEV listing is identified at time of analysis.

RemediationAI

No vendor-released patch version was identified in the provided data at time of analysis - the upstream bug report at https://bugzilla.samba.org/show_bug.cgi?id=15997 should be monitored for fix commits and patched release announcements. As a primary compensating control, organizations should evaluate whether the vfs_worm module is strictly necessary; if not, disabling it removes the attack surface entirely (note: this also removes WORM protections, which may violate compliance requirements). If vfs_worm must remain enabled, restricting write access to WORM shares to only the minimum required user accounts via Samba share-level ACLs (valid users, write list) limits the pool of potential attackers to explicitly authorized principals. Filesystem-level WORM enforcement provided by the underlying storage platform (e.g., NetApp SnapLock, ZFS immutability flags, object-lock on S3-compatible backends) can serve as a defense-in-depth layer that does not rely on Samba's VFS module. Red Hat's advisory at https://access.redhat.com/security/cve/CVE-2026-2340 should be consulted for distribution-specific package updates.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Samba's Virtual File System (VFS) layer supports pluggable modules that intercept filesystem operations. The vfs_worm module is one such plugin, designed to enforce WORM semantics: once a file's configurable grace period expires, write operations to it are blocked. The vulnerability arises from CWE-280 (Improper Handling of Insufficient Permissions or Privileges) - specifically, the module's permission validation logic does not correctly handle rename(2) system calls that target a protected file. A rename that resolves to an existing WORM-protected destination is not subjected to the same immutability check applied to direct write operations, creating a logic gap between the rename path and the write-protection enforcement path. The underlying Samba VFS dispatch for rename operations was reported via Samba bugzilla #15997 and Red Hat Bugzilla #2447318, both linked from NVD. No CPE strings were supplied with this advisory, so exact version ranges are not confirmed from the provided data.

Know when Samba gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (redhat) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 92% exploitable
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Affected Products (CPE)CVE.org

cpe:2.3:a:redhat:openshift_container_platform:4.0:*:*:*:*:*:*:*
cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*

More in Samba

View all
CVE-2017-7494 CRITICAL POC
9.8 May 30

Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allo

CVE-2012-1182 CRITICAL POC
10.0 Apr 10

The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement valida

CVE-2015-0240 CRITICAL POC
10.0 Feb 24

The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1

CVE-2016-2118 HIGH POC
7.5 Apr 12

The MS-SAMR and MS-LSAD protocol implementations in Samba 3.x and 4.x before 4.2.11, 4.3.x before 4.3.8, and 4.4.x befor

CVE-2013-4124 MEDIUM POC
5.0 Aug 06

Integer overflow in the read_nttrans_ea_list function in nttrans.c in smbd in Samba 3.x before 3.5.22, 3.6.x before 3.6.

CVE-2014-3560 HIGH
7.9 Aug 06

NetBIOS name services daemon (nmbd) in Samba 4.0.x before 4.0.21 and 4.1.x before 4.1.11 allows remote attackers to exec

CVE-2023-34966 HIGH
7.5 Jul 20

An infinite loop vulnerability was found in Samba's mdssvc RPC service for Spotlight. Rated high severity (CVSS 7.5), th

CVE-2023-34967 MEDIUM
5.3 Jul 20

A Type Confusion vulnerability was found in Samba's mdssvc RPC service for Spotlight. Rated medium severity (CVSS 5.3),

CVE-2012-0870 HIGH
7.9 Feb 23

Heap-based buffer overflow in process.c in smbd in Samba 3.0, as used in the file-sharing service on the BlackBerry Play

CVE-2015-7540 HIGH
7.5 Dec 29

The LDAP server in the AD domain controller in Samba 4.x before 4.1.22 does not check return values to ensure successful

CVE-2017-15275 HIGH
7.5 Nov 27

Samba before 4.7.3 might allow remote attackers to obtain sensitive information by leveraging failure of the server to c

CVE-2017-14746 CRITICAL
9.8 Nov 27

Use-after-free vulnerability in Samba 4.x before 4.7.3 allows remote attackers to execute arbitrary code via a crafted S

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
Image SLES12-SP5-Azure-BYOS Image SLES12-SP5-Azure-Standard-On-Demand Image SLES12-SP5-EC2-BYOS Image SLES12-SP5-EC2-ECS-On-Demand Image SLES12-SP5-EC2-On-Demand Image SLES12-SP5-GCE-BYOS Image SLES12-SP5-GCE-On-Demand Affected
Image SLES15-SP7-HPC-Azure Affected
SUSE Enterprise Storage 7.1 Fixed
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Basesystem 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Availability Extension 12 SP5 Fixed

References

Advisories & patches
ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-2340 ADVISORY https://vuldb.com/vuln/366170 ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2071/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2072/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2073/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2074/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2076/ ADVISORY https://www.suse.com/support/update/SUSE-SU-2026:2108/ REF https://access.redhat.com/errata/RHSA-2026:22644 REF https://access.redhat.com/errata/RHSA-2026:22963 REF https://access.redhat.com/errata/RHSA-2026:25049 REF https://access.redhat.com/errata/RHSA-2026:25979 REF https://access.redhat.com/errata/RHSA-2026:28053 REF https://access.redhat.com/errata/RHSA-2026:28054 REF https://access.redhat.com/errata/RHSA-2026:28055 REF https://access.redhat.com/errata/RHSA-2026:28056 REF https://access.redhat.com/errata/RHSA-2026:28057 REF https://access.redhat.com/errata/RHSA-2026:29863 REF https://access.redhat.com/errata/RHSA-2026:56786 REF https://access.redhat.com/errata/RHSA-2026:56853 REF https://access.redhat.com/errata/RHSA-2026:56911 REF https://access.redhat.com/errata/RHSA-2026:57483 REF https://access.redhat.com/errata/RHSA-2026:59831 REF https://access.redhat.com/errata/RHSA-2026:60019 REF https://access.redhat.com/errata/RHSA-2026:62409 REF https://access.redhat.com/errata/RHSA-2026:62549 REF https://access.redhat.com/errata/RHSA-2026:65839 REF https://access.redhat.com/errata/RHSA-2026:65851 REF https://access.redhat.com/errata/RHSA-2026:65907 REF https://access.redhat.com/errata/RHSA-2026:67857 REF https://access.redhat.com/errata/RHSA-2026:70586 REF https://access.redhat.com/errata/RHSA-2026:77320 REF https://access.redhat.com/security/cve/CVE-2026-2340 REF https://bugzilla.redhat.com/show_bug.cgi?id=2447318 REF https://bugzilla.samba.org/show_bug.cgi?id=15997

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy