CVE-2024-26787
mmc: mmci: stm32: fix DMA API overlapping mappings warning
Mitigation
- Upgrade Linux to 6b1ba3f9040be5efc4396d86c9752cdc564730be or later.
Who should check
- Anyone running Linux >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 70af82bb9c897faa25a44e4181f36c60312b71ef; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 176e66269f0de327375fc0ea51c12c2f5a97e4c4; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < d610a307225951929b9dff807788439454476f85; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 6b1ba3f9040be5efc4396d86c9752cdc564730be
- Anyone running Linux 4.20
Vulnerability facts
- Affected
- Linux >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 70af82bb9c897faa25a44e4181f36c60312b71ef; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 176e66269f0de327375fc0ea51c12c2f5a97e4c4; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < d610a307225951929b9dff807788439454476f85; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 6b1ba3f9040be5efc4396d86c9752cdc564730be; Linux 4.20
- Fixed in
- Linux 0224cbc53ba82b84affa7619b6d1b1a254bc2c53, Linux 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c, Linux 70af82bb9c897faa25a44e4181f36c60312b71ef, Linux 176e66269f0de327375fc0ea51c12c2f5a97e4c4, Linux 6b1ba3f9040be5efc4396d86c9752cdc564730be
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 16, 2026-11-26)
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 0224cbc53ba82b84affa7619b6d1b1a254bc2c53; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 70af82bb9c897faa25a44e4181f36c60312b71ef; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 176e66269f0de327375fc0ea51c12c2f5a97e4c4; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < d610a307225951929b9dff807788439454476f85; >= 46b723dd867d599420fb640c0eaf2a866ef721d4, < 6b1ba3f9040be5efc4396d86c9752cdc564730be | — | cvelist |
| Linux | 4.20 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/0224cbc53ba82b84affa7619b6d1b1a254bc2c53
- https://git.kernel.org/stable/c/5ae5060e17a3fc38e54c3e5bd8abd6b1d5bfae7c
- https://git.kernel.org/stable/c/70af82bb9c897faa25a44e4181f36c60312b71ef
- https://git.kernel.org/stable/c/176e66269f0de327375fc0ea51c12c2f5a97e4c4
- https://git.kernel.org/stable/c/d610a307225951929b9dff807788439454476f85
- https://git.kernel.org/stable/c/6b1ba3f9040be5efc4396d86c9752cdc564730be
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.