CVE-2026-2340
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.
How to fix
- samba samba4.22.10, 4.23.8, 4.24.3 or later
- redhat openshift_container_platform4.12.97, 4.13.71, 4.14.72, 4.15.68, 4.16.69, 4.17.57, 4.18.54, 4.19.36 or later
- access.redhat.com/security/cve/CVE-2026-2340
- bugzilla.samba.org/show_bug.cgi?id=15997
- access.redhat.com/errata/RHSA-2026:22644
- access.redhat.com/errata/RHSA-2026:22963
- access.redhat.com/errata/RHSA-2026:25049
- access.redhat.com/errata/RHSA-2026:25979
- access.redhat.com/errata/RHSA-2026:28053
- access.redhat.com/errata/RHSA-2026:28054
- access.redhat.com/errata/RHSA-2026:28055
- access.redhat.com/errata/RHSA-2026:28056
- access.redhat.com/errata/RHSA-2026:28057
- access.redhat.com/errata/RHSA-2026:29863
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| samba samba | 4.1.0 ≤ v, 4.20.0 ≤ v < 4.22.10, 4.23.0 ≤ v < 4.23.8, 4.24.0 ≤ v < 4.24.3 | 4.22.10, 4.23.8, 4.24.3 |
| redhat openshift_container_platform | 4.0, 4.12 ≤ v < 4.12.97, 4.13 ≤ v < 4.13.71, 4.14 ≤ v < 4.14.72, 4.15 ≤ v < 4.15.68, 4.16 ≤ v < 4.16.69, 4.17 ≤ v < 4.17.57, 4.18 ≤ v < 4.18.54, 4.19 ≤ v < 4.19.36 | 4.12.97, 4.13.71, 4.14.72, 4.15.68, 4.16.69, 4.17.57, 4.18.54, 4.19.36 |
| redhat enterprise_linux | 7.0, 8.0, 9.0, 10.0 | — |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.