{"id":"CVE-2026-143395","aliases":[],"cve":{"records":[{"id":"CVE-2026-143395","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-12-03T03:10:28.373Z","published":"2026-12-03T09:22:36.772Z","modified":"2026-12-03T09:22:36.772Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-12-03T09:22:36.772Z"}],"references":[{"url":"https://git.kernel.org/stable/c/e9c79d83affb05663925d81c83e334bf8d230191","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/6c7901b8667af551f5efe90d67a6f3f6add0c27b","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/840ae53432e569266879dddcaf06993ec2276ec8","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/5c69297356bf6d04d8222f52717c6c4aa73e5d2c","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.120"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.66"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.3.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.4-rc2"}]}]}]}],"prioritization":[]},"title":"net/9p/usbg: Fix use-after-free on usb9pfs_clear_tx","titleSource":"Linux","descriptionSource":"Linux","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/9p/usbg: Fix use-after-free on usb9pfs_clear_tx\n\nWhen p9_usbg_close() is called, it invokes usb9pfs_clear_tx() but does\nnot clear usb9pfs->client nor usb9pfs->in_req->context afterwards.\nThe 9p client core (p9_client_destroy) calls close() and then\nkfree(clnt), so after p9_usbg_close returns the client struct is freed.\n\nIf the USB gadget is later disabled (e.g., host disconnect),\nusb9pfs_disable calls usb9pfs_clear_tx again, which passes the dangling\nusb9pfs->client pointer to p9_client_cb. Inside p9_client_cb,\np9_req_put(c, req) dereferences the freed client to access its reqs IDR,\ncausing a use-after-free.\n\nAdditionally, usb9pfs_clear_tx does not clear usb9pfs->in_req->context\nafter calling p9_client_cb, so a second invocation finds a stale request\npointer and attempts double-completion, further compounding the UAF risk.\n\nFix by:\n1. Clearing usb9pfs->in_req->context to NULL in usb9pfs_clear_tx()\n   before checking usb9pfs->client, so that even if the client is gone\n   the stale request pointer is consumed and cannot cause\n   double-completion.\n2. Adding a NULL check on usb9pfs->client in usb9pfs_clear_tx() to skip\n   p9_client_cb() when the client has already been destroyed.\n3. Setting usb9pfs->client = NULL in p9_usbg_close() after calling\n   usb9pfs_clear_tx(), to prevent any subsequent call from dereferencing\n   the freed client pointer.","score":null,"severity":"unknown","published":"2026-12-03T09:22:36.772Z","modified":"2026-12-03T09:22:36.772Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","status":"affected","lessThan":"e9c79d83affb05663925d81c83e334bf8d230191","versionType":"git"},{"version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","status":"affected","lessThan":"6c7901b8667af551f5efe90d67a6f3f6add0c27b","versionType":"git"},{"version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","status":"affected","lessThan":"840ae53432e569266879dddcaf06993ec2276ec8","versionType":"git"},{"version":"a3be076dc174d9022a71a12554feb4c97b5c4d5c","status":"affected","lessThan":"5c69297356bf6d04d8222f52717c6c4aa73e5d2c","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-143395"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.120","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.66","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.7","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-143395"}],"remediation":[],"references":["https://git.kernel.org/stable/c/e9c79d83affb05663925d81c83e334bf8d230191","https://git.kernel.org/stable/c/6c7901b8667af551f5efe90d67a6f3f6add0c27b","https://git.kernel.org/stable/c/840ae53432e569266879dddcaf06993ec2276ec8","https://git.kernel.org/stable/c/5c69297356bf6d04d8222f52717c6c4aa73e5d2c"],"sources":[{"name":"CVE","id":"CVE-2026-143395","modified":"2026-12-03T09:22:36.772Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-143395"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-12-03T09:42:36.467Z","kev":{"status":"not-listed","checkedAt":"2026-12-05T01:20:32.462Z"},"coverage":[{"source":"NVD","status":"no-result","checkedAt":"2026-12-03T09:50:32.421Z","attemptedAt":"2026-12-03T09:50:32.421Z"},{"source":"GHSA","status":"no-result","checkedAt":"2026-12-03T09:50:32.632Z","attemptedAt":"2026-12-03T09:50:32.632Z"},{"source":"EUVD","status":"no-result","checkedAt":"2026-12-03T09:50:32.303Z","attemptedAt":"2026-12-03T09:50:32.303Z"},{"source":"EPSS","status":"no-result","checkedAt":"2026-12-03T09:50:32.821Z","attemptedAt":"2026-12-03T09:50:32.821Z"}],"evidence":[],"aiSummary":null}