{"api_version":"1","generated_at":"2026-12-03T05:54:43+00:00","cve":"CVE-2026-142882","urls":{"html":"https://cve.report/CVE-2026-142882","api":"https://cve.report/api/cve/CVE-2026-142882.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-142882","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-142882"},"summary":{"title":"net/9p/usbg: clear stale request context after abort","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p/usbg: clear stale request context after abort\n\nusb9pfs_clear_tx() serializes access to the active TX request with\nusb9pfs->lock, but leaves in_req->context pointing at the request after\np9_client_cb() drops the transport reference.  A later teardown path can\ntherefore retrieve the same request after it has been freed:\n\n  CPU 0 (p9_usbg_close)        CPU 1 (usb9pfs_disable)\n  lock(usb9pfs->lock)\n  req = in_req->context\n  p9_client_cb(client, req)\n    p9_req_put(client, req)\n  unlock(usb9pfs->lock)\n  request reaches zero refs\n    kmem_cache_free(req)\n                                lock(usb9pfs->lock)\n                                req = in_req->context\n                                read req->t_err\n\nThe lock orders the two callbacks, but cannot protect a pointer that\nremains published after its reference has been released.  KASAN reported:\n\n  BUG: KASAN: slab-use-after-free in usb9pfs_clear_tx+0x166/0x1b0\n  Read of size 4 at addr ffff88810e7420f4 by task poc/94\n  Call Trace:\n   usb9pfs_clear_tx+0x166/0x1b0\n   usb9pfs_disable+0x1d/0x30\n   reset_config+0x9d/0x200\n   __composite_disconnect+0xa7/0x140\n  Allocated by task 93:\n   kmem_cache_alloc_noprof+0x141/0x370\n   p9_tag_alloc+0x8f/0x5b0\n   p9_client_prepare_req+0xff/0x350\n   p9_client_rpc+0x1a5/0xac0\n  Freed by task 0:\n   slab_free_after_rcu_debug+0xa6/0x1e0\n   rcu_core+0x50a/0x1850\n  Last potentially related work creation:\n   kmem_cache_free+0x1db/0x3d0\n   p9_req_put+0x164/0x1f0\n   usb9pfs_clear_tx+0x120/0x1b0\n   p9_usbg_close+0x7e/0x150\n\nClear in_req->context after the callback while still holding the lock.\nThis matches the consume-and-clear pattern in usb9pfs_tx_complete(), so\nsubsequent teardown calls return without touching the released request.\nThe existing callback and error ordering remain unchanged.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-12-03 04:18:26","updated_at":"2026-12-03 04:18:26"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/c005fd8368ab48f5eec0d0984f4a60de0729f30a","name":"https://git.kernel.org/stable/c/c005fd8368ab48f5eec0d0984f4a60de0729f30a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b43db97bde49c73f05a33104ef879d87d9a2ec8c","name":"https://git.kernel.org/stable/c/b43db97bde49c73f05a33104ef879d87d9a2ec8c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/b58943dd690eb9b76c652e735789937a03f3d30c","name":"https://git.kernel.org/stable/c/b58943dd690eb9b76c652e735789937a03f3d30c","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d6bc7edbd56c062fe5aa43b0043d8f71e629de4f","name":"https://git.kernel.org/stable/c/d6bc7edbd56c062fe5aa43b0043d8f71e629de4f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-142882","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-142882","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a3be076dc174d9022a71a12554feb4c97b5c4d5c d6bc7edbd56c062fe5aa43b0043d8f71e629de4f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a3be076dc174d9022a71a12554feb4c97b5c4d5c b43db97bde49c73f05a33104ef879d87d9a2ec8c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a3be076dc174d9022a71a12554feb4c97b5c4d5c c005fd8368ab48f5eec0d0984f4a60de0729f30a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a3be076dc174d9022a71a12554feb4c97b5c4d5c b58943dd690eb9b76c652e735789937a03f3d30c git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.12","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.118 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.64 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.5 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc2 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/9p/trans_usbg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"d6bc7edbd56c062fe5aa43b0043d8f71e629de4f","status":"affected","version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","versionType":"git"},{"lessThan":"b43db97bde49c73f05a33104ef879d87d9a2ec8c","status":"affected","version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","versionType":"git"},{"lessThan":"c005fd8368ab48f5eec0d0984f4a60de0729f30a","status":"affected","version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","versionType":"git"},{"lessThan":"b58943dd690eb9b76c652e735789937a03f3d30c","status":"affected","version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/9p/trans_usbg.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.12"},{"lessThan":"6.12","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.118","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.64","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc2","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.118","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.64","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.5","versionStartIncluding":"6.12","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc2","versionStartIncluding":"6.12","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p/usbg: clear stale request context after abort\n\nusb9pfs_clear_tx() serializes access to the active TX request with\nusb9pfs->lock, but leaves in_req->context pointing at the request after\np9_client_cb() drops the transport reference.  A later teardown path can\ntherefore retrieve the same request after it has been freed:\n\n  CPU 0 (p9_usbg_close)        CPU 1 (usb9pfs_disable)\n  lock(usb9pfs->lock)\n  req = in_req->context\n  p9_client_cb(client, req)\n    p9_req_put(client, req)\n  unlock(usb9pfs->lock)\n  request reaches zero refs\n    kmem_cache_free(req)\n                                lock(usb9pfs->lock)\n                                req = in_req->context\n                                read req->t_err\n\nThe lock orders the two callbacks, but cannot protect a pointer that\nremains published after its reference has been released.  KASAN reported:\n\n  BUG: KASAN: slab-use-after-free in usb9pfs_clear_tx+0x166/0x1b0\n  Read of size 4 at addr ffff88810e7420f4 by task poc/94\n  Call Trace:\n   usb9pfs_clear_tx+0x166/0x1b0\n   usb9pfs_disable+0x1d/0x30\n   reset_config+0x9d/0x200\n   __composite_disconnect+0xa7/0x140\n  Allocated by task 93:\n   kmem_cache_alloc_noprof+0x141/0x370\n   p9_tag_alloc+0x8f/0x5b0\n   p9_client_prepare_req+0xff/0x350\n   p9_client_rpc+0x1a5/0xac0\n  Freed by task 0:\n   slab_free_after_rcu_debug+0xa6/0x1e0\n   rcu_core+0x50a/0x1850\n  Last potentially related work creation:\n   kmem_cache_free+0x1db/0x3d0\n   p9_req_put+0x164/0x1f0\n   usb9pfs_clear_tx+0x120/0x1b0\n   p9_usbg_close+0x7e/0x150\n\nClear in_req->context after the callback while still holding the lock.\nThis matches the consume-and-clear pattern in usb9pfs_tx_complete(), so\nsubsequent teardown calls return without touching the released request.\nThe existing callback and error ordering remain unchanged."}],"providerMetadata":{"dateUpdated":"2026-12-03T03:23:37.540Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/d6bc7edbd56c062fe5aa43b0043d8f71e629de4f"},{"url":"https://git.kernel.org/stable/c/b43db97bde49c73f05a33104ef879d87d9a2ec8c"},{"url":"https://git.kernel.org/stable/c/c005fd8368ab48f5eec0d0984f4a60de0729f30a"},{"url":"https://git.kernel.org/stable/c/b58943dd690eb9b76c652e735789937a03f3d30c"}],"title":"net/9p/usbg: clear stale request context after abort","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-142882","datePublished":"2026-12-03T03:23:37.540Z","dateReserved":"2026-12-03T03:10:28.335Z","dateUpdated":"2026-12-03T03:23:37.540Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-12-03 04:18:26","lastModifiedDate":"2026-12-03 04:18:26","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"142882","Ordinal":"1","Title":"net/9p/usbg: clear stale request context after abort","CVE":"CVE-2026-142882","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"142882","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p/usbg: clear stale request context after abort\n\nusb9pfs_clear_tx() serializes access to the active TX request with\nusb9pfs->lock, but leaves in_req->context pointing at the request after\np9_client_cb() drops the transport reference.  A later teardown path can\ntherefore retrieve the same request after it has been freed:\n\n  CPU 0 (p9_usbg_close)        CPU 1 (usb9pfs_disable)\n  lock(usb9pfs->lock)\n  req = in_req->context\n  p9_client_cb(client, req)\n    p9_req_put(client, req)\n  unlock(usb9pfs->lock)\n  request reaches zero refs\n    kmem_cache_free(req)\n                                lock(usb9pfs->lock)\n                                req = in_req->context\n                                read req->t_err\n\nThe lock orders the two callbacks, but cannot protect a pointer that\nremains published after its reference has been released.  KASAN reported:\n\n  BUG: KASAN: slab-use-after-free in usb9pfs_clear_tx+0x166/0x1b0\n  Read of size 4 at addr ffff88810e7420f4 by task poc/94\n  Call Trace:\n   usb9pfs_clear_tx+0x166/0x1b0\n   usb9pfs_disable+0x1d/0x30\n   reset_config+0x9d/0x200\n   __composite_disconnect+0xa7/0x140\n  Allocated by task 93:\n   kmem_cache_alloc_noprof+0x141/0x370\n   p9_tag_alloc+0x8f/0x5b0\n   p9_client_prepare_req+0xff/0x350\n   p9_client_rpc+0x1a5/0xac0\n  Freed by task 0:\n   slab_free_after_rcu_debug+0xa6/0x1e0\n   rcu_core+0x50a/0x1850\n  Last potentially related work creation:\n   kmem_cache_free+0x1db/0x3d0\n   p9_req_put+0x164/0x1f0\n   usb9pfs_clear_tx+0x120/0x1b0\n   p9_usbg_close+0x7e/0x150\n\nClear in_req->context after the callback while still holding the lock.\nThis matches the consume-and-clear pattern in usb9pfs_tx_complete(), so\nsubsequent teardown calls return without touching the released request.\nThe existing callback and error ordering remain unchanged.","Type":"Description","Title":"net/9p/usbg: clear stale request context after abort"}]}}}