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

7 affected componentsFixes available
debian/samba<=2:4.13.13+dfsg-1~deb11u6, <=2:4.13.13+dfsg-1~deb11u7, <=2:4.17.12+dfsg-0+deb12u3, <=2:4.22.8+dfsg-0+deb13u1, <=2:4.24.2+dfsg-1
2:4.17.12+dfsg-0+deb12u42:4.22.8+dfsg-0+deb13u22:4.24.3+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

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.8+dfsg-0+deb13u2Fixed in 2:4.24.3+dfsg-1

Event History

Mar 13, 2026
Data Sourced
via Red Hat·01:05 PM
DescriptionSeverityAffected Software
May 26, 2026
Data Sourced
via Ubuntu·04:09 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Debian·04:10 PM
DescriptionAffected 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 Launchpad·04:11 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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