{
    "dataType": "CVE_RECORD",
    "cveMetadata": {
        "cveId": "CVE-2024-35813",
        "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "state": "PUBLISHED",
        "assignerShortName": "Linux",
        "dateReserved": "2024-05-17T12:19:12.343Z",
        "datePublished": "2024-05-17T13:23:18.902Z",
        "dateUpdated": "2026-08-05T11:30:06.940Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
                "shortName": "Linux",
                "dateUpdated": "2026-08-05T11:30:06.940Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "In the Linux kernel, the following vulnerability has been resolved:\n\nmmc: core: Avoid negative index with array access\n\nCommit 4d0c8d0aef63 (\"mmc: core: Use mrq.sbc in close-ended ffu\") assigns\nprev_idata = idatas[i - 1], but doesn't check that the iterator i is\ngreater than zero. Let's fix this by adding a check."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
                        "baseScore": 7.8,
                        "baseSeverity": "HIGH"
                    },
                    "scenarios": [
                        {
                            "lang": "en",
                            "value": "AV:L - The bug is reached only via the MMC_IOC_CMD / MMC_IOC_MULTI_CMD ioctls on the local /dev/mmcblkN block device or the /dev/mmcblkNrpmb character device. There is no remote or adjacent-network path into drivers/mmc/core/block.c.\nAC:L - Triggering requires the uninitialized `flags` field (kmalloc'd throughout the affected range) to have MMC_BLK_IOC_SBC set on the first command, which the attacker controls by grooming the kmalloc-96/128 slab before the ioctl, and which can be retried in a tight loop at no cost. The subsequent `idatas[-1]` neighbor (an adjacent kmalloc-8 object or a live stack slot) is likewise attacker-influenceable via standard heap/stack spraying.\nPR:L - The RPMB character-device entry point (mmc_rpmb_ioctl → mmc_blk_ioctl_cmd/mmc_blk_ioctl_multi_cmd) performs no capable() check whatsoever — only DAC permissions on /dev/mmcblkNrpmb gate it — and on Android and embedded platforms that node is routinely opened by non-root system daemons, so an unprivileged-but-authorized local process suffices.\nUI:N - The attacker issues the ioctl directly from their own process; no victim action, mount, or file open by another user is needed.\nS:U - The out-of-bounds access and the resulting corruption are entirely within the kernel's own security authority, with no crossing of a VM, IOMMU, or sandbox boundary.\nC:H - The negative index performs an out-of-bounds read of a pointer, and the resulting `prev_idata->ic.arg` dereference reads attacker-chosen kernel memory that is then emitted as the CMD23 argument; more broadly the memory corruption is leverageable for kernel information disclosure.\nI:H - `memcpy(&prev_idata->ic.response, sbc.resp, sizeof(sbc.resp))` performs a 16-byte write through the out-of-bounds-derived pointer, giving a write primitive at a heap-groomable address (or over live kernel pointers on the stack) that is exploitable for privilege escalation.\nA:H - Dereferencing the wild `idatas[-1]` pointer — read at `prev_idata->ic.arg` and write at `prev_idata->ic.response` — reliably produces a kernel oops/panic in the common case where the neighboring memory is not a valid object."
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "unaffected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mmc/core/block.c"
                    ],
                    "versions": [
                        {
                            "version": "f49f9e802785291149bdc9c824414de4604226b4",
                            "lessThan": "b9a7339ae403035ffe7fc37cb034b36947910f68",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "59020bf0999ff7da8aedcd00ef8f0d75d93b6d20",
                            "lessThan": "2b539c88940e22494da80a93ee1c5a28bbad10f6",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "50b8b7a22e90bab9f1949b64a88ff17ab10913ec",
                            "lessThan": "81b8645feca08a54c7c4bf36e7b176f4983b2f28",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "c4edcd134bb72b3b0acc884612d624e48c9d057f",
                            "lessThan": "ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "1653a8102868264f3488c298a9f20af2add9a288",
                            "lessThan": "4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "eed9119f8f8e8fbf225c08abdbb58597fba807e0",
                            "lessThan": "064db53f9023a2d5877a2d12de6bc27995f6ca56",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4d0c8d0aef6355660b6775d57ccd5d4ea2e15802",
                            "lessThan": "7d0e8a6147550aa058fa6ade8583ad252aa61304",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "4d0c8d0aef6355660b6775d57ccd5d4ea2e15802",
                            "lessThan": "cf55a7acd1ed38afe43bba1c8a0935b51d1dc014",
                            "status": "affected",
                            "versionType": "git"
                        },
                        {
                            "version": "5.4.269",
                            "lessThan": "5.4.274",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.210",
                            "lessThan": "5.10.215",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.149",
                            "lessThan": "5.15.154",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.76",
                            "lessThan": "6.1.84",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.15",
                            "lessThan": "6.6.24",
                            "status": "affected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.7.3",
                            "lessThan": "6.7.12",
                            "status": "affected",
                            "versionType": "semver"
                        }
                    ]
                },
                {
                    "product": "Linux",
                    "vendor": "Linux",
                    "defaultStatus": "affected",
                    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
                    "programFiles": [
                        "drivers/mmc/core/block.c"
                    ],
                    "versions": [
                        {
                            "version": "6.8",
                            "status": "affected"
                        },
                        {
                            "version": "0",
                            "lessThan": "6.8",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.4.274",
                            "lessThanOrEqual": "5.4.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.10.215",
                            "lessThanOrEqual": "5.10.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "5.15.154",
                            "lessThanOrEqual": "5.15.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.1.84",
                            "lessThanOrEqual": "6.1.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.6.24",
                            "lessThanOrEqual": "6.6.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.7.12",
                            "lessThanOrEqual": "6.7.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.8.3",
                            "lessThanOrEqual": "6.8.*",
                            "status": "unaffected",
                            "versionType": "semver"
                        },
                        {
                            "version": "6.9",
                            "lessThanOrEqual": "*",
                            "status": "unaffected",
                            "versionType": "original_commit_for_fix"
                        }
                    ]
                }
            ],
            "cpeApplicability": [
                {
                    "nodes": [
                        {
                            "operator": "OR",
                            "negate": false,
                            "cpeMatch": [
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.4.269",
                                    "versionEndExcluding": "5.4.274"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.10.210",
                                    "versionEndExcluding": "5.10.215"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "5.15.149",
                                    "versionEndExcluding": "5.15.154"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.1.76",
                                    "versionEndExcluding": "6.1.84"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.6.15",
                                    "versionEndExcluding": "6.6.24"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.7.3",
                                    "versionEndExcluding": "6.7.12"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "6.8.3"
                                },
                                {
                                    "vulnerable": true,
                                    "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                                    "versionStartIncluding": "6.8",
                                    "versionEndExcluding": "6.9"
                                }
                            ]
                        }
                    ]
                }
            ],
            "references": [
                {
                    "url": "https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68"
                },
                {
                    "url": "https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6"
                },
                {
                    "url": "https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28"
                },
                {
                    "url": "https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55"
                },
                {
                    "url": "https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2"
                },
                {
                    "url": "https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56"
                },
                {
                    "url": "https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304"
                },
                {
                    "url": "https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014"
                }
            ],
            "title": "mmc: core: Avoid negative index with array access",
            "x_generator": {
                "engine": "bippy-1.2.0"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2024-06-17T17:39:23.725113Z",
                                "id": "CVE-2024-35813",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2024-06-17T17:43:26.196Z"
                }
            },
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T03:21:47.575Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://git.kernel.org/stable/c/b9a7339ae403035ffe7fc37cb034b36947910f68",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/2b539c88940e22494da80a93ee1c5a28bbad10f6",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/81b8645feca08a54c7c4bf36e7b176f4983b2f28",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/064db53f9023a2d5877a2d12de6bc27995f6ca56",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/7d0e8a6147550aa058fa6ade8583ad252aa61304",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://git.kernel.org/stable/c/cf55a7acd1ed38afe43bba1c8a0935b51d1dc014",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            },
            {
                "x_adpType": "supplier",
                "providerMetadata": {
                    "orgId": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e",
                    "shortName": "siemens-SADP",
                    "dateUpdated": "2026-05-12T11:52:10.428Z"
                },
                "affected": [
                    {
                        "vendor": "Siemens",
                        "product": "SIMATIC S7-1500 TM MFP - GNU/Linux subsystem",
                        "versions": [
                            {
                                "status": "affected",
                                "version": "0",
                                "lessThan": "*",
                                "versionType": "custom"
                            }
                        ],
                        "defaultStatus": "unknown"
                    }
                ],
                "references": [
                    {
                        "url": "https://cert-portal.siemens.com/productcert/html/ssa-265688.html"
                    }
                ]
            }
        ]
    },
    "dataVersion": "5.2"
}