CVE-2026-144394: filelock: SoftReadWriteLock admits overlapping writers after directory inode reuse
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 to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.0
Event History
Frequently Asked Questions
Which deployments are realistically exposed?
The issue applies to filelock versions before 4.3.0 on Linux when using SoftReadWriteLock. Exploitation also depends on a shared location where another account can replace directories and where filesystem inode reuse occurs; the overlap was confirmed on ext4.
What must an attacker or competing local user be able to do?
They need an account capable of replacing directories in the shared lock location while a lock instance remains alive. The filesystem must then reuse an inode number that was previously trusted by the lock protocol.
How can this be remediated?
Upgrade filelock to version 4.3.0 or later. If upgrading cannot occur immediately, restrict directory replacement privileges in the shared lock location to prevent another account from manipulating the lock protocol directory.
Is there a notification when the lock overlap occurs?
No compromise notification was observed in the confirmed ext4 scenario. Do not rely on the lock implementation to alert you if overlapping writers have already occurred.