filelock: SoftReadWriteLock admits overlapping writers after directory inode reuse
GHSA-fff3-xpx8-wvvv · CVE-2026-144394
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Impact
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.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade to 4.3.0 or later.
Filelock now checks ownership and permissions each time it opens a protocol directory. Keep the lock tree in place while lock instances are in use. If the tree must be removed, stop the processes that used it before resuming lock operations. Fix in PR #988.
Credits
OSS Scanner: ANT-2026-STIBT5PU.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-fff3-xpx8-wvvv
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144394
- WEB https://github.com/tox-dev/filelock/pull/988
- WEB https://github.com/tox-dev/filelock/commit/45ad9959a4ab8b78fc701db9b4947517f54fb232
- PACKAGE https://github.com/tox-dev/filelock
- WEB https://github.com/tox-dev/filelock/releases/tag/4.3.0
Ready to move
Start Securing
Free, no credit card | First findings in minutes