CVE-2026-112907

NameCVE-2026-112907
Descriptionfilelock is a platform-independent file lock for Python. From 3.22.0 until 4.2.1, soft lock classes on Windows read an existing marker with _read_lock_file and remove a stale marker through break_lock_file using pathname operations that wait for an oplock break. Another local account with read access to an unheld marker can keep a Level 1 or batch oplock unanswered, causing SoftFileLock.acquire and related async or fallback locks to wait beyond timeout, blocking=False, and cancel_check. A stale marker under the oplock cannot be broken, but mutual exclusion remains intact and no file other than the marker is accessed. This issue is fixed in version 4.2.1.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
python-filelock (PTS)bookworm3.9.0-1+deb12u1fixed
trixie3.18.0-1+deb13u1fixed
forky4.1.1-1fixed
sid4.2.8-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
python-filelocksource(unstable)(not affected)

Notes

- python-filelock <not-affected> (Only affects filelock module on Windows)
https://github.com/tox-dev/filelock/security/advisories/GHSA-567q-5qvw-pf92
https://github.com/tox-dev/filelock/pull/835
Fixed by: https://github.com/tox-dev/filelock/commit/e1e825b1992f69fb6b346dc395d5ae4893536c0a (4.2.1)

Search for package or bug name: Reporting problems