🇰🇷 한글 설명
Linux 커널의 Open vSwitch 구성 요소에서 오류 처리 과정 중 잘못된 포인터를 해제하려는 시도가 발생할 수 있는 취약점입니다. 메모리 할당 실패 시 에러 포인터(ERR_PTR)가 적절히 처리되지 않아 잘못된 메모리 해제(kfree_skb)를 시도하게 됩니다.
💡 쉬운 설명
컴퓨터가 작업을 하다가 오류가 났을 때, 잘못된 주소를 지우려고 시도하다가 시스템이 멈추거나 문제가 생길 수 있는 결함입니다. 메모리를 정리하는 순서가 꼬여서 발생하는 문제입니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net: openvswitch: fix possible kfree_skb of ERR_PTR
After the patch in the "Fixes" tag, the allocation of the "reply" skb
can happen either before or after locking the ovs_mutex.
However, error cleanups still follow the classical reversed order,
assuming "reply" is allocated before locking: it is freed after unlocking.
If "reply" allocation happens after locking the mutex and it fails,
"reply" is left with an ERR_PTR, and execution jumps to the correspondent
cleanup stage which will try to free an invalid pointer.
Fix this by setting the pointer to NULL after having saved its error
value.
📍 영향받는 시스템
Linux Kernel (Open vSwitch 모듈을 사용하는 시스템)
⚔️ 공격 벡터
네트워크 패킷 처리 과정 중 의도적인 메모리 할당 실패를 유도하여 커널 패닉 또는 시스템 불안정 유발
🛡️ 대응 방법
Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 수정된 패치 버전 이후인지 확인