5.5medium
ice: change XDP RxQ frag_size from DMA write length to xdp.frame_sz
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 before f2b29bbe355221a65c3eccf9500e5e33e4f1cb5c, from 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 before 6aed180a44b1c0a3971107fa052a41b03acdb31e, from 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 before 2a2927e95cf1b8efb15bcb741bbd06c9bb0537b7, from 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 before b0f05100e8795aadd1c0606bae9caefbda070d63, from 2fba7dc5157b6f85dbf1b8e26e63a724db1f3d79 before e142dc4ef0f451b7ef99d09aaa84e9389af629d7, 6.3 Not affected: before 6.3, from 6.6.160 up to 6.6.*, from 6.12.114 up to 6.12.*, from 6.18.60 up to 6.18.*, from 6.19.7 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.3 before 6.19.7, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ice: cambiar frag_size de XDP RxQ de la longitud de escritura DMA a xdp.frame_sz El único usuario del campo frag_size en la información de XDP RxQ es bpf_xdp_frags_increase_tail(). Claramente espera el tamaño completo del búfer en lugar del tamaño de escritura DMA. Diferentes suposiciones en la configuración del controlador ice llevan a un tailroom negativo. Esto permite activar un pánico del kernel, al usar la prueba xskxceiver XDP_ADJUST_TAIL_GROW_MULTI_BUFF y cambiar el tamaño del paquete a 6912 y el desplazamiento solicitado a un valor enorme, por ejemplo, XSK_UMEM__MAX_FRAME_SIZE * 100. Debido a otras peculiaridades de la configuración ZC en ice, no se observa pánico en modo ZC, pero el crecimiento del tailroom sigue fallando cuando no debería. Usar el tamaño real del búfer de la cola de llenado en lugar del tamaño de escritura DMA en la información de XDP RxQ. Corregir el modo ZC también usando la nueva función auxiliar.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-23377 changed 2026-11-05 | CVE Terms of Use |
| NVD | CVE-2026-23377 changed 2026-11-05 | Public domain |