# CVE-2024-35813: mmc: core: Avoid negative index with array access

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Published: 2024-05-17T13:23:18.902Z
- Modified: 2026-10-15T01:17:47.663Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from f49f9e802785291149bdc9c824414de4604226b4 before b9a7339ae403035ffe7fc37cb034b36947910f68; from 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20 before 2b539c88940e22494da80a93ee1c5a28bbad10f6; from 50b8b7a22e90bab9f1949b64a88ff17ab10913ec before 81b8645feca08a54c7c4bf36e7b176f4983b2f28; from c4edcd134bb72b3b0acc884612d624e48c9d057f before ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55; from 1653a8102868264f3488c298a9f20af2add9a288 before 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2; from eed9119f8f8e8fbf225c08abdbb58597fba807e0 before 064db53f9023a2d5877a2d12de6bc27995f6ca56; from 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802 before 7d0e8a6147550aa058fa6ade8583ad252aa61304; from 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802 before cf55a7acd1ed38afe43bba1c8a0935b51d1dc014; from 5.4.269 before 5.4.274; from 5.10.210 before 5.10.215; from 5.15.149 before 5.15.154; from 6.1.76 before 6.1.84; and 3 more (not affected: before 6.8; from 5.4.274 up to 5.4.*; from 5.10.215 up to 5.10.*; from 5.15.154 up to 5.15.*; from 6.1.84 up to 6.1.*; from 6.6.24 up to 6.6.*; from 6.7.12 up to 6.7.*; from 6.8.3 up to 6.8.*; from 6.9 up to *)
- linux linux_kernel: from 5.4.269 before 5.4.274; from 5.10.210 before 5.10.215; from 5.15.149 before 5.15.154; from 6.1.76 before 6.1.84; from 6.6.15 before 6.6.24; from 6.7.3 before 6.7.12; from 6.8 before 6.8.3; 6.9
- debian debian_linux: 10.0

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68> (patch)
- <https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6> (patch)
- <https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28> (patch)
- <https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55> (patch)
- <https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2> (patch)
- <https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56> (patch)
- <https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304> (patch)
- <https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)
- <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Sources

- CVE List: [CVE-2024-35813](https://www.cve.org/CVERecord?id=CVE-2024-35813), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2024-35813](https://nvd.nist.gov/vuln/detail/CVE-2024-35813), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2024-35813 · Whole record: https://cve.day/CVE-2024-35813.json · Rebuilt by cve.day 2026-11-25T22:58:40.522Z
