🇰🇷 한글 설명
Linux 커널의 mchp23k256 MTD 드라이버에서 SPI 매칭 데이터 사용 방식의 오류가 발견되었습니다. OF 매칭 데이터가 없을 때 SPI ID 테이블의 데이터를 사용하지 않고 기본값으로 잘못된 칩 용량 정보를 참조하여 MTD 기하학적 구조가 틀어질 수 있는 문제입니다.
💡 쉬운 설명
컴퓨터 부품을 인식할 때 칩의 용량을 잘못 읽어오는 버그가 있었습니다. 이로 인해 저장 장치의 크기가 실제와 다르게 인식될 수 있는 문제입니다.
🇺🇸 원문 (English)
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.
📍 영향받는 시스템
Linux kernel (mchp23k256 MTD driver 포함 버전)
⚔️ 공격 벡터
로컬 시스템에서 잘못된 SPI ID를 통해 드라이버를 로드하여 저장 장치 데이터 무결성 오류 유도
🛡️ 대응 방법
커널 패치를 적용하여 of_device_get_match_data() 대신 spi_get_device_match_data()를 사용하도록 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 최신 패치 버전인지 확인