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

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.35% (percentile 21, 2026-11-26)
- **Published:** 2024-05-17T13:23:18.902Z
- **Modified:** 2026-10-15T01:17:47.663Z

## Who should check

- Anyone running Linux \>= f49f9e802785291149bdc9c824414de4604226b4, \< b9a7339ae403035ffe7fc37cb034b36947910f68; \>= 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20, \< 2b539c88940e22494da80a93ee1c5a28bbad10f6; \>= 50b8b7a22e90bab9f1949b64a88ff17ab10913ec, \< 81b8645feca08a54c7c4bf36e7b176f4983b2f28; \>= c4edcd134bb72b3b0acc884612d624e48c9d057f, \< ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55; \>= 1653a8102868264f3488c298a9f20af2add9a288, \< 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2; \>= eed9119f8f8e8fbf225c08abdbb58597fba807e0, \< 064db53f9023a2d5877a2d12de6bc27995f6ca56; \>= 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, \< 7d0e8a6147550aa058fa6ade8583ad252aa61304; \>= 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, \< cf55a7acd1ed38afe43bba1c8a0935b51d1dc014; \>= 5.4.269, \< 5.4.274; \>= 5.10.210, \< 5.10.215; …
- Anyone running Linux 6.8

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

## Affected and fixed versions

- Linux: \>= f49f9e802785291149bdc9c824414de4604226b4, \< b9a7339ae403035ffe7fc37cb034b36947910f68; \>= 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20, \< 2b539c88940e22494da80a93ee1c5a28bbad10f6; \>= 50b8b7a22e90bab9f1949b64a88ff17ab10913ec, \< 81b8645feca08a54c7c4bf36e7b176f4983b2f28; \>= c4edcd134bb72b3b0acc884612d624e48c9d057f, \< ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55; \>= 1653a8102868264f3488c298a9f20af2add9a288, \< 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2; \>= eed9119f8f8e8fbf225c08abdbb58597fba807e0, \< 064db53f9023a2d5877a2d12de6bc27995f6ca56; \>= 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, \< 7d0e8a6147550aa058fa6ade8583ad252aa61304; \>= 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, \< cf55a7acd1ed38afe43bba1c8a0935b51d1dc014; \>= 5.4.269, \< 5.4.274; \>= 5.10.210, \< 5.10.215; … (cvelist)
- Linux: 6.8 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-35813. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-35813.md
Affected: Linux >= f49f9e802785291149bdc9c824414de4604226b4, < b9a7339ae403035ffe7fc37cb034b36947910f68; >= 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20, < 2b539c88940e22494da80a93ee1c5a28bbad10f6; >= 50b8b7a22e90bab9f1949b64a88ff17ab10913ec, < 81b8645feca08a54c7c4bf36e7b176f4983b2f28; >= c4edcd134bb72b3b0acc884…
Fixed in: Linux 2b539c88940e22494da80a93ee1c5a28bbad10f6, Linux 81b8645feca08a54c7c4bf36e7b176f4983b2f28, Linux 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2, Linux 064db53f9023a2d5877a2d12de6bc27995f6ca56, Linux 7d0e8a6147550aa058fa6ade8583ad252aa61304, Linux 5.4.274, Linux 5.10.215

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

## FAQ

### Is CVE-2024-35813 being exploited?

There is no confirmed exploitation: CVE-2024-35813 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.35% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-35813?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-35813?

Linux \>= f49f9e802785291149bdc9c824414de4604226b4, \< b9a7339ae403035ffe7fc37cb034b36947910f68; \>= 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20, \< 2b539c88940e22494da80a93ee1c5a28bbad10f6; \>= 50b8b7a22e90bab9f1949b64a88ff17ab10913ec, \< 81b8645feca08a54c7c4bf36e7b176f4983b2f28; \>= c4edcd134bb72b3b0acc884612d624e48c9d057f, \< ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55; \>= 1653a8102868264f3488c298a9f20af2add9a288, \< 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2; \>= eed9119f8f8e8fbf225c08abdbb58597fba807e0, \< 064db53f9023a2d5877a2d12de6bc27995f6ca56; \>= 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, \< 7d0e8a6147550aa058fa6ade8583ad252aa61304; \>= 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, \< cf55a7acd1ed38afe43bba1c8a0935b51d1dc014; \>= 5.4.269, \< 5.4.274; \>= 5.10.210, \< 5.10.215; …; Linux 6.8.

### Is there a fix for CVE-2024-35813?

Yes. Fixed in Linux 2b539c88940e22494da80a93ee1c5a28bbad10f6, Linux 81b8645feca08a54c7c4bf36e7b176f4983b2f28, Linux 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2, Linux 064db53f9023a2d5877a2d12de6bc27995f6ca56, Linux 7d0e8a6147550aa058fa6ade8583ad252aa61304, Linux 5.4.274, Linux 5.10.215. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2024-35813?

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.

## References

- patch: <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>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- other: <https://cert-portal.siemens.com/productcert/html/ssa-265688.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-35813>

HTML: <https://flawdb.com/CVE-2024-35813> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-35813>
