CVE-2026-144403: filelock: Mixed strict and soft locks can overlap after foreign sentinel removal
filelock is a platform-independent file lock for Python. Prior to 4.3.0, on POSIX, a StrictSoftFileLock holder and a soft-lock client using the same path could both enter their critical sections if another account owned the sentinel in a shared sticky directory. This compromises mutual exclusion during a mixed-client migration. The report established overlapping holds. 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 deployments are exposed to overlapping critical sections?
Affected deployments are POSIX systems using filelock before 4.3.0 where StrictSoftFileLock and soft-lock clients use the same lock path. The reported condition also requires a shared sticky directory in which another account owns the sentinel.
What must an attacker or other local account be able to do?
A separate account must be able to own the lock sentinel in the shared sticky directory and remove it. Exploitation is local and requires low privileges, as reflected by the provided vector.
Are applications using only one lock mode affected?
The documented overlap occurs during a mixed-client migration involving both StrictSoftFileLock and soft-lock clients on the same path. The provided information does not establish impact for deployments using only one of those modes.
What remediation is available?
Upgrade filelock to version 4.3.0, which fixes the issue. Until upgrading, avoid mixed StrictSoftFileLock and soft-lock use on the same path in shared sticky directories where another account can own or remove the sentinel.