🇰🇷 한글 설명
Linux 커널의 netfs 구성 요소에서 DIO(Direct I/O) 및 단일 읽기 하위 요청의 취소 처리 과정 중 발생하는 결함입니다. 하위 요청 준비 실패 시 참조 카운트 관리 및 리스트 제거가 적절히 이루어지지 않아 시스템 불안정성을 초래할 수 있습니다.
💡 쉬운 설명
데이터를 읽어오는 과정에서 오류가 발생했을 때, 컴퓨터가 사용하던 메모리나 자원을 제대로 정리하지 못하는 문제입니다. 이로 인해 시스템이 멈추거나 예상치 못한 오류가 발생할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
netfs: Fix cancellation of a DIO and single read subrequests
When the preparation of a new subrequest for a read fails, if the
subrequest has already been added to the stream->subrequests list, it can't
simply be put and abandoned as the collector may see it. Also, if it
hasn't been queued yet, it has two outstanding refs that both need to be
put. Both DIO read and single-read dispatch fail at this; further, both
differ in the order they do things to the way buffered read works.
Fix cancellation of both DIO-read and single-read subrequests that failed
preparation by the following steps:
(1) Harmonise all three reads (buffered, dio, single) to queue the subreq
before prepping it.
(2) Make all three call netfs_queue_read() to do the queuing.
(3) Set NETFS_RREQ_ALL_QUEUED independently of the queuing as we don't
know the length of the subreq at this point.
(4) In all cases, set the error and NETFS_SREQ_FAILED flag on the subreq
and then call netfs_read_subreq_terminated() to deal with it. This
will pass responsibility off to the collector for dealing with it.
📍 영향받는 시스템
Linux Kernel (netfs 구성 요소를 사용하는 버전)
⚔️ 공격 벡터
특수하게 조작된 I/O 요청을 통해 커널의 하위 요청 준비 단계에서 오류를 유도하여 자원 관리 결함을 트리거함
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인하십시오.