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

Published Mar 13, 2026
·
Updated

A flaw was found in Samba’s vfsworm 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.

Other sources

Samba: vfsworm does not block directory modification

— Red Hat

Affected Software

24 affected componentsFixes available
IBM Netezza Software<=11.3.0.3-IF2
debian/samba
2:4.17.12+dfsg-0+deb12u42:4.22.11+dfsg-0+deb13u12:4.22.10+dfsg-0+deb13u22:4.25.1+dfsg-1
redhat OpenShift Container Platform=4.0
Samba Samba>=4.1.0
redhat Enterprise Linux=7.0
redhat Enterprise Linux=8.0
redhat Enterprise Linux=9.0
redhat Enterprise Linux=10.0
debian/samba<2:4.17.12+dfsg-0+deb12u4
2:4.17.12+dfsg-0+deb12u4
debian/samba<2:4.22.8+dfsg-0+deb13u2
2:4.22.8+dfsg-0+deb13u2
debian/samba<2:4.24.3+dfsg-1
2:4.24.3+dfsg-1
Samba Samba>=4.20.0<4.22.10
Samba Samba>=4.23.0<4.23.8
Samba Samba>=4.24.0<4.24.3
redhat OpenShift Container Platform>=4.12<4.12.97
redhat OpenShift Container Platform>=4.13<4.13.71
redhat OpenShift Container Platform>=4.14<4.14.72
redhat OpenShift Container Platform>=4.15<4.15.68
redhat OpenShift Container Platform>=4.16<4.16.69
redhat OpenShift Container Platform>=4.17<4.17.57
redhat OpenShift Container Platform>=4.18<4.18.54
redhat OpenShift Container Platform>=4.19<4.19.36
alpine/samba>=4.20.0<4.22.10-r0
4.22.10-r0
alpine/samba>=4.20.0<4.23.8-r0
4.23.8-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.12+dfsg-0+deb12u4Fixed in 2:4.22.11+dfsg-0+deb13u1Fixed in 2:4.22.10+dfsg-0+deb13u2Fixed in 2:4.25.1+dfsg-1
  2. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.17.12+dfsg-0+deb12u4
  3. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.22.8+dfsg-0+deb13u2
  4. Upgrade

    Upgrade debian/samba to a version that resolves this vulnerability.

    Fixed in 2:4.24.3+dfsg-1
  5. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.22.10-r0
  6. Upgrade

    Upgrade alpine/samba to a version that resolves this vulnerability.

    Fixed in 4.23.8-r0

Event History

Mar 13, 2026
Data Sourced
via Red Hat·01:05 PM
DescriptionSeverityAffected Software
May 27, 2026
CVE Published
via MITRE·12:09 PM
Data Sourced
via MITRE·12:09 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·02:16 PM
Affected Software
Aug 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is the severity of CVE-2026-2340?

The severity of CVE-2026-2340 is rated as medium with a score of 6.5.

2

How do I fix CVE-2026-2340?

To fix CVE-2026-2340, ensure that you update Samba to a version that addresses this vulnerability.

3

What systems are affected by CVE-2026-2340?

CVE-2026-2340 affects Red Hat Enterprise Linux, Debian Samba, Red Hat OpenShift Container Platform, and Samba itself.

4

What does CVE-2026-2340 exploit?

CVE-2026-2340 exploits a flaw in the vfs_worm module of Samba, allowing authorized users to modify files after the grace period.

5

What type of impact can CVE-2026-2340 have?

CVE-2026-2340 can lead to unauthorized file modifications, compromising the integrity of stored data.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203