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.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
4379075a870b8de43a9ecd5b46884953234fc669 to < 2e179b028da9fd628a09286a2c9df4fa076b2cc9affected4379075a870b8de43a9ecd5b46884953234fc669 to < a0c38083623c8b210a5b87fd34bebd05aa935ae8affected4379075a870b8de43a9ecd5b46884953234fc669 to < 7c0a3a73dccc9a3fc701f6be762449f18d0ca0fcaffected4379075a870b8de43a9ecd5b46884953234fc669 to < dbe2254d1da99c986f9a3392471fc5eaa3229647affected4379075a870b8de43a9ecd5b46884953234fc669 to < 04ebd3766861f219325852c9598e0f0281cb3636affected4379075a870b8de43a9ecd5b46884953234fc669 to < 09e044192a42f716215fbd1a100ee87fa57426aaaffected4379075a870b8de43a9ecd5b46884953234fc669 to < d322e40f4edf92bf0ca329e5aa4ae1c0316feb38affected
Linux Linux
Default version status: affected
4.13affected0 to < 4.13unaffected5.15.212 to ≤ 5.15.*unaffected6.1.178 to ≤ 6.1.*unaffected6.6.145 to ≤ 6.6.*unaffected6.12.97 to ≤ 6.12.*unaffected6.18.40 to ≤ 6.18.*unaffected7.1.5 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/2e179b028da9fd628a09286a2c9df4fa076b2cc9 ↗
- https://git.kernel.org/stable/c/a0c38083623c8b210a5b87fd34bebd05aa935ae8 ↗
- https://git.kernel.org/stable/c/7c0a3a73dccc9a3fc701f6be762449f18d0ca0fc ↗
- https://git.kernel.org/stable/c/dbe2254d1da99c986f9a3392471fc5eaa3229647 ↗
- https://git.kernel.org/stable/c/04ebd3766861f219325852c9598e0f0281cb3636 ↗
- https://git.kernel.org/stable/c/09e044192a42f716215fbd1a100ee87fa57426aa ↗
- https://git.kernel.org/stable/c/d322e40f4edf92bf0ca329e5aa4ae1c0316feb38 ↗