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 24801377AB2 for ; Thu, 24 Sep 2026 16:23:50 +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=1790267033; cv=none; b=C+h2YPttydjHy7fYJV1E/Zo/ETZRX+370QG55uS6KFUzwKKDEFW3PFmExM1aqYeHu0DZKRDiOJCA2hs1kLa8jeZS6oBUrRwZxk4+qBFg9BDwNVneW1D9GnlpbBhh7d7QomGgc1gFqz5ndCRzh7tEBxRyvT2qqCvwtcjWFI7vlag= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790267033; c=relaxed/simple; bh=Qxel8i3xMp2QNnhg6jeWeCiFdge1IRNBYjhDAj8Rz/c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=FwebxZsHX8vZkFmU12upkxI+HvMER7OadyKE8JNjlbJrOslpgoCwZv2qg1ZFqPr4IzhAOMs4e11Dx2C8sSh6GIC9+cd73oRLos0dKKyls1uhl3N67KEstuNDJ2noKnny8x8xfC85cFI0vFSe9+Ko5LN9mX9xBjBwgYxHFGmq634= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=f2pcsqjx; 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="f2pcsqjx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E99D31F000FF; Thu, 24 Sep 2026 16:23:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790267030; bh=S5WyPFqQffvB8H0mzcqWNpAs8djn9eKTc8ofagQCUWY=; h=From:To:Cc:Subject:Date:Reply-To; b=f2pcsqjxRkevmWVeYnc96HvSDbjTXrUeUjf/Z7HOP+mvugz/JYp3TLLRQKP8Pocw4 moofRft2vyWZ+SfKP5nj0/dtBfrK1dtwL2byhJouZeKsBjbO4JtO8yHu1reyiD0205 SWx3Vi9ZnpcAZaM7Fo3udDLJ2QgxNbdd4kK8/Rzk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97502: mmc: davinci: avoid NULL deref of host->data in IRQ handler Date: Thu, 24 Sep 2026 18:04:27 +0200 Message-ID: <2026092441-CVE-2026-97502-c7e2@gregkh> X-Mailer: git-send-email 2.55.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=3063; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=36qJVr6dQekt6d72lWR9RxBA6tfwLRPGTQGy2CV3XHQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPRfeujrfVzPpc9CSjad38t9fFGuomBuQyHFeb/GO5 MQHMwLvdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEluoyzA+9xx1ScO7bYaGu 7/lc9wrappQycDEsWH7dQHLnr6O31jB8KTPM/p6knBzVAQA= 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: davinci: avoid NULL deref of host->data in IRQ handler mmc_davinci_irq() returns early only when both host->cmd and host->data are NULL: if (host->cmd == NULL && host->data == NULL) { ... return IRQ_NONE; } So we may legitimately reach the rest of the handler with host->data == NULL (and therefore data == NULL). The DATDNE branch already guards against this with an explicit "if (data != NULL)" check, but the subsequent TOUTRD ("read data timeout") and CRCWR/CRCRD ("data CRC error") branches dereference data unconditionally: if (qstatus & MMCST0_TOUTRD) { data->error = -ETIMEDOUT; <-- NULL deref ... davinci_abort_data(host, data); } if (qstatus & (MMCST0_CRCWR | MMCST0_CRCRD)) { data->error = -EILSEQ; <-- NULL deref ... } If either bit is set in qstatus while host->data is NULL, the kernel will crash inside the IRQ handler. smatch flags this: drivers/mmc/host/davinci_mmc.c:933 mmc_davinci_irq() error: we previously assumed 'data' could be null (see line 914) Gate both branches on a non-NULL data, matching the existing pattern used by the DATDNE branch. No functional change for callers where data is non-NULL, which is the only case in which these branches did meaningful work before this change. The Linux kernel CVE team has assigned CVE-2026-97502 to this issue. Affected and fixed versions =========================== Fixed in 6.12.111 with commit a01cedf230dc0fcd55b994f5e548d3982ba4c732 Fixed in 6.18.53 with commit 5b7e151fe9ea9311ba601849aaecdc4fc97fd577 Fixed in 7.2 with commit 4f28846aaf8db9668e338b8987973f8935edff34 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-97502 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/davinci_mmc.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/a01cedf230dc0fcd55b994f5e548d3982ba4c732 https://git.kernel.org/stable/c/5b7e151fe9ea9311ba601849aaecdc4fc97fd577 https://git.kernel.org/stable/c/4f28846aaf8db9668e338b8987973f8935edff34