CVE-2026-2340 Samba: vfs_worm does not block directory modification
An authenticated user can bypass WORM protections to overwrite protected files via rename operations in Samba's vfs_worm module.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2026-2340?
CVE-2026-2340 is a medium-severity vulnerability in Redhat Enterprise Linux, published on 27 May 2026. Any signed-in user can exploit it over the network, with no action from the victim.
Official 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.
Weakness: CWE-280
Which versions are affected by CVE-2026-2340?
It affects 3 products.
Products include Redhat Enterprise Linux, Redhat Openshift Container Platform, Samba Samba.
How do I fix CVE-2026-2340?
Apply the vendor's patch.
Is CVE-2026-2340 being exploited?
There is no known exploitation of CVE-2026-2340 in the wild and no public exploit code.
Other vulnerabilities in Redhat Enterprise Linux
- CVE-2018-14667 Red Hat JBoss RichFaces Framework Expression Language Injection
- CVE-2021-20325 Missing fixes for CVE-2021-40438 and CVE-2021-26691 in the versions of httpd, as shipped in Red Hat Enterprise Linux 8.5.0, causes a securit
- CVE-2018-25011 Memory corruption in libwebp
- CVE-2018-25014 Other in libwebp
- CVE-2014-3585 Supply chain in redhat-upgrade-tool
Sources
Also known as ALPINE-CVE-2026-2340, AZL-89145, CLSA-2026-1780403538, DEBIAN-CVE-2026-2340, ECHO-8127-8787-df33, GHSA-m6w2-p258-gxqp and 2 more.