🇰🇷 한글 설명
Linux 커널의 9p 파일 시스템 구현 중 p9_fd_request 함수에서 데이터 읽기 요청 시 수신 스레드를 적절히 깨우지 못하는 취약점이 발견되었습니다. 파이프가 가득 찬 상태에서 데이터 읽기 작업이 스케줄링되지 않아 데이터 전송이 지연되거나 중단될 수 있는 문제입니다.
💡 쉬운 설명
컴퓨터가 데이터를 주고받을 때, 데이터가 들어왔음에도 불구하고 이를 처리할 담당자를 깨우지 않아 작업이 멈추는 현상입니다. 이로 인해 파일 시스템의 데이터 읽기 속도가 느려지거나 응답이 없을 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
9p/trans_fd: p9_fd_request: kick rx thread if EPOLLIN
p9_read_work() doesn't set Rworksched and doesn't do schedule_work(m->rq)
if list_empty(&m->req_list).
However, if the pipe is full, we need to read more data and this used to
work prior to commit aaec5a95d59615 ("pipe_read: don't wake up the writer
if the pipe is still full").
p9_read_work() does p9_fd_read() -> ... -> anon_pipe_read() which (before
the commit above) triggered the unnecessary wakeup. This wakeup calls
p9_pollwake() which kicks p9_poll_workfn() -> p9_poll_mux(), p9_poll_mux()
will notice EPOLLIN and schedule_work(&m->rq).
This no longer happens after the optimization above, change p9_fd_request()
to use p9_poll_mux() instead of only checking for EPOLLOUT.
📍 영향받는 시스템
9p 파일 시스템을 사용하는 Linux 커널 버전
⚔️ 공격 벡터
직접적인 공격보다는 특정 조건(파이프 가득 참)에서 데이터 전송이 중단되는 서비스 거부(DoS) 형태의 영향 가능성
🛡️ 대응 방법
9p 파일 시스템의 스케줄링 로직이 수정된 최신 Linux 커널로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 패치가 적용된 최신 보안 업데이트 버전인지 확인