{"id":"CVE-2026-139088","state":"PUBLISHED","title":"fs_pin: do not trust the pin after a spurious wakeup in pin_kill()","description":"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.","publishedAt":"2026-11-30T13:31:28.052Z","updatedAt":"2026-11-30T13:31:28.052Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"97d4515e6bb8aa599dd025832c853724534178ca","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"2bafa437948a9a9cde2312102bde5984d1ae23f9","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"74aad35b4b02ac3b2e1301fd585bb458c08c54b4","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"2b4feb63905895c4ba5753ae5dee490aa718612e","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"d17eceb1c87db46952ee2fec202c36331916ca65","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/fs_pin.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.0","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/fs_pin.c"]}],"references":["https://git.kernel.org/stable/c/97d4515e6bb8aa599dd025832c853724534178ca","https://git.kernel.org/stable/c/2bafa437948a9a9cde2312102bde5984d1ae23f9","https://git.kernel.org/stable/c/74aad35b4b02ac3b2e1301fd585bb458c08c54b4","https://git.kernel.org/stable/c/2b4feb63905895c4ba5753ae5dee490aa718612e","https://git.kernel.org/stable/c/d17eceb1c87db46952ee2fec202c36331916ca65","https://git.kernel.org/stable/c/f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53"],"weaknesses":[],"ingestedAt":"2026-11-30T13:42:04.437Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139088.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139088","state":"PUBLISHED","datePublished":"2026-11-30T13:31:28.052Z","dateUpdated":"2026-11-30T13:31:28.052Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.913Z"},"containers":{"cna":{"title":"fs_pin: do not trust the pin after a spurious wakeup in pin_kill()","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"97d4515e6bb8aa599dd025832c853724534178ca","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"2bafa437948a9a9cde2312102bde5984d1ae23f9","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"74aad35b4b02ac3b2e1301fd585bb458c08c54b4","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"2b4feb63905895c4ba5753ae5dee490aa718612e","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"d17eceb1c87db46952ee2fec202c36331916ca65","versionType":"git"},{"version":"59eda0e07f43c950d31756213b607af673e551f0","status":"affected","lessThan":"f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/fs_pin.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.0","versionType":"semver"},{"version":"6.1.193","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["fs/fs_pin.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/97d4515e6bb8aa599dd025832c853724534178ca"},{"url":"https://git.kernel.org/stable/c/2bafa437948a9a9cde2312102bde5984d1ae23f9"},{"url":"https://git.kernel.org/stable/c/74aad35b4b02ac3b2e1301fd585bb458c08c54b4"},{"url":"https://git.kernel.org/stable/c/2b4feb63905895c4ba5753ae5dee490aa718612e"},{"url":"https://git.kernel.org/stable/c/d17eceb1c87db46952ee2fec202c36331916ca65"},{"url":"https://git.kernel.org/stable/c/f3a6dae67c9ca3d913cbb42fe324c9b47c8d9e53"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:28.052Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.0","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}