| From bippy-5f407fcff5a0 Mon Sep 17 00:00:00 2001 |
| From: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| To: <linux-cve-announce@vger.kernel.org> |
| Reply-to: <cve@kernel.org>, <linux-kernel@vger.kernel.org> |
| Subject: CVE-2024-35813: mmc: core: Avoid negative index with array access |
| |
| 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. |
| |
| The Linux kernel CVE team has assigned CVE-2024-35813 to this issue. |
| |
| |
| Affected and fixed versions |
| =========================== |
| |
| Issue introduced in 5.4.269 with commit f49f9e802785291149bdc9c824414de4604226b4 and fixed in 5.4.274 with commit b9a7339ae403035ffe7fc37cb034b36947910f68 |
| Issue introduced in 5.10.210 with commit 59020bf0999ff7da8aedcd00ef8f0d75d93b6d20 and fixed in 5.10.215 with commit 2b539c88940e22494da80a93ee1c5a28bbad10f6 |
| Issue introduced in 5.15.149 with commit 50b8b7a22e90bab9f1949b64a88ff17ab10913ec and fixed in 5.15.154 with commit 81b8645feca08a54c7c4bf36e7b176f4983b2f28 |
| Issue introduced in 6.1.76 with commit c4edcd134bb72b3b0acc884612d624e48c9d057f and fixed in 6.1.84 with commit ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55 |
| Issue introduced in 6.6.15 with commit 1653a8102868264f3488c298a9f20af2add9a288 and fixed in 6.6.24 with commit 4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2 |
| Issue introduced in 6.7.3 with commit eed9119f8f8e8fbf225c08abdbb58597fba807e0 and fixed in 6.7.12 with commit 064db53f9023a2d5877a2d12de6bc27995f6ca56 |
| Issue introduced in 6.8 with commit 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802 and fixed in 6.8.3 with commit 7d0e8a6147550aa058fa6ade8583ad252aa61304 |
| Issue introduced in 6.8 with commit 4d0c8d0aef6355660b6775d57ccd5d4ea2e15802 and fixed in 6.9 with commit cf55a7acd1ed38afe43bba1c8a0935b51d1dc014 |
| |
| Please see https://www.kernel.org for a full list of currently supported |
| kernel versions by the kernel community. |
| |
| Unaffected versions might change over time as fixes are backported to |
| older supported kernel versions. The official CVE entry at |
| https://cve.org/CVERecord/?id=CVE-2024-35813 |
| will be updated if fixes are backported, please check that for the most |
| up to date information about this issue. |
| |
| |
| Affected files |
| ============== |
| |
| The file(s) affected by this issue are: |
| drivers/mmc/core/block.c |
| |
| |
| Mitigation |
| ========== |
| |
| The Linux kernel CVE team recommends that you update to the latest |
| stable kernel version for this, and many other bugfixes. Individual |
| changes are never tested alone, but rather are part of a larger kernel |
| release. Cherry-picking individual commits is not recommended or |
| supported by the Linux kernel community at all. If however, updating to |
| the latest release is impossible, the individual changes to resolve this |
| issue can be found at these commits: |
| 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 |