CVE-2026-144382: filelock: Linux overflow UID can admit attacker-owned lock trees
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
Which deployments are exposed to this issue?
Deployments using filelock before 4.3.0 on Linux are exposed when a user namespace shares a sticky lock directory with the host. The affected locking mode is SoftReadWriteLock.
What does an attacker need to exploit it?
An attacker needs a Linux user namespace that reports the same overflow UID as an unrelated host account and access to the shared sticky lock directory. They can then cause an attacker-owned protocol tree to be accepted as trusted.
What is the impact of a successful exploit?
A reader can be admitted while a writer holds the lock, violating the intended read/write lock exclusion. The provided severity vector indicates low confidentiality impact and low integrity and availability impact.
How can this be remediated?
Upgrade filelock to version 4.3.0, which fixes the issue.