Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D83CF3BFE2F for ; Tue, 6 Oct 2026 08:47:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276477; cv=none; b=KOEpAGudBiGarbP2nsQY6y6CcbEQF4AmHxyx2CENd6ZKJCt0ivB9DyYRvuHC2Vq0EmTb/rRqsxWRn5ZqxOTs6lHjj7Ihog4EYvX1VKQb5K+vr25zdEMejvIRTwrp8a9XRDrmJsv6iFDqNwRz8V35GNdczCme8aGsWv/lLaeuzmc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276477; c=relaxed/simple; bh=uLAWGM7cbU08Od/WoewzLqlLNAEkov02ozkZ7Wuwvr4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Z1P/JCjCqiRgFPjUO3U+ZMxyaLT0/ZWCy1UMUssbjBtXq/SUel1js5+nFMy9oLc7YUGlL7Z+d4b9a/w2sAJ7cXDFhj8FAB6yF2wxUAwK3kLRpfPPnJxmmVC9CDO1J5DsS7yNf8+FKDg4LctH0XXSKkZnzNk8rCRjJSle6SB/3wU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dKW2T6A+; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="dKW2T6A+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D02E1F000FF; Tue, 6 Oct 2026 08:47:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276475; bh=NhyHGk++7X0aj+w6ZuHCF9QY+4LntA2hDVFUD3TUMCs=; h=From:To:Cc:Subject:Date:Reply-To; b=dKW2T6A+CqZ/FyvlU54xxKIBqrmqSrv3UkC4rM/SHQhY2Cw+WqjSnOMCOKwRdnkT4 Ciuz41loayYrPzenoO0vaIfoVD56RN1IYrfKiwTvG+DKWnopNVxFxyzcmPsbRCZ05S Oonte0YqIq3w4x8bHRnjGIQLZT+uS+7jsbVryzh0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98212: mmc: hsq: Fix use-after-free in retry work Date: Tue, 6 Oct 2026 10:45:13 +0200 Message-ID: <2026100639-CVE-2026-98212-e0cd@gregkh> X-Mailer: git-send-email 2.56.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3104; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Fzh9fCMOzfSsz+NDqzp+RRHJuM5/mDAJ9nl5dJWuoJs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtnxnPT3hrsKmPGvbCTP5tZ81hVXLr9Bt8N7TVRTqw MUc6tDTEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPhNmKYH1HTvMRSTUx5kXC9 6cbE7Xb6U5pnMcyPC1rrcMnZraIx+D5H/8pzP2MM/vwDAA== 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: mmc: hsq: Fix use-after-free in retry work mmc_hsq_pump_requests() queues retry_work when request_atomic() returns -EBUSY; today sdhci-sprd is the only consumer that implements request_atomic(). The work is embedded in a devm-allocated mmc_hsq, but is never cancelled during driver removal. Work still pending at unbind can therefore run after the devm allocation has been released and dereference hsq->mmc and hsq->mrq. Use devm_work_autocancel() to cancel and drain retry_work before the devm allocation is released. By the time devres cleanup begins, mmc_remove_host() has already stopped the host, so no new requests can arm the work. This issue was found by an in-house static analysis tool. The Linux kernel CVE team has assigned CVE-2026-98212 to this issue. Affected and fixed versions =========================== Issue introduced in 5.8 with commit 6db96e5810e0a6a345b7d78549de7676ae5b2662 and fixed in 6.6.158 with commit c50d6515bffb148c2c12be6d587ec201dfab4c34 Issue introduced in 5.8 with commit 6db96e5810e0a6a345b7d78549de7676ae5b2662 and fixed in 6.12.112 with commit df2eb59fd9eb33663dc1053f5a4ed851e0aa1f67 Issue introduced in 5.8 with commit 6db96e5810e0a6a345b7d78549de7676ae5b2662 and fixed in 6.18.54 with commit 8439bf262ce3267bcfee29d3c61605f1731a2271 Issue introduced in 5.8 with commit 6db96e5810e0a6a345b7d78549de7676ae5b2662 and fixed in 7.2.8 with commit 45341b341642c377192c95e4d48e0a859cf85f42 Issue introduced in 5.8 with commit 6db96e5810e0a6a345b7d78549de7676ae5b2662 and fixed in 7.3-rc4 with commit 5d132990475f02cfa1debe03d50b479432864ebd 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-98212 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/mmc/host/mmc_hsq.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/c50d6515bffb148c2c12be6d587ec201dfab4c34 https://git.kernel.org/stable/c/df2eb59fd9eb33663dc1053f5a4ed851e0aa1f67 https://git.kernel.org/stable/c/8439bf262ce3267bcfee29d3c61605f1731a2271 https://git.kernel.org/stable/c/45341b341642c377192c95e4d48e0a859cf85f42 https://git.kernel.org/stable/c/5d132990475f02cfa1debe03d50b479432864ebd