🇰🇷 한글 설명
Linux 커널의 dpaa2-eth 드라이버에서 MAC 엔드포인트 장치 연결 해제 시 참조 카운트를 적절히 감소시키지 않는 문제가 발견되었습니다. 이로 인해 MAC 객체가 해제될 때 엔드포인트 장치의 참조가 유지되어 메모리 누수가 발생합니다.
💡 쉬운 설명
네트워크 장치를 연결했다가 끊을 때, 컴퓨터가 사용하던 메모리 흔적을 제대로 지우지 못하는 버그입니다. 이 문제가 반복되면 시스템의 메모리가 조금씩 낭비되어 성능 저하나 불안정을 초래할 수 있습니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
dpaa2-eth: put MAC endpoint device on disconnect
fsl_mc_get_endpoint() returns the MAC endpoint device with a reference
taken through device_find_child(). The Ethernet connect path stores that
device in mac->mc_dev and keeps it for the lifetime of the connected MAC
object.
However, the disconnect path only disconnects and closes the MAC before
freeing the dpaa2_mac object. It does not drop the endpoint device
reference stored in mac->mc_dev, so every successful connect leaks that
device reference when the MAC is later disconnected.
Drop the endpoint device reference after closing the MAC and before
freeing the dpaa2_mac object.
📍 영향받는 시스템
Linux kernel (dpaa2-eth driver components)
⚔️ 공격 벡터
로컬 시스템에서 네트워크 인터페이스의 반복적인 연결 및 해제 동작을 통한 메모리 누수 유도
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트하여 dpaa2_mac 객체 해제 전 참조를 해제하도록 수정
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인