🔍 CVE-2024-57888

5.5
CVSS Score
MEDIUM
2025-01-15
2026-10-30 13:17
✅ 완료

🇰🇷 한글 설명

Linux 커널 workqueue에서 WQ_MEM_RECLAIM 작업을 !WQ_MEM_RECLAIM 워커에서 취소(cancel_work_sync 계열)할 때 발생하던 잘못된 경고(false positive)를 수정했습니다. 실제로 작업이 실행 중이거나 실행되지 않을 경우 취소는 안전하므로, 호출 컨텍스트를 전달해 해당 경고 조건을 완화했습니다.

💡 쉬운 설명

Linux 커널이 안전한 작업 취소 상황을 위험하다고 잘못 경고하던 문제를 고친 버그 수정입니다. 실제 보안 침해 위험보다는 불필요한 경고 메시지를 없애는 데 목적이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: workqueue: Do not warn when cancelling WQ_MEM_RECLAIM work from !WQ_MEM_RECLAIM worker After commit 746ae46c1113 ("drm/sched: Mark scheduler work queues with WQ_MEM_RECLAIM") amdgpu started seeing the following warning: [ ] workqueue: WQ_MEM_RECLAIM sdma0:drm_sched_run_job_work [gpu_sched] is flushing !WQ_MEM_RECLAIM events:amdgpu_device_delay_enable_gfx_off [amdgpu] ... [ ] Workqueue: sdma0 drm_sched_run_job_work [gpu_sched] ... [ ] Call Trace: [ ] <TASK> ... [ ] ? check_flush_dependency+0xf5/0x110 ... [ ] cancel_delayed_work_sync+0x6e/0x80 [ ] amdgpu_gfx_off_ctrl+0xab/0x140 [amdgpu] [ ] amdgpu_ring_alloc+0x40/0x50 [amdgpu] [ ] amdgpu_ib_schedule+0xf4/0x810 [amdgpu] [ ] ? drm_sched_run_job_work+0x22c/0x430 [gpu_sched] [ ] amdgpu_job_run+0xaa/0x1f0 [amdgpu] [ ] drm_sched_run_job_work+0x257/0x430 [gpu_sched] [ ] process_one_work+0x217/0x720 ... [ ] </TASK> The intent of the verifcation done in check_flush_depedency is to ensure forward progress during memory reclaim, by flagging cases when either a memory reclaim process, or a memory reclaim work item is flushed from a context not marked as memory reclaim safe. This is correct when flushing, but when called from the cancel(_delayed)_work_sync() paths it is a false positive because work is either already running, or will not be running at all. Therefore cancelling it is safe and we can relax the warning criteria by letting the helper know of the calling context. References: 746ae46c1113 ("drm/sched: Mark scheduler work queues with WQ_MEM_RECLAIM")

📍 영향받는 시스템

패치 전 Linux 커널 (AMD GPU amdgpu 드라이버 및 drm/sched 사용 환경에서 경고 로그 발생)

⚔️ 공격 벡터

원격 공격 경로는 확인되지 않음. 로컬에서 GPU 작업 부하 시 커널 경고 로그가 출력되는 정도의 영향

🛡️ 대응 방법

커널을 해당 수정이 포함된 최신 안정 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지 또는 커널 stable 저장소에서 CVE-2024-57888 수정 포함 여부로 대조하여 최신 패치 적용 여부를 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel