🇰🇷 한글 설명
Linux 커널의 mlxsw 드라이버 내 mlxsw_sp_port_lag_join() 함수에서 참조 횟수(refcount) 누수가 발생하는 취약점이 해결되었습니다. mlxsw_sp_port_lag_index_get() 호출 실패 시, 이전에 획득한 LAG 참조를 해제하지 않고 오류를 반환하여 메모리 누수가 발생할 수 있었습니다.
💡 쉬운 설명
컴퓨터 시스템이 특정 작업을 하다가 오류가 났을 때, 사용했던 메모리 자원을 제대로 돌려주지 않고 그냥 종료되는 문제가 있었습니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 낭비되어 성능 저하나 불안정을 초래할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
mlxsw: fix refcount leak in mlxsw_sp_port_lag_join()
When mlxsw_sp_port_lag_index_get() fails, mlxsw_sp_port_lag_join()
returns an error without releasing the lag reference obtained by
the earlier mlxsw_sp_lag_get(). All other error paths in the
function jump to the cleanup label that ends with
mlxsw_sp_lag_put(), so this is a single missed release.
Fix the leak by replacing the bare 'return err' with a goto to the
existing error cleanup label, which will drop the reference safely.
📍 영향받는 시스템
Linux kernel (mlxsw driver 사용 시스템)
⚔️ 공격 벡터
로컬 공격자가 특정 네트워크 구성 변경을 유도하여 메모리 누수를 발생시킬 수 있음
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하십시오.
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인하십시오.