AZL-118765: CVE-2026-144382 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, a Linux user namespace can report the same overflow UID for unrelated host accounts. When the namespace shares a sticky lock directory with the host, SoftReadWriteLock can accept another account's protocol tree as trusted and admit a reader while a writer holds the lock. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.0
Event History
Frequently Asked Questions
What conditions are required for exploitation?
An attacker needs a Linux user namespace that reports the same overflow UID as an unrelated host account, and that namespace must share a sticky lock directory with the host. The issue affects SoftReadWriteLock's trust of protocol trees in that shared directory.
Who is exposed to this issue?
Systems using filelock versions before 4.3.0 on Linux are exposed when they use SoftReadWriteLock with a sticky lock directory shared between a user namespace and the host. The described lock-bypass condition does not apply without that namespace and shared-directory setup.
What is the security impact if exploitation succeeds?
A reader can be admitted while another account holds a writer lock. This breaks the intended reader-writer lock exclusion and can allow concurrent access that the application expected the lock to prevent.
How can the issue be remediated?
Upgrade filelock to version 4.3.0 or later. If an immediate upgrade is not possible, avoid sharing sticky lock directories between Linux user namespaces and the host for SoftReadWriteLock use.