🔍 CVE-2024-35894

7.8
CVSS Score
HIGH
2024-05-19
2026-08-04 11:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 MPTCP 구현에서 BPF가 서브플로우 소켓을 통해 MPTCP 수준의 proto_ops에 접근할 수 있는 취약점이 발견되었습니다. 이로 인해 잘못된 메모리 접근이나 커널 경고가 발생할 수 있습니다.

💡 쉬운 설명

네트워크 연결을 관리하는 시스템의 특정 부분에서 권한이 없는 방식으로 데이터에 접근할 수 있는 허점이 발견되었습니다. 이 허점을 이용하면 시스템의 안정성을 해치거나 예기치 않은 동작을 유발할 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: mptcp: prevent BPF accessing lowat from a subflow socket. Alexei reported the following splat: WARNING: CPU: 32 PID: 3276 at net/mptcp/subflow.c:1430 subflow_data_ready+0x147/0x1c0 Modules linked in: dummy bpf_testmod(O) [last unloaded: bpf_test_no_cfi(O)] CPU: 32 PID: 3276 Comm: test_progs Tainted: GO 6.8.0-12873-g2c43c33bfd23 Call Trace: <TASK> mptcp_set_rcvlowat+0x79/0x1d0 sk_setsockopt+0x6c0/0x1540 __bpf_setsockopt+0x6f/0x90 bpf_sock_ops_setsockopt+0x3c/0x90 bpf_prog_509ce5db2c7f9981_bpf_test_sockopt_int+0xb4/0x11b bpf_prog_dce07e362d941d2b_bpf_test_socket_sockopt+0x12b/0x132 bpf_prog_348c9b5faaf10092_skops_sockopt+0x954/0xe86 __cgroup_bpf_run_filter_sock_ops+0xbc/0x250 tcp_connect+0x879/0x1160 tcp_v6_connect+0x50c/0x870 mptcp_connect+0x129/0x280 __inet_stream_connect+0xce/0x370 inet_stream_connect+0x36/0x50 bpf_trampoline_6442491565+0x49/0xef inet_stream_connect+0x5/0x50 __sys_connect+0x63/0x90 __x64_sys_connect+0x14/0x20 The root cause of the issue is that bpf allows accessing mptcp-level proto_ops from a tcp subflow scope. Fix the issue detecting the problematic call and preventing any action.

📍 영향받는 시스템

Linux Kernel (MPTCP 기능이 활성화된 버전)

⚔️ 공격 벡터

BPF(Berkeley Packet Filter) 프로그램을 사용하여 MPTCP 서브플로우 소켓의 lowat 설정을 조작하는 방식

🛡️ 대응 방법

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:H/A:H

💻 영향받는 소프트웨어

Linux Kernel