🇰🇷 한글 설명
Linux 커널의 edt-ft5x06 드라이버에서 debugfs 해제 과정 중 Use-After-Free 취약점이 발견되었습니다. debugfs 디렉토리가 I2C 코어에 의해 관리되면서, 데이터 버퍼가 해제된 후에도 파일에 접근할 수 있는 보안 허점이 발생했습니다.
💡 쉬운 설명
장치를 끌 때 메모리에서 데이터를 지우는데, 지워진 데이터에 누군가 접근하려고 시도할 수 있는 문제입니다. 이로 인해 시스템이 충돌하거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
Input: edt-ft5x06 - fix use-after-free in debugfs teardown
The commit 68743c500c6e ("Input: edt-ft5x06 - use per-client debugfs
directory") removed the manual debugfs teardown, relying on the I2C core
to handle it. However, this creates a window where debugfs files are
still accessible after edt_ft5x06_ts_teardown_debugfs() frees
tsdata->raw_buffer.
To prevent a use-after-free, protect the freeing of raw_buffer with the
device mutex and set raw_buffer to NULL. The debugfs read function
already checks if raw_buffer is NULL under the same mutex, so this
safely avoids the use-after-free.
📍 영향받는 시스템
Linux kernel (edt-ft5x06 driver component)
⚔️ 공격 벡터
로컬 공격자가 debugfs를 통해 해제된 메모리 영역에 접근하여 시스템 권한 탈취 또는 서비스 거부 유발
🛡️ 대응 방법
커널 패치 적용 (commit 68743c500c6e 포함 버전으로 업데이트)
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인합니다.