CVE-2026-139088

Source
https://cve.org/CVERecord?id=CVE-2026-139088
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139088.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-139088
Downstream
Published
2026-11-30T13:31:28Z
Modified
2026-11-30T15:02:12Z
Summary
fs_pin: do not trust the pin after a spurious wakeup in pin_kill()
Details

In the Linux kernel, the following vulnerability has been resolved:

fs_pin: do not trust the pin after a spurious wakeup in pin_kill()

A task waiting in pin_kill() for another task's ->kill() can take p->wait.lock after the pin has been freed, and can return with its on-stack wait entry still on p->wait. With BSD process accounting this is a use-after-free of the acct structure when umount() of the mount holding the accounting file races with acct(2).

pin_kill() takes a still-queued entry as proof that pin_remove() has not run, so p is alive. But autoremove_wake_function() dequeues only when try_to_wake_up() succeeds: if the waiter was already woken spuriously, pin_remove() leaves the entry queued, acct_pin_kill() frees the acct with kfree_rcu(), and the grace period can end while the waiter sits between schedule() and rcu_read_lock().

Dequeue the entry unconditionally in a private wake function; pin_remove() is the only waker and sets p->done first.

Reproduced under QEMU with KASAN and test-only delays: a slab-use-after-free in pin_kill() before the patch, no report after.

Database specific
{
    "cna_assigner":  "Linux",
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139088.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
59eda0e07f43c950d31756213b607af673e551f0
Fixed
97d4515e6bb8aa599dd025832c853724534178ca
Fixed
2bafa437948a9a9cde2312102bde5984d1ae23f9
Fixed
74aad35b4b02ac3b2e1301fd585bb458c08c54b4
Fixed
2b4feb63905895c4ba5753ae5dee490aa718612e
Fixed
d17eceb1c87db46952ee2fec202c36331916ca65
Fixed
f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139088.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
6.1.193
Type
ECOSYSTEM
Events
Introduced
6.2.0
Fixed
6.6.163
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.119
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.18.65
Type
ECOSYSTEM
Events
Introduced
6.19.0
Fixed
7.3.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139088.json"