🇰🇷 한글 설명
Linux 커널의 Qualcomm uefisecapp 드라이버에서 요청 및 응답 버퍼가 단일 메모리 영역에 있어야 함에도 불구하고 별도로 할당되어 발생하는 메모리 관련 오류입니다. 이로 인해 I/O 오류(EIO), 잘못된 인자 오류(EINVAL) 또는 시스템의 하드 리셋이 발생할 수 있습니다.
💡 쉬운 설명
데이터를 주고받는 통로를 만들 때 두 개의 방을 따로 만들어서 문제가 생겼습니다. 이 때문에 시스템이 응답을 못 받거나 갑자기 재부팅될 수 있는 결함입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
firmware: qcom: uefisecapp: Fix memory related IO errors and crashes
It turns out that while the QSEECOM APP_SEND command has specific fields
for request and response buffers, uefisecapp expects them both to be in
a single memory region. Failure to adhere to this has (so far) resulted
in either no response being written to the response buffer (causing an
EIO to be emitted down the line), the SCM call to fail with EINVAL
(i.e., directly from TZ/firmware), or the device to be hard-reset.
While this issue can be triggered deterministically, in the current form
it seems to happen rather sporadically (which is why it has gone
unnoticed during earlier testing). This is likely due to the two
kzalloc() calls (for request and response) being directly after each
other. Which means that those likely return consecutive regions most of
the time, especially when not much else is going on in the system.
Fix this by allocating a single memory region for both request and
response buffers, properly aligning both structs inside it. This
unfortunately also means that the qcom_scm_qseecom_app_send() interface
needs to be restructured, as it should no longer map the DMA regions
separately. Therefore, move the responsibility of DMA allocation (or
mapping) to the caller.
📍 영향받는 시스템
Qualcomm 프로세서를 사용하는 Linux 커널 기반 시스템
⚔️ 공격 벡터
특정 메모리 할당 조건에서 발생하는 비결정적 오류를 이용한 서비스 거부(DoS) 또는 시스템 리셋
🛡️ 대응 방법
요청과 응답 버퍼를 하나의 연속된 메모리 영역으로 할당하도록 커널 패치를 적용하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전인지 제조사 보안 공지를 통해 확인하십시오.