CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
暂无评分
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
net: core: remove unnecessary frame_sz check in bpf_xdp_adjust_tail()
Syzkaller reported the following issue:
=======================================Too BIG xdp->frame_sz = 131072
WARNING: CPU: 0 PID: 5020 at net/core/filter.c:4121____bpf_xdp_adjust_tailnet/core/filter.c:4121[inline]WARNING: CPU: 0 PID: 5020 at net/core/filter.c:4121bpf_xdp_adjust_tail+0x466/0xa10net/core/filter.c:4103...
Call Trace:<TASK>bpf_prog_4add87e5301a4105+0x1a/0x1c__bpf_prog_runinclude/linux/filter.h:600[inline]bpf_prog_run_xdpinclude/linux/filter.h:775[inline]bpf_prog_run_generic_xdp+0x57e/0x11e0net/core/dev.c:4721netif_receive_generic_xdpnet/core/dev.c:4807[inline]do_xdp_generic+0x35c/0x770net/core/dev.c:4866tun_get_user+0x2340/0x3ca0drivers/net/tun.c:1919tun_chr_write_iter+0xe8/0x210drivers/net/tun.c:2043call_write_iterinclude/linux/fs.h:1871[inline]new_sync_writefs/read_write.c:491[inline]vfs_write+0x650/0xe40fs/read_write.c:584ksys_write+0x12f/0x250fs/read_write.c:637do_syscall_x64arch/x86/entry/common.c:50[inline]do_syscall_64+0x38/0xb0arch/x86/entry/common.c:80entry_SYSCALL_64_after_hwframe+0x63/0xcd
xdp->frame_sz > PAGE_SIZE check was introduced in commit c8741e2bfe87
("xdp: Allow bpf_xdp_adjust_tail() to grow packet size"). But Jesper
Dangaard Brouer <[email protected]> noted that after introducing the
xdp_init_buff() which all XDP driver use - it's safe to remove this
check. The original intend was to catch cases where XDP drivers have
not been updated to use xdp.frame_sz, but that is not longer a concern
(since xdp_init_buff).
Running the initial syzkaller repro it was discovered that the
contiguous physical memory allocation is used for both xdp paths in
tun_get_user(), e.g. tun_build_skb() and tun_alloc_skb(). It was also
stated by Jesper Dangaard Brouer <[email protected]> that XDP can
work on higher order pages, as long as this is contiguous physical
memory (e.g. a page).