Shared-directory entries delay read-write locks beyond timeout
Description
Impact
On POSIX, another account with write access to the parent directory of a SQLite lock database can make ReadWriteLock initialization and acquisition run past their requested timeout, even when the lock is free. AsyncReadWriteLock constructs the same backend on the event-loop thread, so a slow initialization can also delay other tasks.
Affected versions and mitigation
Confirmed affected: = 4.2.12. Upgrade to 4.3.0.
Dead-holder cleanup now checks a 50 ms budget between directory entries and can resume on a later connection. An individual filesystem operation can exceed that budget, and unvisited links can remain. Keep the database in a directory writable only by trusted accounts. A sticky bit still permits new directory entries. Fix in PR #1096
Credits
November 18, 2026 filelock security review: ANT-2026-W2TXGKZX.