{"api_version":"1","generated_at":"2026-11-30T16:27:46+00:00","cve":"CVE-2026-138818","urls":{"html":"https://cve.report/CVE-2026-138818","api":"https://cve.report/api/cve/CVE-2026-138818.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-138818","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-138818"},"summary":{"title":"misc: tifm: don't clear dev->driver in tifm_device_remove()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: tifm: don't clear dev->driver in tifm_device_remove()\n\ntifm_device_remove() sets sock->dev.driver to NULL after calling the\ndriver's remove() callback. Since commit a995fe1a3aa7 (\"rust: driver:\ndrop device private data post unbind\"), device_unbind_cleanup()\ndereferences dev->driver after the bus remove() callback has returned,\nso removing a card from a TI FlashMedia reader oopses:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000090\n  Workqueue: tifm tifm_7xx1_switch_media [tifm_7xx1]\n  RIP: 0010:device_unbind_cleanup+0x16/0xb0\n  Call Trace:\n   device_release_driver_internal+0x220/0x260\n   device_release_driver+0x12/0x20\n   bus_remove_device+0xf9/0x1c0\n   device_del+0x161/0x3b0\n   device_unregister+0x17/0x70\n   tifm_7xx1_switch_media.cold+0x6b/0xbd [tifm_7xx1]\n   process_one_work+0x1ac/0x3d0\n   worker_thread+0x1b8/0x360\n   kthread+0xf7/0x130\n   ret_from_fork+0x195/0x2a0\n   ret_from_fork_asm+0x1a/0x30\n\nThe driver core clears dev->driver itself in device_unbind_cleanup(), so\nthere is no need for the bus code to do it. Remove the assignment.\n\nThe problem was found and the fix written with the help of an AI coding\nassistant. Tested on a Dell Precision M6500 (TI PCIxx12 FlashMedia,\n104c:803b) running a 7.0 kernel: removing an SD card oopsed every time\nwithout the fix; with it, insert, read and remove work.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:17:35","updated_at":"2026-11-30 14:17:35"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/2b23952d70d43321a90dd8a06bcaab04a1a73118","name":"https://git.kernel.org/stable/c/2b23952d70d43321a90dd8a06bcaab04a1a73118","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f1e465275afb9a09bb0f552b3cdaae051c7ffcaa","name":"https://git.kernel.org/stable/c/f1e465275afb9a09bb0f552b3cdaae051c7ffcaa","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138818","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138818","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f f1e465275afb9a09bb0f552b3cdaae051c7ffcaa git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f 2b23952d70d43321a90dd8a06bcaab04a1a73118 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.4 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * 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":["drivers/misc/tifm_core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"f1e465275afb9a09bb0f552b3cdaae051c7ffcaa","status":"affected","version":"a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f","versionType":"git"},{"lessThan":"2b23952d70d43321a90dd8a06bcaab04a1a73118","status":"affected","version":"a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/misc/tifm_core.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.19"},{"lessThan":"6.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.4","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.4","versionStartIncluding":"6.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: tifm: don't clear dev->driver in tifm_device_remove()\n\ntifm_device_remove() sets sock->dev.driver to NULL after calling the\ndriver's remove() callback. Since commit a995fe1a3aa7 (\"rust: driver:\ndrop device private data post unbind\"), device_unbind_cleanup()\ndereferences dev->driver after the bus remove() callback has returned,\nso removing a card from a TI FlashMedia reader oopses:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000090\n  Workqueue: tifm tifm_7xx1_switch_media [tifm_7xx1]\n  RIP: 0010:device_unbind_cleanup+0x16/0xb0\n  Call Trace:\n   device_release_driver_internal+0x220/0x260\n   device_release_driver+0x12/0x20\n   bus_remove_device+0xf9/0x1c0\n   device_del+0x161/0x3b0\n   device_unregister+0x17/0x70\n   tifm_7xx1_switch_media.cold+0x6b/0xbd [tifm_7xx1]\n   process_one_work+0x1ac/0x3d0\n   worker_thread+0x1b8/0x360\n   kthread+0xf7/0x130\n   ret_from_fork+0x195/0x2a0\n   ret_from_fork_asm+0x1a/0x30\n\nThe driver core clears dev->driver itself in device_unbind_cleanup(), so\nthere is no need for the bus code to do it. Remove the assignment.\n\nThe problem was found and the fix written with the help of an AI coding\nassistant. Tested on a Dell Precision M6500 (TI PCIxx12 FlashMedia,\n104c:803b) running a 7.0 kernel: removing an SD card oopsed every time\nwithout the fix; with it, insert, read and remove work."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:25:16.137Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/f1e465275afb9a09bb0f552b3cdaae051c7ffcaa"},{"url":"https://git.kernel.org/stable/c/2b23952d70d43321a90dd8a06bcaab04a1a73118"}],"title":"misc: tifm: don't clear dev->driver in tifm_device_remove()","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-138818","datePublished":"2026-11-30T13:25:16.137Z","dateReserved":"2026-11-30T13:22:15.896Z","dateUpdated":"2026-11-30T13:25:16.137Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:17:35","lastModifiedDate":"2026-11-30 14:17:35","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"138818","Ordinal":"1","Title":"misc: tifm: don't clear dev->driver in tifm_device_remove()","CVE":"CVE-2026-138818","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"138818","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmisc: tifm: don't clear dev->driver in tifm_device_remove()\n\ntifm_device_remove() sets sock->dev.driver to NULL after calling the\ndriver's remove() callback. Since commit a995fe1a3aa7 (\"rust: driver:\ndrop device private data post unbind\"), device_unbind_cleanup()\ndereferences dev->driver after the bus remove() callback has returned,\nso removing a card from a TI FlashMedia reader oopses:\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000090\n  Workqueue: tifm tifm_7xx1_switch_media [tifm_7xx1]\n  RIP: 0010:device_unbind_cleanup+0x16/0xb0\n  Call Trace:\n   device_release_driver_internal+0x220/0x260\n   device_release_driver+0x12/0x20\n   bus_remove_device+0xf9/0x1c0\n   device_del+0x161/0x3b0\n   device_unregister+0x17/0x70\n   tifm_7xx1_switch_media.cold+0x6b/0xbd [tifm_7xx1]\n   process_one_work+0x1ac/0x3d0\n   worker_thread+0x1b8/0x360\n   kthread+0xf7/0x130\n   ret_from_fork+0x195/0x2a0\n   ret_from_fork_asm+0x1a/0x30\n\nThe driver core clears dev->driver itself in device_unbind_cleanup(), so\nthere is no need for the bus code to do it. Remove the assignment.\n\nThe problem was found and the fix written with the help of an AI coding\nassistant. Tested on a Dell Precision M6500 (TI PCIxx12 FlashMedia,\n104c:803b) running a 7.0 kernel: removing an SD card oopsed every time\nwithout the fix; with it, insert, read and remove work.","Type":"Description","Title":"misc: tifm: don't clear dev->driver in tifm_device_remove()"}]}}}