🔍 CVE-2026-52986

9.8
CVSS Score
CRITICAL
2026-06-24
2026-10-19 20:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 netfilter SIP 연결 추적 모듈에서 unsafe한 simple_strtoul 함수를 사용하여 발생하는 취약점입니다. 비정상적으로 긴 포트 번호나 NUL 문자가 없는 데이터를 처리할 때 경계 검사 미흡으로 인해 발생할 수 있는 문제를 해결하기 위해 sip_parse_port() 헬퍼 함수를 도입했습니다.

💡 쉬운 설명

인터넷 통신 규약 중 하나인 SIP를 처리할 때, 숫자를 잘못 읽어 들여 시스템에 오류를 일으킬 수 있는 보안 약점이 발견되었습니다. 이를 방지하기 위해 숫자를 더 엄격하고 안전하게 검사하도록 코드를 수정했습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack_sip: don't use simple_strtoul Replace unsafe port parsing in epaddr_len(), ct_sip_parse_header_uri(), and ct_sip_parse_request() with a new sip_parse_port() helper that validates each digit against the buffer limit, eliminating the use of simple_strtoul() which assumes NUL-terminated strings. The previous code dereferenced pointers without bounds checks after sip_parse_addr() and relied on simple_strtoul() on non-NUL-terminated skb data. A port that reaches the buffer limit without a trailing character is also rejected as malformed. Also get rid of all simple_strtoul() usage in conntrack, prefer a stricter version instead. There are intentional changes: - Bail out if number is > UINT_MAX and indicate a failure, same for too long sequences. While we do accept 05535 as port 5535, we will not accept e.g. 'sip:10.0.0.1:005060'. While its syntactically valid under RFC 3261, we should restrict this to not waste cycles when presented with malformed packets with 64k '0' characters. - Force base 10 in ct_sip_parse_numerical_param(). This is used to fetch 'expire=' and 'rports='; both are expected to use base-10. - In nf_nat_sip.c, only accept the parsed value if its within the 1k-64k range. - epaddr_len now returns 0 if the port is invalid, as it already does for invalid ip addresses. This is intentional. nf_conntrack_sip performs lots of guesswork to find the right parts of the message to parse. Being stricter could break existing setups. Connection tracking helpers are designed to allow traffic to pass, not to block it. Based on an earlier patch from Jenny Guanni Qu <[email protected]>.

📍 영향받는 시스템

Linux Kernel (netfilter: nf_conntrack_sip 모듈 사용 시스템)

⚔️ 공격 벡터

조작된 SIP 패킷을 전송하여 커널의 포트 파싱 로직을 악용

🛡️ 대응 방법

SIP 관련 포트 파싱 로직이 수정된 최신 Linux 커널 버전으로 업데이트

🔧 검증 코드

출력된 커널 버전이 해당 취약점이 패치된 보안 업데이트 버전인지 확인

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel