CVE Vulnerabilities

CVE-2026-2340

Improper Handling of Insufficient Permissions or Privileges

Published: May 27, 2026 | Modified: Jul 02, 2026
CVSS 3.x
N/A
Source:
NVD
CVSS 2.x
RedHat/V2
RedHat/V3
6.5 MODERATE
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
Ubuntu
MEDIUM
root.io logo minimus.io logo echo.ai logo

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

The product does not handle or incorrectly handles when it has insufficient privileges to access resources or functionality as specified by their permissions. This may cause it to follow unexpected code paths that may leave the product in an invalid state.

Affected Software

NameVendorStart VersionEnd Version
Openshift_container_platformRedhat4.0 (including)4.0 (including)
SambaSamba4.1.0 (including)*
Enterprise_linuxRedhat7.0 (including)7.0 (including)
Enterprise_linuxRedhat8.0 (including)8.0 (including)
Enterprise_linuxRedhat9.0 (including)9.0 (including)
Enterprise_linuxRedhat10.0 (including)10.0 (including)
Red Hat Enterprise Linux 10RedHatsamba-0:4.23.5-109.el10_2*
Red Hat Enterprise Linux 10.0 Extended Update SupportRedHatsamba-0:4.21.3-114.el10_0.1*
Red Hat Enterprise Linux 8RedHatsamba-0:4.19.4-16.el8_10*
Red Hat Enterprise Linux 8RedHatsamba-0:4.19.4-16.el8_10*
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update SupportRedHatsamba-0:4.15.5-16.el8_6.1*
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-OnRedHatsamba-0:4.15.5-16.el8_6.1*
Red Hat Enterprise Linux 8.8 Telecommunications Update ServiceRedHatsamba-0:4.17.5-7.el8_8.1*
Red Hat Enterprise Linux 8.8 Update Services for SAP SolutionsRedHatsamba-0:4.17.5-7.el8_8.1*
Red Hat Enterprise Linux 9RedHatsamba-0:4.23.5-10.el9_8*
Red Hat Enterprise Linux 9RedHatsamba-0:4.23.5-10.el9_8*
Red Hat Enterprise Linux 9.2 Update Services for SAP SolutionsRedHatsamba-0:4.17.5-105.el9_2.5*
Red Hat Enterprise Linux 9.4 Update Services for SAP SolutionsRedHatsamba-0:4.19.4-105.el9_4.4*
Red Hat Enterprise Linux 9.6 Extended Update SupportRedHatsamba-0:4.21.3-14.el9_6.1*
Red Hat OpenShift Container Platform 4.19RedHatrhcos-4.19.9.6.202606241344-0*
SambaUbuntuesm-infra/xenial*
SambaUbuntujammy*
SambaUbuntunoble*
SambaUbuntuquesting*
SambaUbunturesolute*
SambaUbuntuupstream*

Potential Mitigations

  • Compartmentalize the system to have “safe” areas where trust boundaries can be unambiguously drawn. Do not allow sensitive data to go outside of the trust boundary and always be careful when interfacing with a compartment outside of the safe area.
  • Ensure that appropriate compartmentalization is built into the system design, and the compartmentalization allows for and reinforces privilege separation functionality. Architects and designers should rely on the principle of least privilege to decide the appropriate time to use privileges and the time to drop privileges.

References