---
id: CVE-2024-35813
title: |-
  In the Linux kernel, the following vulnerability has been resolved:

  mmc: core: Avoid negative index with array access

  Commit 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu") assigns
  prev_idata = idatas[i - 1], but doesn't che…
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  mmc: core: Avoid negative index with array access

  Commit 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu") assigns
  prev_idata = idatas[i - 1], but doesn't che…
severity: high
cvss: 7.8
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.4.269, < 5.4.274'
  - 'linux_kernel >= 5.10.210, < 5.10.215'
  - 'linux_kernel >= 5.15.149, < 5.15.154'
  - 'linux_kernel >= 6.1.76, < 6.1.84'
  - 'linux_kernel >= 6.6.15, < 6.6.24'
  - 'linux_kernel >= 6.7.3, < 6.7.12'
  - 'linux_kernel >= 6.8, < 6.8.3'
  - linux_kernel = 6.9
  - debian_linux = 10.0
patched:
  - linux_kernel 6.8.3
published: '2024-05-17'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T01:17:47.663'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35813'
references:
  - url: 'https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html'
    label: af854a3a-2127-422b-91ae-364da2661108
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-265688.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-35813.json
  - url: 'https://access.redhat.com/security/cve/CVE-2024-35813'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2281209'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2024-35813'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2024-35813'
  - url: >-
      https://lore.kernel.org/linux-cve-announce/2024051742-CVE-2024-35813-bdc9@gregkh/T
tags:
  - nvd
  - cve.org
  - csaf
  - vex
  - red-hat
  - score-dispute
epss: 0.00248
epssPercentile: 0.15989
ingestedAt: '2026-10-15T03:30:12.680Z'
ssvc:
  exploitation: none
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2024-06-17T17:39:23.725113Z'
cwe:
  - CWE-129
scores:
  nvd: 7.8
  vendor: 5.5
---

## Overview

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

mmc: core: Avoid negative index with array access

Commit 4d0c8d0aef63 ("mmc: core: Use mrq.sbc in close-ended ffu") assigns
prev_idata = idatas[i - 1], but doesn't check that the iterator i is
greater than zero. Let's fix this by adding a check.

## Affected

- `linux_kernel >= 5.4.269, < 5.4.274`
- `linux_kernel >= 5.10.210, < 5.10.215`
- `linux_kernel >= 5.15.149, < 5.15.154`
- `linux_kernel >= 6.1.76, < 6.1.84`
- `linux_kernel >= 6.6.15, < 6.6.24`
- `linux_kernel >= 6.7.3, < 6.7.12`
- `linux_kernel >= 6.8, < 6.8.3`
- `linux_kernel = 6.9`
- `debian_linux = 10.0`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.8.3`

## Vendor advisories

- **Red Hat VEX** · Moderate · affected: Red Hat Enterprise Linux 7 · no fix planned: Red Hat Enterprise Linux 7 · updated 2026-10-21 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2024/cve-2024-35813.json)
