Skip to main content
Menu
Advisories

SoftReadWriteLock timeout overrun on growing generation log

GHSA-J77V-QG7H-37QRPublished Updated GitHub

Description

Impact

An account with write access to a SoftReadWriteLock generation directory can keep an acquisition scanning beyond its timeout and consume CPU. The overrun was confirmed during write acquisition.

Affected versions and fix

The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. Each generation scan now has a work limit so acquisition can check its deadline between scans. A scan already in progress can still delay the timeout. PR #981

Workaround

Restrict write access to the lock's generation directory and its parent to trusted participants.

Credits

Reported by OSS Scanner (ANT-2026-9RZ0TW4O).

Affected versions

References

GitHub · tox-dev/filelock