🔍 CVE-2024-26974

7.8
CVSS Score
HIGH
2024-05-01
2026-10-15 01:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 intel_qat 드라이버에서 PCI AER 오류 복구 과정 중 레이스 컨디션이 발생하여 Use-After-Free(UAF) 취약점이 존재합니다. 장치 재시작이 10초 이상 소요되어 타임아웃이 발생할 경우, 사용 중인 reset_data 구조체가 먼저 해제되어 이후 접근 시 오류가 발생합니다.

💡 쉬운 설명

하드웨어 오류를 복구하는 과정에서 컴퓨터가 이미 삭제한 메모리 정보를 다시 사용하려고 시도하는 오류입니다. 이로 인해 시스템이 불안정해지거나 보안 문제가 생길 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: crypto: qat - resolve race condition during AER recovery During the PCI AER system's error recovery process, the kernel driver may encounter a race condition with freeing the reset_data structure's memory. If the device restart will take more than 10 seconds the function scheduling that restart will exit due to a timeout, and the reset_data structure will be freed. However, this data structure is used for completion notification after the restart is completed, which leads to a UAF bug. This results in a KFENCE bug notice. BUG: KFENCE: use-after-free read in adf_device_reset_worker+0x38/0xa0 [intel_qat] Use-after-free read at 0x00000000bc56fddf (in kfence-#142): adf_device_reset_worker+0x38/0xa0 [intel_qat] process_one_work+0x173/0x340 To resolve this race condition, the memory associated to the container of the work_struct is freed on the worker if the timeout expired, otherwise on the function that schedules the worker. The timeout detection can be done by checking if the caller is still waiting for completion or not by using completion_done() function.

📍 영향받는 시스템

Intel QAT(QuickAssist Technology) 드라이버를 사용하는 Linux 커널 시스템

⚔️ 공격 벡터

PCI 장치의 오류 복구 프로세스를 유도하여 메모리 해제 후 접근(UAF)을 일으키는 로컬 공격

🛡️ 대응 방법

Intel QAT 드라이버의 레이스 컨디션 패치가 적용된 최신 Linux 커널로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인합니다.

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

💻 영향받는 소프트웨어

Linux Kernel