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

mtd: mchp23k256: use SPI match data for chip caps

The driver stores chip capacity information in both the OF match table
and the SPI id table. Probe currently uses of_device_get_match_data(),
so a non-OF SPI modalias match falls back to mchp23k256_caps even when
the SPI id table selected a different part.

Use spi_get_device_match_data() so SPI id-table driver_data is consumed
when OF match data is absent. This keeps the existing default fallback
while avoiding the wrong MTD geometry for id-table-only matches.
Published: 2026-08-15
Score: n/a
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The Linux kernel's MTD mchp23k256 driver determines a flash chip's capacity by consulting the OF match table or the SPI id table. During probe, the driver mistakenly falls back to a hard‑coded capacity when the device is detected via a non‑OF SPI modalias, even if the SPI id table specifies a different part. As a result, the kernel may configure an incorrect geometry for the flash device, causing read/write operations to overshoot the actual storage area. This can overwrite adjacent memory or corrupt data, potentially leading to system instability or firmware failure.

Affected Systems

The flaw exists in the Linux kernel wherever the mchp23k256 MTD driver is compiled, affecting all kernel versions prior to the patch that replaces of_device_get_match_data() with spi_get_device_match_data(). The driver is part of the mainline kernel and is used in many embedded boards and IoT devices. No specific version numbers are listed, so any installation that includes this driver is impacted until updated.

Risk and Exploitability

The vulnerability has no EPSS score or KEV listing, and CVSS is not provided. The likely attack vector is local or physical access to the SPI bus to influence the match data used by the driver. Based on the description, it is inferred that an attacker who can inject a custom SPI id‑table entry or manipulate the modalias may force the driver to install an incorrect flash geometry. This could corrupt data or crash the system, though it does not directly enable arbitrary code execution. No public exploits are noted, but the weakness is potentially exploitable in devices that rely on the mchp23k256 driver.

Generated by OpenCVE AI on August 15, 2026 at 21:08 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that applies the patch replacing of_device_get_match_data() with spi_get_device_match_data() for the mchp23k256 driver
  • If a kernel upgrade is not immediately possible, disable the mchp23k256 MTD driver or reconfigure the device so that the SPI bus is not exposed to untrusted parties
  • Enable kernel debugging or logging for MTD operations to detect geometry mismatches or memory corruption early on

Generated by OpenCVE AI on August 15, 2026 at 21:08 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 15 Aug 2026 21:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-119

Sat, 15 Aug 2026 06:00:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: mtd: mchp23k256: use SPI match data for chip caps The driver stores chip capacity information in both the OF match table and the SPI id table. Probe currently uses of_device_get_match_data(), so a non-OF SPI modalias match falls back to mchp23k256_caps even when the SPI id table selected a different part. Use spi_get_device_match_data() so SPI id-table driver_data is consumed when OF match data is absent. This keeps the existing default fallback while avoiding the wrong MTD geometry for id-table-only matches.
Title mtd: mchp23k256: use SPI match data for chip caps
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-15T05:51:25.949Z

Reserved: 2026-07-30T09:28:09.396Z

Link: CVE-2026-68467

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-15T06:19:46.527

Modified: 2026-08-15T06:19:46.527

Link: CVE-2026-68467

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-15T21:15:03Z

Weaknesses
  • CWE-119

    Improper Restriction of Operations within the Bounds of a Memory Buffer