🇰🇷 한글 설명
리눅스 커널의 gpio aggregator에서 발생할 수 있는 Use-After-Free 취약점이 해결되었습니다. 오류 발생 시 룩업 테이블에서 항목을 제거하기 전에 dev_id를 먼저 해제하여, 동시 실행 중인 스레드가 해제된 메모리에 접근하여 strcmp()를 호출할 때 발생하는 문제를 수정했습니다.
💡 쉬운 설명
컴퓨터가 데이터를 정리하는 순서가 잘못되어, 이미 삭제된 정보를 다른 프로그램이 사용하려고 시도할 때 발생하는 오류입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
gpio: aggregator: fix a potential use-after-free
On error we free aggr->lookups->dev_id before removing the entry from
the lookup table. If a concurrent thread calls gpiod_find() before we
remove the entry, it could iterate over the list and call
gpiod_match_lookup_table() which unconditionally dereferences dev_id
when calling strcmp(). Reverse the order of cleanup.
📍 영향받는 시스템
GPIO aggregator 기능을 사용하는 Linux Kernel 버전
⚔️ 공격 벡터
동시성(Concurrency)을 이용한 Race Condition 공격을 통해 해제된 메모리 주소에 접근
🛡️ 대응 방법
해당 취약점이 수정된 최신 리눅스 커널 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 취약점이 해결된 패치 버전 이후인지 확인