From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796046182; b=C3AzBeCJOLiGEEGvDkG92F4rKcIPyApUW+DMpu2Sg2DSbh4IItDyuezzSB9oRVNOvoO2 4moC2cKGC48is4+c4FwiY6r03HNa8zpxysGQ46ZpCYQ4cba9NCVZztTUYWjB68UP6qnd1 HB7onOvhAX7f3j3qGbrpO2Pdz53VQF+s0ZAx8GElKZsISJa08wk+dL29kI4jKnevtBYsA urCtZIuQhTtJYOrKPdBjUyikx6BsLh3YQ3ZfiXE+aW5nGqI6gghsAR8G0PwiOmIdQG+oq h5OJ+98QJ0JMwkm5++HxRMpHxLreXaTyefni35AntVXwz34LcwkhojMFTb1+mR+h+3Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796046182; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=v6Gi35dK4XNzqlfAp7PRuzAN1xafUi8un2OpHFAyu3c=; b=Sg2aQxdNZwjJPJr6lLY8czydcJm5LTkq6tIxp4ocTTsQ2Xul4WACKcywbG/gmWbnGAIK 8HMhD/V4tAdIJOflT284NPA6Uy3xKrXv4DH6JJHJdZDr0v/4R0xBxO8x87KgOvTLyfbtv S4xOijlAyYZOPIXwCPOjOJz8i6FJDAQRr3X49rNyaBdTZMw7bvANirWI6RNCzN9z3Zjyv op58x/d7xmwx3BaQxf1buQIgJLR5r+JLl0ogcR5RIMXfkFV2EgHNdakiMF1ipL5HK4cJf Jn/I+9ZplH5rdMzr05nu07mP7OUxddE/aMdB63Y6YhLz/6Ko/TSrvwCjp1/MJn8K+vQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=excnckPv; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BC65E606A31C for ; Mon, 30 Nov 2026 13:43:02 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=excnckPv Received: by smtp.kernel.org (Postfix) with ESMTPSA id BD67E1F00898; Mon, 30 Nov 2026 13:43:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796046182; bh=v6Gi35dK4XNzqlfAp7PRuzAN1xafUi8un2OpHFAyu3c=; h=From:To:Cc:Subject:Date:Reply-To; b=excnckPv+vlWBq1ccH0sT2OMID7r5EErHVwM+TsF2Gu9UQVDMVK8qaSm1l+S396ih lzQTeEGEbPD1TuqbKkK2ALyZB3ykNHoingGKV8p+lh+yLO6/O1UXwKTbj912s+crZu v5StWet0NPyCpGneM6jKdZFwTGMKxyNm+szk6QmI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-138818: misc: tifm: don't clear dev->driver in tifm_device_remove() Date: Mon, 30 Nov 2026 14:25:23 +0100 Message-ID: <2026113019-CVE-2026-138818-252f@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3080; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mmts75qzeDRxGO7nA7+JrZO8H5SYl6jgxIcr1PqWzZ4=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8lfa5/ReX3zI6+Oz/Q5nHe7dN3bD+8q/yHVkWWR1pZ jH3RL/WdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBE4tMYFmzjKFOV2rJO5u0W uQfyWzZabHh1y5ZhwcE4c7FaLd/p1/sUxIIiopu3nnjiCQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: misc: tifm: don't clear dev->driver in tifm_device_remove() tifm_device_remove() sets sock->dev.driver to NULL after calling the driver's remove() callback. Since commit a995fe1a3aa7 ("rust: driver: drop device private data post unbind"), device_unbind_cleanup() dereferences dev->driver after the bus remove() callback has returned, so removing a card from a TI FlashMedia reader oopses: BUG: kernel NULL pointer dereference, address: 0000000000000090 Workqueue: tifm tifm_7xx1_switch_media [tifm_7xx1] RIP: 0010:device_unbind_cleanup+0x16/0xb0 Call Trace: device_release_driver_internal+0x220/0x260 device_release_driver+0x12/0x20 bus_remove_device+0xf9/0x1c0 device_del+0x161/0x3b0 device_unregister+0x17/0x70 tifm_7xx1_switch_media.cold+0x6b/0xbd [tifm_7xx1] process_one_work+0x1ac/0x3d0 worker_thread+0x1b8/0x360 kthread+0xf7/0x130 ret_from_fork+0x195/0x2a0 ret_from_fork_asm+0x1a/0x30 The driver core clears dev->driver itself in device_unbind_cleanup(), so there is no need for the bus code to do it. Remove the assignment. The problem was found and the fix written with the help of an AI coding assistant. Tested on a Dell Precision M6500 (TI PCIxx12 FlashMedia, 104c:803b) running a 7.0 kernel: removing an SD card oopsed every time without the fix; with it, insert, read and remove work. The Linux kernel CVE team has assigned CVE-2026-138818 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f and fixed in 7.3.4 with commit f1e465275afb9a09bb0f552b3cdaae051c7ffcaa Issue introduced in 6.19 with commit a995fe1a3aa78b7d06cc1cc7b6b8436c5e93b07f and fixed in 7.4-rc1 with commit 2b23952d70d43321a90dd8a06bcaab04a1a73118 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-138818 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/misc/tifm_core.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/f1e465275afb9a09bb0f552b3cdaae051c7ffcaa https://git.kernel.org/stable/c/2b23952d70d43321a90dd8a06bcaab04a1a73118