🇰🇷 한글 설명
Linux 커널의 drm/amd/ras 구성 요소에서 ras_core_get_utc_second_timestamp() 함수 호출 시 NULL 포인터 역참조가 발생할 수 있는 취약점이 발견되었습니다. ras_core가 NULL인 상태에서 오류 메시지를 출력하기 위해 ras_core->dev에 접근할 때 시스템 충돌이 발생할 수 있습니다.
💡 쉬운 설명
컴퓨터의 오류 기록을 남기는 과정에서, 기록할 대상이 비어있는데도 억지로 기록을 시도하려다 시스템이 멈출 수 있는 문제입니다. 이를 방지하기 위해 기록 대상이 있는지 먼저 확인하는 과정을 추가했습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
drm/amd/ras: Fix NULL deref in ras_core_get_utc_second_timestamp()
ras_core_get_utc_second_timestamp() retrieves the current UTC timestamp
(in seconds since the Unix epoch) through a platform-specific RAS system
callback and is used for timestamping RAS error events.
The function checks ras_core in the conditional statement before calling
the sys_fn callback. However, when the condition fails, the function
prints an error message using ras_core->dev.
If ras_core is NULL, this can lead to a potential NULL pointer
dereference when accessing ras_core->dev.
Add an early NULL check for ras_core at the beginning of the function
and return 0 when the pointer is not valid. This prevents the
dereference and makes the control flow clearer.
📍 영향받는 시스템
Linux kernel (drm/amd/ras 관련 모듈을 사용하는 시스템)
⚔️ 공격 벡터
특정 하드웨어 환경에서 RAS(Reliability, Availability, and Serviceability) 오류 이벤트가 발생하여 해당 함수가 호출될 때 발생
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.