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=1792759118; b=vwNqAxBpzQW+7JiMvrDQUUyGEYqHH2J6EeOrgiHwRbt4VyWf7Ny8Cj9+H6QXHpUOco3T GGHDv5On964OteoMv/zAUDzMZku0feDhZ5+4jfZJeMKilo27Lryi2RWk491QOJFv007QK /xixmgEIOKRNcLfDheHkCwIvpsKn8sw5AoHIstV1OO6b+2K4JoB4RLfQiwflDvXEueBUD l40nfmS1HIZKwTxXNBN5Xjt5S/qeEiiX4kgPPketuL+UiGBZ8M/daiHi90l/Wqi3c1g6M gRSOonFBdPm8Q5bZxZ4eEH1SqHdiMYx2kQxWjl1/CulXH8v8MHSxLIDylRmolzSd+Lw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1792759118; 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=5dEbpdYjtE0K1QrQX2rsVNxqDXeEe40qvCwMUx84rGc=; b=Nv346dwA938f/cAhlg82rSEWRsjC0kJY6JxDBANPsbsyQDBdtR1KwkFRQDD2yTKWyMhI fRwXoo4QNPULwUvIfNof7GgQV/VGeGkxPm2EMU8ed7mCmfJTPdDmC5LP/y77hBREbsyqE dI7+vVdn0dkqaKD+hPwM9Sk7y0ewpHmXINRfBq7brwpNzprnM9j+b0cqTs5zCQ2hIGdRE ZZ+d7HnTpr2Hl0RQqNTTXIxIOF4xybVNPK2A/nYm8/JtWHcBOo2hVY22TxT2m6NI1JZmw 2arbWUZdmLpz4z8Qr0MqEkbN+CcMPa3H01+JcwG+j4z+98wAe23i6oH1MdJSZ1RU2AA== 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="ntK9PKQ/"; 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 AB4FF606A31B for ; Fri, 23 Oct 2026 12:38:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key, unprotected) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=ntK9PKQ/ Received: by smtp.kernel.org (Postfix) with ESMTPSA id 93A271F01825; Fri, 23 Oct 2026 12:38:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792759117; bh=5dEbpdYjtE0K1QrQX2rsVNxqDXeEe40qvCwMUx84rGc=; h=From:To:Cc:Subject:Date:Reply-To; b=ntK9PKQ/5DD1hEQRGoe783QuQaHe/4Mj8Vq3z9boV4BqSgaZ3HTs6f4lCj8pWJG8V 3EmRAPYfBT63uIDgPAQ0OlDh19FAYKxJKccjzKoJ4Et2v6MDsngqLIRUGucDBJBwLD KNvGfUH7eTTw39VM2LcNwvcKtN4yOtg1Ajn8+QnI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-99038: memstick: rtsx_usb_ms: complete requests after eject instead of dropping them Date: Fri, 23 Oct 2026 14:20:40 +0200 Message-ID: <2026102326-CVE-2026-99038-b2c2@gregkh> X-Mailer: git-send-email 2.56.0 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=3936; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8gOw3NWeI1uielLXTA/Jp+8+n418EVmPDe3xdQ0VWjU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFm3A86pboptOKzxupGHOTt+n+/Vdtk/HXI9fRstTn/N3 p624MTsjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI6VKGBRPztesOvvyXyh88 T+GFrueHtVcS7zEsmPxhqxrTqSV7I1Y8//1AaXqrf/rCcwA= 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: memstick: rtsx_usb_ms: complete requests after eject instead of dropping them memstick_check() can pass its host->removing check just before rtsx_usb_ms_drv_remove() sets eject/removing. Its next request is then silently dropped: rtsx_usb_ms_request() skips schedule_work() once eject is set, and drv_remove's cancel_work_sync() can also cancel a queued handle_req before it picks the request up. Nobody completes card->mrq_complete. Once memstick core waits for requests without a timeout ("memstick: core: wait for request completion before freeing card"), this hangs removal: memstick_check() never returns and memstick_remove_host() blocks in flush_workqueue(): INFO: task kworker/u10:3:65 blocked for more than 20 seconds. Workqueue: kmemstick memstick_check __wait_for_common memstick_check INFO: task kworker/1:1:33 blocked for more than 20 seconds. Workqueue: usb_hub_wq hub_event __flush_workqueue memstick_remove_host rtsx_usb_ms_drv_remove Never drop a request. rtsx_usb_ms_request() always schedules handle_req, and handle_req fails requests with -ENOMEDIUM once eject is set, without touching the device. drv_remove flushes handle_req instead of cancelling it, and cancels it only after memstick_remove_host(), when no new request can arrive, so it cannot run on a freed host. The host_mutex drain in drv_remove is removed: handle_req always leaves host->req NULL when it finishes, so the drain never had anything to do, and it would now race with handle_req. The Linux kernel CVE team has assigned CVE-2026-99038 to this issue. Affected and fixed versions =========================== Issue introduced in 3.16 with commit 99451dceeb5fdd789f0a2eeb3ee029e80d2ccc40 and fixed in 6.6.160 with commit f2c181e1d58e911804e14543b2f1cc6b23a0d4d6 Issue introduced in 3.16 with commit 99451dceeb5fdd789f0a2eeb3ee029e80d2ccc40 and fixed in 6.12.113 with commit 5b599e28aeb3684772aef64f46cc6f25f4c67128 Issue introduced in 3.16 with commit 99451dceeb5fdd789f0a2eeb3ee029e80d2ccc40 and fixed in 6.18.57 with commit d7e811c3a49cd5cff529c157df886719e09370ec Issue introduced in 3.16 with commit 99451dceeb5fdd789f0a2eeb3ee029e80d2ccc40 and fixed in 7.2.11 with commit 5616da0f92339328fa1472876df51555e15ad340 Issue introduced in 3.16 with commit 99451dceeb5fdd789f0a2eeb3ee029e80d2ccc40 and fixed in 7.3 with commit c96ca94425b076dc398d929366e378d1e22ec794 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-99038 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/memstick/host/rtsx_usb_ms.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/f2c181e1d58e911804e14543b2f1cc6b23a0d4d6 https://git.kernel.org/stable/c/5b599e28aeb3684772aef64f46cc6f25f4c67128 https://git.kernel.org/stable/c/d7e811c3a49cd5cff529c157df886719e09370ec https://git.kernel.org/stable/c/5616da0f92339328fa1472876df51555e15ad340 https://git.kernel.org/stable/c/c96ca94425b076dc398d929366e378d1e22ec794