PyPI
CVE-2026-112935
filelock: SoftFileLock stale-lock break removes a live lock file on a reused inode number and admits two holders
- Severity
- Medium 4.7
- Published
- 28 Oct 2026
- Last changed
- 28 Oct 2026
- Added to UpHeron
- 23 Nov 2026
- Fixed in
- 4.2.1
- Exploit chance
- 0.1% in the next 30 daysHigher than 2% of CVEs. EPSS by FIRST, 24 Nov 2026
- Attack
- Needs local access · Only under certain conditions · Needs a user account · No user action needed
- Attacker can
- Change data
- CVSS vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N- Also known as
- GHSA-fq56-3cx3-fjxp
- Sources
- OSV.dev and GitHub
Description
The stale-lock break shared by SoftFileLock, MarkerSoftFileLock and SoftFileLease (and their async variants, and a FileLock that has fallen back to a soft lock on ENOSYS, the "not implemented" error) recognises the marker it judged stale by two values. The marker is the lock file at , whose presence says a process holds the lock. The values are its inode number (the kernel's identity for a file, independent of its name) and its modification time (mtime) not being newer. The check runs after the contender has already closed the marker, so nothing keeps the inode allocated.
On a filesystem that hands a freed inode number straight to the next file (ext4, xfs, overlayfs on them) the next holder's marker can carry that number. A contender still between its read and its break then renames and unlinks the live marker.
Affected software
| Software | Affected versions |
|---|---|
filelockPyPI · osv:PyPI:filelock |
|
About filelock
- Weekly downloads (PyPI)
- 151,687,068PyPI Stats, 23 Nov 2026
Vulnerabilities in filelock
- In our list
- 12
- Published in the last 12 months
- 12
- Critical, last 12 months
- 0
- High, last 12 months
- 0
- Known exploited
- 0
- CVE-2026-112941filelock: SoftReadWriteLock follows a lock tree swapped in after its first acquire and writes lock records into directories of the user running the lockLow 3.3 28 Oct 2026
- CVE-2026-112908filelock: StrictSoftFileLock creates its claim directories without the lock mode, so another local user with a write bit on them can end a live holdMedium 5.3 28 Oct 2026
- CVE-2026-112911filelock: StrictSoftFileLock and SoftReadWriteLock adopt a protocol directory another user created first, losing mutual exclusionMedium 6.3 28 Oct 2026
- CVE-2026-112910filelock: WindowsFileLock ignores mode: a 0o600 lock file and the ReadWriteLock database inherit the directory ACLMedium 5.3 28 Oct 2026
- CVE-2026-112915filelock ReadWriteLock: a crafted lock database makes every acquire stall or hang regardless of timeoutMedium 5.5 28 Oct 2026
- CVE-2026-112939filelock: SoftFileLock removes a live holder's marker when another user forges the PID in a writable markerMedium 4.7 28 Oct 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-112935
- GitHub Advisory Database https://github.com/advisories/GHSA-fq56-3cx3-fjxp