CVE-2026-112908

Description

A flaw was found in filelock. When creating strict file locks on POSIX-compliant systems, coordination and claim directories are created without applying the caller's restrictive file permission settings. In environments with permissive file creation masks or default access control lists (ACLs), a local attacker can delete active lock claims or introduce invalid claim records into these directories. This can lead to unauthorized concurrent access to protected resources, potentially resulting in data corruption, or cause a denial of service (DoS) by preventing legitimate processes from acquiring locks.

Statement

This vulnerability is rated as Moderate impact because successful exploitation requires local unprivileged access alongside non-standard environmental configurations, such as an overly permissive umask or inherited default ACLs that grant write permissions to unauthorized users. On standard Red Hat Enterprise Linux deployments, the default system umask of 022 prevents arbitrary local users from deleting or modifying files within another user's lock directory. Consequently, unauthorized lock release, premature entry into critical sections, or denial-of-service conditions are restricted to shared multi-user setups with relaxed permission masks.

Mitigation

Configure processes that employ filelock to run with a restrictive umask (such as 022 or 027) and store lock files in dedicated, user-owned directories rather than shared world-writable directories such as /tmp. Additionally, verify that parent directories do not enforce default POSIX ACLs that grant write permissions to other users or groups.

To apply a restrictive umask to an application process or session:

bash
umask 027

To remove group and world write permissions on existing lock coordination trees:

bash
find /path/to/locks -maxdepth 2 -type d -name '*.filelock' -exec chmod -R go-w {} +

Enforcing restrictive umasks or removing write permissions will prevent legitimate cross-account lock sharing if an application intentionally relies on group-writable coordination files. Permission modifications should be executed while associated workloads are idle to avoid disrupting active synchronization.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score5.3N/A5.3
Attack VectorLocalN/ALocal
Attack ComplexityHighN/AHigh
Privileges RequiredLowN/ALow
User InteractionNoneN/ANone
ScopeUnchangedN/AUnchanged
ConfidentialityNoneN/ANone
Integrity ImpactHighN/AHigh
Availability ImpactLowN/ALow

Vector

Red Hat: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L

cve.org: CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:L

Understanding the Weakness (CWE)

Confidentiality,Integrity

Technical Impact: Read Application Data; Modify Application Data

Frequently Asked Questions

Want to get errata notifications? Sign up here.