{"id":"CVE-2026-139088","aliases":["CVE-2026-139088"],"related":[],"kind":"vulnerability","state":"published","title":"fs_pin: do not trust the pin after a spurious wakeup in pin_kill()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs_pin: do not trust the pin after a spurious wakeup in pin_kill()\n\nA task waiting in pin_kill() for another task's ->kill() can take\np->wait.lock after the pin has been freed, and can return with its\non-stack wait entry still on p->wait. With BSD process accounting this\nis a use-after-free of the acct structure when umount() of the mount\nholding the accounting file races with acct(2).\n\npin_kill() takes a still-queued entry as proof that pin_remove() has not\nrun, so p is alive. But autoremove_wake_function() dequeues only when\ntry_to_wake_up() succeeds: if the waiter was already woken spuriously,\npin_remove() leaves the entry queued, acct_pin_kill() frees the acct\nwith kfree_rcu(), and the grace period can end while the waiter sits\nbetween schedule() and rcu_read_lock().\n\nDequeue the entry unconditionally in a private wake function;\npin_remove() is the only waker and sets p->done first.\n\nReproduced under QEMU with KASAN and test-only delays: a\nslab-use-after-free in pin_kill() before the patch, no report after.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nfs_pin: do not trust the pin after a spurious wakeup in pin_kill()\n\nA task waiting in pin_kill() for another task's ->kill() can take\np->wait.lock after the pin has been freed, and can return with its\non-stack wait entry still on p->wait. With BSD process accounting this\nis a use-after-free of the acct structure when umount() of the mount\nholding the accounting file races with acct(2).\n\npin_kill() takes a still-queued entry as proof that pin_remove() has not\nrun, so p is alive. But autoremove_wake_function() dequeues only when\ntry_to_wake_up() succeeds: if the waiter was already woken spuriously,\npin_remove() leaves the entry queued, acct_pin_kill() frees the acct\nwith kfree_rcu(), and the grace period can end while the waiter sits\nbetween schedule() and rcu_read_lock().\n\nDequeue the entry unconditionally in a private wake function;\npin_remove() is the only waker and sets p->done first.\n\nReproduced under QEMU with KASAN and test-only delays: a\nslab-use-after-free in pin_kill() before the patch, no report after.","source":"cvelist"}],"published":"2026-11-30T13:31:28.052Z","modified":"2026-11-30T14:18:16.690Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"59eda0e07f43c950d31756213b607af673e551f0","fixed":"97d4515e6bb8aa599dd025832c853724534178ca","status":"affected"},{"type":"git","introduced":"59eda0e07f43c950d31756213b607af673e551f0","fixed":"2bafa437948a9a9cde2312102bde5984d1ae23f9","status":"affected"},{"type":"git","introduced":"59eda0e07f43c950d31756213b607af673e551f0","fixed":"74aad35b4b02ac3b2e1301fd585bb458c08c54b4","status":"affected"},{"type":"git","introduced":"59eda0e07f43c950d31756213b607af673e551f0","fixed":"2b4feb63905895c4ba5753ae5dee490aa718612e","status":"affected"},{"type":"git","introduced":"59eda0e07f43c950d31756213b607af673e551f0","fixed":"d17eceb1c87db46952ee2fec202c36331916ca65","status":"affected"},{"type":"git","introduced":"59eda0e07f43c950d31756213b607af673e551f0","fixed":"f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.0","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/97d4515e6bb8aa599dd025832c853724534178ca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2bafa437948a9a9cde2312102bde5984d1ae23f9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/74aad35b4b02ac3b2e1301fd585bb458c08c54b4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2b4feb63905895c4ba5753ae5dee490aa718612e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d17eceb1c87db46952ee2fec202c36331916ca65","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139088","url":"https://www.cve.org/CVERecord?id=CVE-2026-139088","licence":"CVE Terms of Use","modified":"2026-11-30T13:31:28.052Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139088","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139088","licence":"Public domain","modified":"2026-11-30T14:18:16.690Z"}],"updatedAt":"2026-11-30T14:32:42.488Z","epss":{"score":0.00363,"percentile":0.32182,"date":"2026-12-01T12:00:22.000Z"}}