CVE-2026-23377: ice: change XDP RxQ frag_size from DMA write length to xdp.frame_sz
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ice: change XDP RxQ frag_size from DMA write length to xdp.frame_sz
The only user of frag_size field in XDP RxQ info is bpf_xdp_frags_increase_tail(). It clearly expects whole buff size instead of DMA write size. Different assumptions in ice driver configuration lead to negative tailroom.
This allows to trigger kernel panic, when using XDP_ADJUST_TAIL_GROW_MULTI_BUFF xskxceiver test and changing packet size to 6912 and the requested offset to a huge value, e.g. XSK_UMEM__MAX_FRAME_SIZE * 100.
Due to other quirks of the ZC configuration in ice, panic is not observed in ZC mode, but tailroom growing still fails when it should not.
Use fill queue buffer truesize instead of DMA write size in XDP RxQ info. Fix ZC mode too by using the new helper.
The Linux kernel CVE team has assigned CVE-2026-23377 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.3 with commit 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 and fixed in 6.19.7 with commit b0f05100e8795aadd1c0606bae9caefbda070d63 Issue introduced in 6.3 with commit 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 and fixed in 7.0-rc3 with commit e142dc4ef0f451b7ef99d09aaa84e9389af629d7
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23377
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/net/ethernet/intel/ice/ice_base.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/b0f05100e8795aadd1c0606bae9caefbda070d63 https://git.kernel.org/stable/c/e142dc4ef0f451b7ef99d09aaa84e9389af629d7