🔍 CVE-2026-23140

5.5
CVSS Score
MEDIUM
2026-02-14
2026-11-05 22:18
✅ 완료

🇰🇷 한글 설명

Linux 커널의 BPF test_run 기능에서 xdp_frame 구조체 크기를 고려하지 않아 사용자 공간이 헤드룸 전체를 차지하는 과도한 메타데이터 크기를 지정할 수 있었습니다. 이로 인해 초기화되지 않은 프레임 구조체로 패킷 전송이 진행될 수 있으며, 이를 막기 위해 메타데이터 크기 검사를 추가하는 패치가 적용되었습니다.

💡 쉬운 설명

리눅스 커널의 네트워크 패킷 테스트 기능에서 입력값 검사가 부족한 문제입니다. 관리자 권한이 필요한 로컬 사용자가 잘못된 값을 넣어 시스템 동작을 불안정하게 만들 수 있습니다.

🇺🇸 원문 (English)

In the Linux kernel, the following vulnerability has been resolved: bpf, test_run: Subtract size of xdp_frame from allowed metadata size The xdp_frame structure takes up part of the XDP frame headroom, limiting the size of the metadata. However, in bpf_test_run, we don't take this into account, which makes it possible for userspace to supply a metadata size that is too large (taking up the entire headroom). If userspace supplies such a large metadata size in live packet mode, the xdp_update_frame_from_buff() call in xdp_test_run_init_page() call will fail, after which packet transmission proceeds with an uninitialised frame structure, leading to the usual Bad Stuff. The commit in the Fixes tag fixed a related bug where the second check in xdp_update_frame_from_buff() could fail, but did not add any additional constraints on the metadata size. Complete the fix by adding an additional check on the metadata size. Reorder the checks slightly to make the logic clearer and add a comment.

📍 영향받는 시스템

패치가 적용되지 않은 Linux 커널 버전 (BPF test_run 기능 포함 빌드)

⚔️ 공격 벡터

로컬 사용자가 BPF test_run 인터페이스에 지나치게 큰 메타데이터 크기를 전달하여 초기화되지 않은 프레임 구조체를 사용하게 만드는 방식

🛡️ 대응 방법

배포판 제공 보안 업데이트를 통해 커널을 최신 패치 버전으로 업데이트하고 재부팅합니다.

🔧 검증 코드

출력된 커널 버전을 배포판 보안 공지에서 CVE-2026-23140 수정이 포함된 버전과 비교하여, 같거나 더 높은 패치 버전이면 수정된 것입니다.

Shell / Script
uname -r

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Linux Kernel