AZL-118735: CVE-2026-144335 affecting package python-filelock 3.20.3-4
filelock is a platform-independent file lock for Python. Prior to 4.3.0, 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. This issue is fixed in version 4.3.0.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.3.0
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
The issue affects POSIX systems using filelock versions prior to 4.3.0. Exploitation also requires an application to use AsyncReadWriteLock, retain a failed constructor result, and subsequently fork.
What access does an attacker need?
A local account must be able to populate an optional lock path in a way that causes the initial AsyncReadWriteLock construction to fail. The affected process must then fork while retaining that failed construction.
Is practical lock overlap broadly demonstrated?
The demonstrated overlapping hold required the forked child to reuse an active SQLite lock before exec. That reuse is described as unsupported, so the provided data does not demonstrate general lock overlap under supported SQLite behavior.
What should be done if an immediate upgrade is not possible?
Avoid allowing local accounts to populate optional lock paths used by the affected process. Also avoid retaining failed AsyncReadWriteLock constructions across a fork, particularly in processes that may interact with active locks before exec.
How can I determine whether my application may be affected?
Review whether it runs on POSIX with filelock earlier than 4.3.0 and uses AsyncReadWriteLock. Investigate code paths where constructor failures are retained and followed by fork, especially where optional lock paths are writable or controllable by local accounts.