# CVE-2024-26787: mmc: mmci: stm32: fix DMA API overlapping mappings warning

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 16, 2026-11-26)
- **Published:** 2024-04-04T08:20:19.751Z
- **Modified:** 2026-10-15T01:17:23.633Z

## Who should check

- Anyone running Linux \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 70af82bb9c897faa25a44e4181f36c60312b71ef; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 176e66269f0de327375fc0ea51c12c2f5a97e4c4; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< d610a307225951929b9dff807788439454476f85; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 6b1ba3f9040be5efc4396d86c9752cdc564730be
- Anyone running Linux 4.20

## Description

In the Linux kernel, the following vulnerability has been resolved:

mmc: mmci: stm32: fix DMA API overlapping mappings warning

Turning on CONFIG\_DMA\_API\_DEBUG\_SG results in the following warning:

DMA-API: mmci-pl18x 48220000.mmc: cacheline tracking EEXIST,
overlapping mappings aren't supported
WARNING: CPU: 1 PID: 51 at kernel/dma/debug.c:568
add\_dma\_entry+0x234/0x2f4
Modules linked in:
CPU: 1 PID: 51 Comm: kworker/1:2 Not tainted 6.1.28 \#1
Hardware name: STMicroelectronics STM32MP257F-EV1 Evaluation Board (DT)
Workqueue: events\_freezable mmc\_rescan
Call trace:
add\_dma\_entry+0x234/0x2f4
debug\_dma\_map\_sg+0x198/0x350
\_\_dma\_map\_sg\_attrs+0xa0/0x110
dma\_map\_sg\_attrs+0x10/0x2c
sdmmc\_idma\_prep\_data+0x80/0xc0
mmci\_prep\_data+0x38/0x84
mmci\_start\_data+0x108/0x2dc
mmci\_request+0xe4/0x190
\_\_mmc\_start\_request+0x68/0x140
mmc\_start\_request+0x94/0xc0
mmc\_wait\_for\_req+0x70/0x100
mmc\_send\_tuning+0x108/0x1ac
sdmmc\_execute\_tuning+0x14c/0x210
mmc\_execute\_tuning+0x48/0xec
mmc\_sd\_init\_uhs\_card.part.0+0x208/0x464
mmc\_sd\_init\_card+0x318/0x89c
mmc\_attach\_sd+0xe4/0x180
mmc\_rescan+0x244/0x320

DMA API debug brings to light leaking dma-mappings as dma\_map\_sg and
dma\_unmap\_sg are not correctly balanced.

If an error occurs in mmci\_cmd\_irq function, only mmci\_dma\_error
function is called and as this API is not managed on stm32 variant,
dma\_unmap\_sg is never called in this error path.

## Affected and fixed versions

- Linux: \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 70af82bb9c897faa25a44e4181f36c60312b71ef; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 176e66269f0de327375fc0ea51c12c2f5a97e4c4; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< d610a307225951929b9dff807788439454476f85; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 6b1ba3f9040be5efc4396d86c9752cdc564730be (cvelist)
- Linux: 4.20 (cvelist)

## Mitigation

- Upgrade Linux to 6b1ba3f9040be5efc4396d86c9752cdc564730be or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-26787. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26787.md
Affected: Linux >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 70af82bb9c897faa25a44e4181f36c60312b71ef; >= 46b723dd867d599420fb640…
Fixed in: Linux 0224cbc53ba82b84affa7619b6d1b1a254bc2c53, Linux 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c, Linux 70af82bb9c897faa25a44e4181f36c60312b71ef, Linux 176e66269f0de327375fc0ea51c12c2f5a97e4c4, Linux 6b1ba3f9040be5efc4396d86c9752cdc564730be

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-26787 being exploited?

There is no confirmed exploitation: CVE-2024-26787 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-26787?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-26787?

Linux \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 70af82bb9c897faa25a44e4181f36c60312b71ef; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 176e66269f0de327375fc0ea51c12c2f5a97e4c4; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< d610a307225951929b9dff807788439454476f85; \>= 46b723dd867d599420fb640c0eaf2a866ef721d4, \< 6b1ba3f9040be5efc4396d86c9752cdc564730be; Linux 4.20.

### Is there a fix for CVE-2024-26787?

Yes. Fixed in Linux 0224cbc53ba82b84affa7619b6d1b1a254bc2c53, Linux 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c, Linux 70af82bb9c897faa25a44e4181f36c60312b71ef, Linux 176e66269f0de327375fc0ea51c12c2f5a97e4c4, Linux 6b1ba3f9040be5efc4396d86c9752cdc564730be. Upgrade Linux to 6b1ba3f9040be5efc4396d86c9752cdc564730be or later.

### How do I check if I'm affected by CVE-2024-26787?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/0224cbc53ba82b84affa7619b6d1b1a254bc2c53>
- patch: <https://git.kernel.org/stable/c/5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c>
- patch: <https://git.kernel.org/stable/c/70af82bb9c897faa25a44e4181f36c60312b71ef>
- patch: <https://git.kernel.org/stable/c/176e66269f0de327375fc0ea51c12c2f5a97e4c4>
- patch: <https://git.kernel.org/stable/c/d610a307225951929b9dff807788439454476f85>
- patch: <https://git.kernel.org/stable/c/6b1ba3f9040be5efc4396d86c9752cdc564730be>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-26787>

HTML: <https://flawdb.com/CVE-2024-26787> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-26787>
