🔍 CVE-2022-50305

7.8
CVSS Score
HIGH
2025-09-15
2026-11-05 20:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ASoC sof_es8336 드라이버에서 sof_es8336_remove() 함수가 cancel_delayed_work()를 호출하여, 지연 작업 함수가 아직 실행 중일 때 드라이버 제거가 완료될 수 있었습니다. 이로 인해 해제된 메모리를 참조하는 use-after-free 취약점이 발생할 수 있습니다. 수정에서는 cancel_delayed_work_sync()를 사용하여 작업이 완전히 취소되고 실행이 끝날 때까지 대기하도록 합니다.

💡 쉬운 설명

컴퓨터의 사운드 장치를 제거하는 과정에서, 아직 작동 중인 작업이 이미 정리된 메모리를 건드릴 수 있는 문제였습니다. 이를 해결하려면 작업이 완전히 끝날 때까지 기다린 뒤에 정리하도록 바꾸어야 합니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ASoC: sof_es8336: fix possible use-after-free in sof_es8336_remove() sof_es8336_remove() calls cancel_delayed_work(). However, that function does not wait until the work function finishes. This means that the callback function may still be running after the driver's remove function has finished, which would result in a use-after-free. Fix by calling cancel_delayed_work_sync(), which ensures that the work is properly cancelled, no longer running, and unable to re-schedule itself.

📍 영향받는 시스템

sof_es8336 사운드 드라이버를 사용하는 Linux 커널 (수정 이전 버전, 특정 Intel SOF 기반 오디오 하드웨어 환경)

⚔️ 공격 벡터

로컬 사용자 또는 하드웨어 이벤트 조건에서 드라이버 제거 중 지연 작업이 실행되어 메모리 손상이나 커널 충돌을 유발할 수 있음

🛡️ 대응 방법

Linux 커널을 해당 CVE 수정이 포함된 최신 안정 버전으로 업데이트하고 배포판의 보안 업데이트를 적용하십시오.

🔧 검증 코드

출력된 커널 버전이 배포판의 수정 패치가 포함된 버전인지 확인하고, sof_es8336 모듈이 로드되어 있지 않다면 이 취약점의 직접적 영향은 제한적입니다.

Shell / Script
uname -r && (lsmod | grep -i sof_es8336 || echo 'sof_es8336 module not loaded')

📊 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