filelock: Soft locks admit overlapping holders with a foreign procfs mount
GHSA-h4mc-mqxc-5vrm · CVE-2026-144384
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, a soft lock can mistake a live holder for a stale one when the locking processes see a /proc mount from a different PID namespace. If the same numeric PID identifies an unrelated process in that namespace, changes to that process can allow two holders into the protected section at the same time.
Affected version and mitigation
The confirmed affected release is filelock 4.2.12. Upgrade all processes sharing the lock to 4.3.0 or later. Configure each process’s /proc mount to match its PID namespace.
Filelock now uses PID-based liveness checks when the mount cannot supply a reliable process start token. In that configuration, PID reuse can leave a dead holder’s marker in place until its configured lifetime expires or an operator verifies that the lock is abandoned and clears it. Fix in PR #983.
Credits
OSS Scanner: ANT-2026-3MQM64BY.
References
- WEB https://github.com/tox-dev/filelock/security/advisories/GHSA-h4mc-mqxc-5vrm
- ADVISORY https://nvd.nist.gov/vuln/detail/CVE-2026-144384
- WEB https://github.com/tox-dev/filelock/pull/983
- WEB https://github.com/tox-dev/filelock/commit/245f523d3414792c5e6640f0483c2d8cff9704ed
- 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