A SoftReadWriteLock heartbeat can overwrite the beginning of an unrelated file with holder-record data. This requires a shared directory where another account can rename entries and a filesystem that reuses inode numbers. The overwrite was confirmed on ext4.
The confirmed affected version is 4.2.12. Upgrade to filelock 4.3.0 or later. The heartbeat verifies the holder token on the open descriptor before writing. A mismatch marks the hold as lost. The fix does not protect a lock directory that another account can replace. PR #982
Keep the lock and its records in a directory where only trusted accounts can rename entries.
Reported by OSS Scanner (ANT-2026-CC0VMGLC).
{
"cwe_ids": [
"CWE-367"
],
"github_reviewed": true,
"github_reviewed_at": "2026-12-04T22:43:14Z",
"nvd_published_at": "2026-12-03T19:17:34Z",
"severity": "LOW"
}