Skip to main content
Menu
Advisories

Soft locks admit overlapping holders with a foreign procfs mount

GHSA-H4MC-MQXC-5VRMPublished Updated GitHub

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.

Affected versions

References

GitHub · tox-dev/filelock