🇰🇷 한글 설명
Linux 커널의 dma-buf/dma-resv 구성 요소에서 새로운 펜스(fence)가 기존 펜스보다 이후 시점인지 확인하지 않는 취약점이 발견되었습니다. 이로 인해 사용자 공간에서 커널에 Use-After-Free(UAF) 오류를 강제할 수 있는 보안 결함이 존재합니다.
💡 쉬운 설명
데이터 처리 순서를 관리하는 시스템에서 순서가 잘못된 명령을 내려 메모리 오류를 일으킬 수 있는 문제입니다. 공격자가 이를 악용하면 시스템의 메모리 관리 체계를 무너뜨려 보안 사고를 유발할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dma-buf/dma-resv: check if the new fence is really later
Previously when we added a fence to a dma_resv object we always
assumed the the newer than all the existing fences.
With Jason's work to add an UAPI to explicit export/import that's not
necessary the case any more. So without this check we would allow
userspace to force the kernel into an use after free error.
Since the change is very small and defensive it's probably a good
idea to backport this to stable kernels as well just in case others
are using the dma_resv object in the same way.
📍 영향받는 시스템
dma_resv 객체를 사용하는 Linux 커널 버전
⚔️ 공격 벡터
사용자 공간(Userspace)에서 조작된 펜스 객체를 통해 커널의 메모리 관리 로직을 공격
🛡️ 대응 방법
해당 취약점이 수정된 최신 Linux 커널 버전으로 업데이트
🔧 검증 코드
현재 실행 중인 커널 버전을 확인하여 보안 패치가 적용된 최신 버전인지 확인합니다.