🔍 CVE-2022-49340

7.1
CVSS Score
HIGH
2025-02-26
2026-08-04 10:17
✅ 완료

🇰🇷 한글 설명

Linux 커널의 ip_gre 모듈에서 체크섬 오프로드 처리 시 csum_start 검증 로직이 부적절하여 발생합니다. 특정 조건에서 skb_pull 이후 csum_start를 올바르게 검증하지 못해 오버플로우가 발생할 수 있는 취약점입니다.

💡 쉬운 설명

네트워크 데이터를 처리하는 과정에서 계산 오류를 방지하기 위한 검사 단계가 빠져 있어 시스템에 문제가 생길 수 있습니다. 이로 인해 데이터가 잘못 처리되거나 시스템 오류가 발생할 위험이 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: ip_gre: test csum_start instead of transport header GRE with TUNNEL_CSUM will apply local checksum offload on CHECKSUM_PARTIAL packets. ipgre_xmit must validate csum_start after an optional skb_pull, else lco_csum may trigger an overflow. The original check was if (csum && skb_checksum_start(skb) < skb->data) return -EINVAL; This had false positives when skb_checksum_start is undefined: when ip_summed is not CHECKSUM_PARTIAL. A discussed refinement was straightforward if (csum && skb->ip_summed == CHECKSUM_PARTIAL && skb_checksum_start(skb) < skb->data) return -EINVAL; But was eventually revised more thoroughly: - restrict the check to the only branch where needed, in an uncommon GRE path that uses header_ops and calls skb_pull. - test skb_transport_header, which is set along with csum_start in skb_partial_csum_set in the normal header_ops datapath. Turns out skbs can arrive in this branch without the transport header set, e.g., through BPF redirection. Revise the check back to check csum_start directly, and only if CHECKSUM_PARTIAL. Do leave the check in the updated location. Check field regardless of whether TUNNEL_CSUM is configured.

📍 영향받는 시스템

Linux Kernel (ip_gre 모듈 사용 환경)

⚔️ 공격 벡터

BPF 리디렉션 등을 통해 전송 헤더가 설정되지 않은 특수한 형태의 GRE 패킷을 전송하여 오버플로우 유도

🛡️ 대응 방법

Linux 커널을 최신 보안 패치가 적용된 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 해결된 패치 버전 이후인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H

💻 영향받는 소프트웨어

Spring Data REST