CVE-2024-35813
mmc: core: Avoid negative index with array access
Check your servers for CVE-2024-35813
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-35813 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality high, integrity high, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.2% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 17 Jun 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f49f9e802785291149bdc9c824414de4604226b4, before b9a7339ae403035ffe7fc37cb034b36947910f68 affected from 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20, before 2b539c88940e22494da80a93ee1c5a28bbad10f6 affected from 50b8b7a22e90bab9f1949b64a88ff17ab10913ec, before 81b8645feca08a54c7c4bf36e7b176f4983b2f28 affected from c4edcd134bb72b3b0acc884612d624e48c9d057f, before ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55 affected from 1653a8102868264f3488c298a9f20af2add9a288, before 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2 affected from eed9119f8f8e8fbf225c08abdbb58597fba807e0, before 064db53f9023a2d5877a2d12de6bc27995f6ca56 affected from 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, before 7d0e8a6147550aa058fa6ade8583ad252aa61304 affected from 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802, before cf55a7acd1ed38afe43bba1c8a0935b51d1dc014 affected from 5.4.269, before 5.4.274 affected from 5.10.210, before 5.10.215 affected from 5.15.149, before 5.15.154 affected from 6.1.76, before 6.1.84 affected from 6.6.15, before 6.6.24 affected from 6.7.3, before 6.7.12
Other versions: unaffected
|
| Linux |
affected 6.8 unaffected before 6.8 unaffected from 5.4.274 up to and including 5.4.* unaffected from 5.10.215 up to and including 5.10.* unaffected from 5.15.154 up to and including 5.15.* unaffected from 6.1.84 up to and including 6.1.* unaffected from 6.6.24 up to and including 6.6.* unaffected from 6.7.12 up to and including 6.7.* unaffected from 6.8.3 up to and including 6.8.* unaffected 6.9 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-35813 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-35813
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-35813
trivy image --scanners vuln IMAGE | grep CVE-2024-35813
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68 git.kernel.org
- https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6 git.kernel.org
- https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28 git.kernel.org
- https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55 git.kernel.org
- https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2 git.kernel.org
- https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56 git.kernel.org
- https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304 git.kernel.org
- https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014 git.kernel.org
- https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html lists.debian.org
- https://cert-portal.siemens.com/productcert/html/ssa-265688.html cert-portal.siemens.com
Source: the record CVE-2024-35813 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse