CVE-2026-2340
Samba: vfs_worm does not block directory modification
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.
Fixes and workarounds
Workaround
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.
Source: CNA: redhatAffected products and versions
| Product | Versions | Authority |
|---|---|---|
| Red Hat Enterprise Linux 10 Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.23.5-109.el10_2; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 10.0 Extended Update Support Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.21.3-114.el10_0.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8 Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.19.4-16.el8_10; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.15.5-16.el8_6.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.15.5-16.el8_6.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.17.5-7.el8_8.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.17.5-7.el8_8.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9 Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.23.5-10.el9_8; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.17.5-105.el9_2.5; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.19.4-105.el9_4.4; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 9.6 Extended Update Support Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
≥ 0:4.21.3-14.el9_6.1; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.12 Red Hat openshift/ose-rhel-coreos-8
https://access.redhat.com/downloads/content/package-browser/ |
≥ 412.86.202608241157-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.12 Red Hat openshift/ose-rhel-coreos-8
https://access.redhat.com/downloads/content/package-browser/ |
≥ 412.86.202609082051-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.13 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 413.92.202609080414-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.13 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 413.92.202609302032-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.14 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 414.92.202608172040-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.14 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 414.92.202609011250-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.15 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 415.92.202608180329-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.15 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 415.92.202609140326-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.16 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 416.94.202608150307-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.16 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 416.94.202609011112-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.17 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 417.94.202608250221-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.17 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 417.94.202609191027-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.18 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 418.94.202608142238-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.18 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 418.94.202609031320-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat OpenShift Container Platform 4.19 Red Hat openshift/ose-rhel-coreos-9
https://access.redhat.com/downloads/content/package-browser/ |
≥ 4.19.9.6.202606241344-0; < * (unaffected, rpm)
Other versions: affected |
CNA: redhat |
| Red Hat Enterprise Linux 6 Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 6 Red Hat samba4
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: unknown |
CNA: redhat |
| Red Hat Enterprise Linux 7 Red Hat samba
https://access.redhat.com/downloads/content/package-browser/ |
Range not reported
Other versions: affected |
CNA: redhat |
Version ranges are source assertions. Check the vendor advisory and your installed configuration before determining exposure.
NVD applicability configurations (2)
These expressions retain AND/OR operators, negation, and required environmental products. A listed product is not sufficient to establish exposure when additional conditions apply.
[
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.22.10",
"versionStartIncluding": "4.20.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.23.8",
"versionStartIncluding": "4.23.0",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:samba:samba:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.24.3",
"versionStartIncluding": "4.24.0",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
},
{
"negate": false,
"nodes": [
{
"cpeMatch": [
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.12.97",
"versionStartIncluding": "4.12",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.13.71",
"versionStartIncluding": "4.13",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.14.72",
"versionStartIncluding": "4.14",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.15.68",
"versionStartIncluding": "4.15",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.16.69",
"versionStartIncluding": "4.16",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.17.57",
"versionStartIncluding": "4.17",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.18.54",
"versionStartIncluding": "4.18",
"vulnerable": true
},
{
"criteria": "cpe:2.3:a:redhat:openshift_container_platform:*:*:*:*:*:*:*:*",
"versionEndExcluding": "4.19.36",
"versionStartIncluding": "4.19",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:redhat:enterprise_linux:7.0:*:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:redhat:enterprise_linux:8.0:*:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:redhat:enterprise_linux:9.0:*:*:*:*:*:*:*",
"vulnerable": true
},
{
"criteria": "cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:*:*",
"vulnerable": true
}
],
"negate": false,
"operator": "OR"
}
],
"operator": "OR"
}
]CVSS assessments
| Version / score | Vector | Authority |
|---|---|---|
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | CNA: redhat |
| 3.1 / 6.5 medium |
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N | NVD: [email protected] |
Exploit evidence
No exploit evidence in collected sources. This is not proof of no exploitation.
References
- https://access.redhat.com/errata/RHSA-2026:22644CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:22963CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25049CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:25979CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:28053CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:28054CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:28055CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:28056CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:28057CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:29863CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56786CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56853CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:56911CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:57483CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:59831CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:60019CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:62409CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:62549CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:65839CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:65851CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:65907CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:67857CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:70586CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/errata/RHSA-2026:77320CNA: redhat · vendor-advisory, x_refsource_REDHAT
- https://access.redhat.com/security/cve/CVE-2026-2340CNA: redhat · vdb-entry, x_refsource_REDHAT
- https://bugzilla.redhat.com/show_bug.cgi?id=2447318CNA: redhat · issue-tracking, x_refsource_REDHAT
- https://bugzilla.samba.org/show_bug.cgi?id=15997CNA: redhat
- https://access.redhat.com/errata/RHSA-2026:22644[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:22963[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:25049[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:25979[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:28053[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:28054[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:28055[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:28056[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:28057[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:29863[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:56786[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:56853[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:56911[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:57483[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:59831[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:60019[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:62409[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:62549[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:65839[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:65851[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:65907[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:67857[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:70586[email protected] · Third Party Advisory
- https://access.redhat.com/errata/RHSA-2026:77320[email protected] · Third Party Advisory
- https://access.redhat.com/security/cve/CVE-2026-2340[email protected] · Mitigation, Third Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2447318[email protected] · Issue Tracking, Third Party Advisory
- https://bugzilla.samba.org/show_bug.cgi?id=15997[email protected] · Issue Tracking, Vendor Advisory
For agents and automation
Read public disclosures for free as Markdown or JSON. Compatible browsers also expose native WebMCP tools to search disclosures, read this page, and discover API access.
Use the ontology-linked Cyber API with x402 pay per request, or a Y2 Pro or Elite API key with the intel:cyber scope.
Endpoints and access details
https://api.y2.dev/api/v2/cyber/cveshttps://api.y2.dev/api/v2/cyber/cves/{cveId}
A workspace owner or admin can create a Pro or Elite API key. Send Authorization: Bearer <Y2_API_KEY> from your trusted agent runtime.
For x402, omit Authorization and read the HTTP 402 payment challenge before signing a retry. Public browser tools do not make payments.