CVE-2024-41026
published high CVSS 3.1 · 7.8mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxed01d210fd910f7fa7933638df14ffb8d4aac2a9 to < c561c4ecce712f94b442db5960e281f13b28df2e · ed01d210fd910f7fa7933638df14ffb8d4aac2a9 to < 16198eef11c1929374381d7f6271b4bf6aa44615 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.9 (affected) · 0 to < 6.9 (unaffected · semver) · 6.9.10 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length No check is done on the size of the data to be transmiited. This causes a kernel panic when this size exceeds the sg_miter's length. Limit the number of transmitted bytes to sgm->length.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The vulnerable PIO path is reached through local device I/O — `MMC_IOC_CMD`/`MMC_IOC_MULTI_CMD` on the mmcblk block device or the RPMB character device — with no network or physical component required. No remote or adjacent-network protocol touches this driver. AC:L - The attacker deterministically selects `blksz`/`blocks` so that `blocks*blksz` is not a multiple of `rw_threshold`, which forces the PIO fallback in `mmc_davinci_prepare_data()` and makes the unclamped 32-byte priming transfer overrun a smaller scatterlist chunk on the first attempt. There is no race, no memory-layout guess, and no condition outside the attacker's control. PR:L - `mmc_rpmb_ioctl()` dispatches `MMC_IOC_CMD` into `mmc_blk_ioctl_cmd()` without any `capable()` check, so any user holding an open descriptor to `/dev/mmcblk*rpmb` — routinely group-accessible on embedded and Android-class deployments of this SoC family — can drive arbitrary `blksz`/`blocks` transfers. No administrative capability is needed on that path. UI:N - The attacker issues the ioctl directly against an already-present card; no victim action, card insertion, or mount is required. S:U - The out-of-bounds access corrupts and discloses kernel heap memory within the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed. C:H - In the write direction the driver reads far past the end of the kmalloc'd/kmapped buffer and streams that kernel memory into the MMC data register, and the underflowed `bytes_left`/`__remaining` turn this into an effectively unbounded sequential read of kernel memory (data landing inside the programmed transfer window is persisted to attacker-controlled card storage and read back). This is not a bounded few-byte leak. I:H - The same missing clamp in the read direction writes card-supplied bytes past the destination chunk, and once `sg_miter`'s `__remaining`/`__offset` and `host->bytes_left` underflow the driver writes attacker-influenced data far beyond the mapped page — an out-of-bounds heap write suitable for corrupting adjacent slab objects. A:H - The commit message states outright that exceeding the sg_miter length causes a kernel panic; the underflowed `host->bytes_left` also drives a multi-gigabyte copy loop in hard IRQ context that faults off the end of the mapping, giving a reliable oops/lockup.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ed01d210fd910f7fa7933638df14ffb8d4aac2a9 to < c561c4ecce712f94b442db5960e281f13b28df2e (affected · git)ed01d210fd910f7fa7933638df14ffb8d4aac2a9 to < 16198eef11c1929374381d7f6271b4bf6aa44615 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.9 (affected)0 to < 6.9 (unaffected · semver)6.9.10 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
3Linux · cna
mmc: davinci_mmc: Prevent transmitted data size from exceeding sgm's length
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- a7c10acc6b892b060b44fd113c14adb8e56ceaa91c9cdd56b12e52fa6c67468a
- Ingested
- 23 Sep 2026, 08:26:16 UTC
- Source record
- Official CVE record