🇰🇷 한글 설명
리눅스 커널의 phylink 구성 요소에서 mac_select_pcs 함수가 반환하는 PCS 값을 검증할 때 NULL 값만 확인하고 에러 포인터는 확인하지 않는 취약점이 발견되었습니다. 이로 인해 에러 포인터가 전달될 경우 잘못된 메모리 참조가 발생하여 커널 패닉(시스템 중단)이 일어날 수 있습니다. IS_ERR_OR_NULL 매크로를 사용하여 NULL과 에러 포인터를 모두 검증하도록 수정되었습니다.
💡 쉬운 설명
컴퓨터의 네트워크 부품을 관리하는 프로그램이 잘못된 신호를 받았을 때 이를 제대로 걸러내지 못해 시스템이 갑자기 멈출 수 있는 문제입니다. 오류 신호를 정상적인 데이터로 착각하여 잘못된 명령을 실행하려다 발생하는 현상입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: phylink: correctly validate returned PCS in phylink_inband_caps
In phylink_inband_caps(), the PCS returned by mac_select_pcs is only
checked if NULL but mac_select_pcs can also return an error pointer.
This can cause a kernel panic as phylink_pcs_inband_caps() only checks
if passed PCS is not NULL and directly dereference ops from the phylink_pcs
struct.
Use the IS_ERR_OR_NULL macro to address both case where the returned
PCS can be NULL or an error pointer and prevent a kernel panic.
📍 영향받는 시스템
Linux Kernel (phylink 모듈을 사용하는 버전)
⚔️ 공격 벡터
네트워크 하드웨어 드라이버가 잘못된 PCS(Physical Coding Sublayer) 상태를 반환하도록 유도하여 커널 패닉 유발
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.