filelock: Linux overflow UID can admit attacker-owned lock trees
GHSA-7mx6-8qvh-pvc4 · CVE-2026-144382
Published · Modified
AI SAST
Find this class of vulnerability in your own code
Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.
Description
Impact
A Linux user namespace can report the same overflow UID for unrelated host accounts. When the namespace shares a sticky lock directory with the host, SoftReadWriteLock can accept another account's protocol tree as trusted and admit a reader while a writer holds the lock.
Affected versions and fix
The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. The ownership check rejects an ambiguous overflow UID instead of treating matching numeric IDs as proof of ownership. PR #977
Workaround
Use a lock directory with a verified, mapped owner where untrusted accounts cannot supply or replace the protocol tree.
Credits
Reported by OSS Scanner (ANT-2026-50TKW02X).
References
Ready to move
Start Securing
Free, no credit card | First findings in minutes