Lucene search

K
cvelistLinuxCVELIST:CVE-2024-42249
HistoryAug 07, 2024 - 3:14 p.m.

CVE-2024-42249 spi: don't unoptimize message in spi_async()

2024-08-0715:14:33
Linux
www.cve.org
7
linux kernel
vulnerability
resolved
spi module
message corruption

EPSS

0

Percentile

9.5%

In the Linux kernel, the following vulnerability has been resolved:

spi: don’t unoptimize message in spi_async()

Calling spi_maybe_unoptimize_message() in spi_async() is wrong because
the message is likely to be in the queue and not transferred yet. This
can corrupt the message while it is being used by the controller driver.

spi_maybe_unoptimize_message() is already called in the correct place
in spi_finalize_current_message() to balance the call to
spi_maybe_optimize_message() in spi_async().

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/spi/spi.c"
    ],
    "versions": [
      {
        "version": "7b1d87af14d9",
        "lessThan": "8b9af6d67517",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "7b1d87af14d9",
        "lessThan": "c86a918b1bdb",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/spi/spi.c"
    ],
    "versions": [
      {
        "version": "6.9",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.9",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.10",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

9.5%