Skip to main content
Menu
Advisories

Failed async lock construction disables fork resets for other locks

GHSA-CX2X-XP53-FQ3WPublished Updated GitHub

Description

Impact

On POSIX, an AsyncReadWriteLock constructor failure could prevent a forked child from resetting unrelated locks, including locks in private directories. The process had to retain the failed construction and then fork. A local account able to populate an optional lock path could cause the initial failure. Overlapping holds were demonstrated only when the child reused an active SQLite lock before exec, an unsupported operation.

Affected versions and mitigation

Confirmed affected: = 4.2.12. Upgrade to 4.3.0.

The wrapper now registers for fork cleanup after construction succeeds. Keep optional lock paths in trusted directories. On the affected release, restart the process before forking after a retained constructor failure. Children must still exec or exit before using an inherited active SQLite lock. Fix in PR #1031

Credits

Scan filelock-20261116-009; finding ANT-2026-M5X2RGHK.

Affected versions

References

GitHub · tox-dev/filelock