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.
[
{
"digest": {
"function_hash": "98876402942879096097753712010602389043",
"length": 3083.0
},
"id": "CVE-2024-35813-12ccedbe",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b539c88940e22494da80a93ee1c5a28bbad10f6",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"function_hash": "157469732363041596177039975149377150722",
"length": 3428.0
},
"id": "CVE-2024-35813-14a449ef",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-17d8daf4",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2b539c88940e22494da80a93ee1c5a28bbad10f6",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-202d1fb5",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d0e8a6147550aa058fa6ade8583ad252aa61304",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-28e9bca8",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81b8645feca08a54c7c4bf36e7b176f4983b2f28",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"function_hash": "238963274356341136886764574897586930307",
"length": 3185.0
},
"id": "CVE-2024-35813-3b484c62",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9a7339ae403035ffe7fc37cb034b36947910f68",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-41d88388",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"function_hash": "157469732363041596177039975149377150722",
"length": 3428.0
},
"id": "CVE-2024-35813-4355f4d4",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@064db53f9023a2d5877a2d12de6bc27995f6ca56",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"function_hash": "157469732363041596177039975149377150722",
"length": 3428.0
},
"id": "CVE-2024-35813-57f36779",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@7d0e8a6147550aa058fa6ade8583ad252aa61304",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"function_hash": "174438170085036724803741927060867013236",
"length": 3543.0
},
"id": "CVE-2024-35813-5eb71aea",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@ad9cc5e9e53ab94aa0c7ac65d43be7eb208dcb55",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-65ed3d64",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@064db53f9023a2d5877a2d12de6bc27995f6ca56",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"function_hash": "157469732363041596177039975149377150722",
"length": 3428.0
},
"id": "CVE-2024-35813-a2299c68",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cf55a7acd1ed38afe43bba1c8a0935b51d1dc014",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-c009bb19",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@b9a7339ae403035ffe7fc37cb034b36947910f68",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-e7039813",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4466677dcabe2d70de6aa3d4bd4a4fafa94a71f2",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"threshold": 0.9,
"line_hashes": [
"183448088474797527543847432083501843549",
"236268105773757204222742557555310836650",
"84182171899464786251368303406966191595",
"228412499795575020830702573955549785203"
]
},
"id": "CVE-2024-35813-f7e1b6b0",
"signature_type": "Line",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cf55a7acd1ed38afe43bba1c8a0935b51d1dc014",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c"
},
"deprecated": false
},
{
"digest": {
"function_hash": "17658249313640706076841693465344997275",
"length": 3167.0
},
"id": "CVE-2024-35813-fc0436aa",
"signature_type": "Function",
"source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@81b8645feca08a54c7c4bf36e7b176f4983b2f28",
"signature_version": "v1",
"target": {
"file": "drivers/mmc/core/block.c",
"function": "__mmc_blk_ioctl_cmd"
},
"deprecated": false
}
]