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.
Published: 2026-09-24
Score: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Immediate Patch
AI Analysis

Impact

Kernel code in the davinci MMC host driver dereferences the data pointer without checking it for null in two branches of the IRQ handler. When a timeout or CRC error occurs and host->data is null, the function writes to a null pointer, causing a kernel panic and a complete system crash. The primary impact is a denial‑of‑service that results from the kernel rebooting or halting. The weakness is an improper null dereference (CWE‑476).

Affected Systems

The flaw appears in the Linux kernel's mmc driver for davinci hosts. Any kernel configuration that includes the davinci MMC driver and does not contain the recent commit that guards against null pointers is vulnerable. The affected products are all distributions shipping a Linux kernel with this driver before the patch. Specific kernel versions are not listed, so administrators should verify whether their kernel contains the upstream change.

Risk and Exploitability

The issue is confined to machines that use the davinci MMC driver. An attacker must cause an interrupt with a null data pointer, which normally only occurs if the driver is misconfigured or faulty. The likely attack vector is an attacker triggering an MMC interrupt during a period of no data transfer, causing host->data to be null. Based on the description, such an interrupt could trigger the null dereference, leading to a kernel panic and denial‑of‑service. Because the fault occurs in kernel space, it can lead to a denial‑of‑service condition if an attacker can trigger the interrupt, but no remote code execution is described. The CVSS score is 5.5 (medium), and the EPSS score is <1%, indicating low exploitation probability; the unpatched kernel remains at risk of crashing under heavy MMC traffic or malformed interrupts. Prompt remediation is advised.

Generated by OpenCVE AI on October 1, 2026 at 11:55 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the vendor patch that fixes the null dereference in the davinci MMC interrupt handler.
  • If the patch is unavailable, disable or unload the davinci MMC driver when the hardware is not required.
  • Reboot the system after applying the patch or disabling the driver to ensure the fix takes effect.

Generated by OpenCVE AI on October 1, 2026 at 11:55 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4817-1 linux-6.12 security update
Debian DSA Debian DSA DSA-6528-1 linux security update
History

Sat, 03 Oct 2026 11:15:00 +0000


Wed, 30 Sep 2026 00:15:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Fri, 25 Sep 2026 08:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-476

Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
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.
Title mmc: davinci: avoid NULL deref of host->data in IRQ handler
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-03T10:59:02.767Z

Reserved: 2026-09-24T16:01:01.151Z

Link: CVE-2026-97502

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-24T17:17:27.963

Modified: 2026-10-03T11:17:59.840

Link: CVE-2026-97502

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-24T00:00:00Z

Links: CVE-2026-97502 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T12:00:06Z

Weaknesses