🇰🇷 한글 설명
리눅스 커널의 net/sched: act_mirred 구성 요소에서 skb(소켓 버퍼)를 이미 전달한 후에도 반환 값을 잘못 설정하여 Use-After-Free(UaF) 취약점이 발생할 수 있는 문제입니다. 패치는 skb를 이미 처리한 경우 retval을 덮어쓰지 않도록 오류 경로를 수정하여 이를 해결합니다.
💡 쉬운 설명
데이터 패킷을 처리하는 과정에서 이미 사용이 끝난 메모리 영역을 다시 참조하려고 시도하여 시스템 오류나 보안 문제가 생길 수 있는 결함입니다. 패킷 전달 방식의 논리적 오류를 수정하여 메모리 충돌을 방지합니다.
🇺🇸 원문 (English)
In the Linux kernel, the following vulnerability has been resolved:
net/sched: act_mirred: don't override retval if we already lost the skb
If we're redirecting the skb, and haven't called tcf_mirred_forward(),
yet, we need to tell the core to drop the skb by setting the retcode
to SHOT. If we have called tcf_mirred_forward(), however, the skb
is out of our hands and returning SHOT will lead to UaF.
Move the retval override to the error path which actually need it.
📍 영향받는 시스템
Linux Kernel (act_mirred 모듈을 사용하는 시스템)
⚔️ 공격 벡터
네트워크 스케줄링 및 패킷 리디렉션 과정에서의 특수한 네트워크 트래픽 조작
🛡️ 대응 방법
리눅스 커널을 최신 보안 패치가 적용된 버전으로 업데이트
🔧 검증 코드
출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인