# CVE-2026-2340: Samba: vfs_worm does not block directory modification

- Severity: Medium 6.5 (CVSS:3.1, scored by redhat) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.95%, higher than 62% of CVEs (2026-12-02)
- Published: 2026-05-27T12:09:32.601Z
- Modified: 2026-11-26T22:17:56.690Z
- Weaknesses: CWE-280
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: redhat

## 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.

(As written by CVE List.)

## Affected

- samba: no versions given (not affected: from 0:4.23.5-109.el10_2 before *; from 0:4.21.3-114.el10_0.1 before *; from 0:4.19.4-16.el8_10 before *; from 0:4.15.5-16.el8_6.1 before *; from 0:4.17.5-7.el8_8.1 before *; from 0:4.23.5-10.el9_8 before *; from 0:4.17.5-105.el9_2.5 before *; from 0:4.19.4-105.el9_4.4 before *; from 0:4.21.3-14.el9_6.1 before *)
- openshift/ose-rhel-coreos-8: no versions given (not affected: from 412.86.202608241157-0 before *; from 412.86.202609082051-0 before *)
- openshift/ose-rhel-coreos-9: no versions given (not affected: from 413.92.202609080414-0 before *; from 413.92.202609302032-0 before *; from 414.92.202608172040-0 before *; from 414.92.202609011250-0 before *; from 415.92.202608180329-0 before *; from 415.92.202609140326-0 before *; from 416.94.202608150307-0 before *; from 416.94.202609011112-0 before *; from 417.94.202608250221-0 before *; from 417.94.202609191027-0 before *; from 418.94.202608142238-0 before *; from 418.94.202609031320-0 before *)
- samba4: no versions given
- samba samba: from 4.20.0 before 4.22.10; from 4.23.0 before 4.23.8; from 4.24.0 before 4.24.3
- redhat openshift_container_platform: from 4.12 before 4.12.97; from 4.13 before 4.13.71; from 4.14 before 4.14.72; from 4.15 before 4.15.68; from 4.16 before 4.16.69; from 4.17 before 4.17.57; from 4.18 before 4.18.54; from 4.19 before 4.19.36
- redhat enterprise_linux: 7.0; 8.0; 9.0; 10.0

## References

- <https://access.redhat.com/errata/RHSA-2026:22644> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:22963> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:25049> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:25979> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28053> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28054> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28055> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28056> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:28057> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:29863> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:56786> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:56853> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:56911> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:57483> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:59831> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:60019> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62409> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:62549> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:65839> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:65851> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:65907> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:67857> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:70586> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/errata/RHSA-2026:77320> (third-party-advisory, vendor-advisory)
- <https://access.redhat.com/security/cve/CVE-2026-2340> (mitigation, third-party-advisory, vdb-entry)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2447318> (issue-tracking, third-party-advisory)
- <https://bugzilla.samba.org/show_bug.cgi?id=15997> (issue-tracking, vendor-advisory)

## Sources

- CVE List: [CVE-2026-2340](https://www.cve.org/CVERecord?id=CVE-2026-2340), CVE Terms of Use, modified 2026-11-26
- NVD: [CVE-2026-2340](https://nvd.nist.gov/vuln/detail/CVE-2026-2340), Public domain, modified 2026-11-26

---

Page: https://cve.day/CVE-2026-2340 · Whole record: https://cve.day/CVE-2026-2340.json · Rebuilt by cve.day 2026-11-26T22:32:35.809Z
