🇰🇷 한글 설명
리눅스 커널의 regmap SPI 드라이버에서 레지스터 주소 및 패딩 공간을 고려하지 않아 발생하는 취약점입니다. 이로 인해 SPI 메시지 최대 크기를 초과할 수 있으며, 데이터 손상과 같은 정의되지 않은 동작을 유발할 수 있습니다.
💡 쉬운 설명
데이터를 주고받을 때 주소 정보를 위한 공간을 미리 계산하지 않아, 전송 데이터가 허용된 크기를 넘어서는 문제입니다. 이로 인해 데이터가 깨지거나 시스템이 예상치 못한 방식으로 작동할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
regmap: spi: Reserve space for register address/padding
Currently the max_raw_read and max_raw_write limits in regmap_spi struct
do not take into account the additional size of the transmitted register
address and padding. This may result in exceeding the maximum permitted
SPI message size, which could cause undefined behaviour, e.g. data
corruption.
Fix regmap_get_spi_bus() to properly adjust the above mentioned limits
by reserving space for the register address/padding as set in the regmap
configuration.
📍 영향받는 시스템
Linux kernel (regmap SPI driver 관련 버전)
⚔️ 공격 벡터
SPI 통신을 사용하는 하드웨어 제어 과정에서 특정 크기 이상의 데이터를 전송하도록 유도하여 데이터 손상 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 regmap_get_spi_bus() 함수 수정 사항 반영
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인