AZL-118798: CVE-2026-144394 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on Linux, two processes can both hold a SoftReadWriteLock write lock after its protocol directory is removed while a lock instance remains alive. This requires another account able to replace directories in the shared location and filesystem reuse of a previously trusted inode number. The overlap was confirmed on ext4, without a compromise notification. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
python-filelockto a version that resolves this vulnerability.Fixed in 4.3.0
Event History
Frequently Asked Questions
Who is realistically exposed to this issue?
Linux deployments using SoftReadWriteLock in a shared location are exposed when another account can replace directories in that location. The confirmed lock overlap occurred on ext4.
What does an attacker need to exploit the lock overlap?
The attacker needs the ability to replace directories in the shared lock location while a lock instance remains alive. Exploitation also depends on filesystem reuse of a previously trusted inode number.
Are applications using the default locking behavior necessarily affected?
The issue specifically concerns SoftReadWriteLock on Linux. The available information does not establish that other lock types or configurations are affected.
What should be done if an immediate upgrade is not possible?
Restrict untrusted accounts from replacing directories in the shared location used for locks. This reduces the prerequisite needed to trigger the condition.
How can I remediate the issue?
Upgrade python-filelock to version 4.3.0 or later, which fixes the issue.