CVE-2026-2340

Samba: vfs_worm does not block directory modification

MEDIUM
6.5
CVSS Score
Published: May 27, 2026 at 12:09 PM UTC
Updated: October 15, 2026 at 05:17 PM UTC
3 products affected across 2 vendorsEnterprise LinuxOpenShift Container PlatformSAMBA

Using Red Hat Enterprise Linux 10 by Red Hat?

Get instant alerts when new vulnerabilities affect Red Hat Enterprise Linux 10 - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.5
Exploit prediction
EPSS 0.9%
SSVC
No known exploit

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

Vendor states this is fixed in 0:4.15.5-16.el8_6.1 (unaffected)
Vendor states this is fixed in 0:4.17.5-105.el9_2.5 (unaffected)
Vendor states this is fixed in 0:4.17.5-7.el8_8.1 (unaffected)
Vendor states this is fixed in 0:4.19.4-105.el9_4.4 (unaffected)
Vendor states this is fixed in 0:4.19.4-16.el8_10 (unaffected)
Vendor states this is fixed in 0:4.21.3-114.el10_0.1 (unaffected)
Vendor states this is fixed in 0:4.21.3-14.el9_6.1 (unaffected)
Vendor states this is fixed in 0:4.23.5-10.el9_8 (unaffected)
Vendor states this is fixed in 0:4.23.5-109.el10_2 (unaffected)
Vendor states this is fixed in 6 (unknown)
Vendor states this is fixed in 4.19.9.6.202606241344-0 (unaffected)
Vendor states this is fixed in 412.86.202608241157-0 (unaffected)
Vendor states this is fixed in 412.86.202609082051-0 (unaffected)
Vendor states this is fixed in 413.92.202609080414-0 (unaffected)
Vendor states this is fixed in 413.92.202609302032-0 (unaffected)
Vendor states this is fixed in 414.92.202608172040-0 (unaffected)
Vendor states this is fixed in 414.92.202609011250-0 (unaffected)
Vendor states this is fixed in 415.92.202608180329-0 (unaffected)
Vendor states this is fixed in 415.92.202609140326-0 (unaffected)
Vendor states this is fixed in 416.94.202608150307-0 (unaffected)
Vendor states this is fixed in 416.94.202609011112-0 (unaffected)
Vendor states this is fixed in 417.94.202608250221-0 (unaffected)
Vendor states this is fixed in 417.94.202609191027-0 (unaffected)
Vendor states this is fixed in 418.94.202608142238-0 (unaffected)
Vendor states this is fixed in 418.94.202609031320-0 (unaffected)
v ≥ 4.1.0

References (27)

VDB Entryx_refsource_REDHATMitigationThird Party Advisory
Source: cverecord
https://access.redhat.com/security/cve/CVE-2026-2340
Issue Trackingx_refsource_REDHATThird Party Advisory
Source: cverecord
https://bugzilla.redhat.com/show_bug.cgi?id=2447318
Issue TrackingVendor Advisory
Source: cverecord
https://bugzilla.samba.org/show_bug.cgi?id=15997
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:22963
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:25049
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:25979
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:22644
Vendor Advisoryx_refsource_REDHAT
Source: cverecord
https://access.redhat.com/errata/RHSA-2026:28057

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

6.5MEDIUMredhat
Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-280

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card