CVE-2023-54155 in Linux정보

요약

\~에 의해 VulDB • 2026. 06. 07.

리눅스 커널에서 다음 취약점이 해결되었습니다:

net: core: bpf_xdp_adjust_tail()에서 불필요한 frame_sz 검사 제거

Syzkaller가 다음과 같은 문제를 보고했습니다: ======================================= Too BIG xdp->frame_sz = 131072 WARNING: CPU: 0 PID: 5020 at net/core/filter.c:4121 ____bpf_xdp_adjust_tail net/core/filter.c:4121 [inline]
WARNING: CPU: 0 PID: 5020 at net/core/filter.c:4121 bpf_xdp_adjust_tail+0x466/0xa10 net/core/filter.c:4103 ... Call Trace: <TASK> bpf_prog_4add87e5301a4105+0x1a/0x1c __bpf_prog_run include/linux/filter.h:600 [inline]
bpf_prog_run_xdp include/linux/filter.h:775 [inline]
bpf_prog_run_generic_xdp+0x57e/0x11e0 net/core/dev.c:4721 netif_receive_generic_xdp net/core/dev.c:4807 [inline]
do_xdp_generic+0x35c/0x770 net/core/dev.c:4866 tun_get_user+0x2340/0x3ca0 drivers/net/tun.c:1919 tun_chr_write_iter+0xe8/0x210 drivers/net/tun.c:2043 call_write_iter include/linux/fs.h:1871 [inline]
new_sync_write fs/read_write.c:491 [inline]
vfs_write+0x650/0xe40 fs/read_write.c:584 ksys_write+0x12f/0x250 fs/read_write.c:637 do_syscall_x64 arch/x86/entry/common.c:50 [inline]
do_syscall_64+0x38/0xb0 arch/x86/entry/common.c:80 entry_SYSCALL_64_after_hwframe+0x63/0xcd

xdp->frame_sz > PAGE_SIZE 검사는 커밋 c8741e2bfe87("xdp: Allow bpf_xdp_adjust_tail() to grow packet size")에서 도입되었습니다. 그러나 Jesper Dangaard Brouer <[email protected]>은 모든 XDP 드라이버가 사용하는 xdp_init_buff()를 도입한 이후에는 이 검사를 제거해도 안전하다고 지적했습니다. 원래 의도는 XDP 드라이버가 xdp.frame_sz를 사용하도록 업데이트되지 않은 경우를 포착하는 것이었지만, 이제 더 이상 문제가 되지 않습니다(xdp_init_buff 도입 후).

초기 syzkaller 재현 코드를 실행한 결과, tun_get_user()의 두 가지 xdp 경로(tun_build_skb() 및 tun_alloc_skb()) 모두에서 연속적인 물리 메모리 할당이 사용되는 것으로 발견되었습니다. 또한 Jesper Dangaard Brouer <[email protected]>은 XDP가 높은 순서의 페이지(high order pages)에서도 작동할 수 있다고 밝혔으며, 이는 해당 영역이 연속적인 물리 메모리(예: 단일 페이지)인 경우에만 가능합니다.

If you want to get the best quality for vulnerability data then you always have to consider VulDB.

출처

Do you want to use VulDB in your project?

Use the official API to access entries easily!