{"id":"CVE-2026-43465","aliases":["CVE-2026-43465"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5e: RX, Fix XDP multi-buf frag counting for striding RQ","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: RX, Fix XDP multi-buf frag counting for striding RQ\n\nXDP multi-buf programs can modify the layout of the XDP buffer when the\nprogram calls bpf_xdp_pull_data() or bpf_xdp_adjust_tail(). The\nreferenced commit in the fixes tag corrected the assumption in the mlx5\ndriver that the XDP buffer layout doesn't change during a program\nexecution. However, this fix introduced another issue: the dropped\nfragments still need to be counted on the driver side to avoid page\nfragment reference counting issues.\n\nThe issue was discovered by the drivers/net/xdp.py selftest,\nmore specifically the test_xdp_native_tx_mb:\n- The mlx5 driver allocates a page_pool page and initializes it with\n  a frag counter of 64 (pp_ref_count=64) and the internal frag counter\n  to 0.\n- The test sends one packet with no payload.\n- On RX (mlx5e_skb_from_cqe_mpwrq_nonlinear()), mlx5 configures the XDP\n  buffer with the packet data starting in the first fragment which is the\n  page mentioned above.\n- The XDP program runs and calls bpf_xdp_pull_data() which moves the\n  header into the linear part of the XDP buffer. As the packet doesn't\n  contain more data, the program drops the tail fragment since it no\n  longer contains any payload (pp_ref_count=63).\n- mlx5 device skips counting this fragment. Internal frag counter\n  remains 0.\n- mlx5 releases all 64 fragments of the page but page pp_ref_count is\n  63 => negative reference counting error.\n\nResulting splat during the test:\n\n  WARNING: CPU: 0 PID: 188225 at ./include/net/page_pool/helpers.h:297 mlx5e_page_release_fragmented.isra.0+0xbd/0xe0 [mlx5_core]\n  Modules linked in: [...]\n  CPU: 0 UID: 0 PID: 188225 Comm: ip Not tainted 6.18.0-rc7_for_upstream_min_debug_2025_12_08_11_44 #1 NONE\n  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014\n  RIP: 0010:mlx5e_page_release_fragmented.isra.0+0xbd/0xe0 [mlx5_core]\n  [...]\n  Call Trace:\n   <TASK>\n   mlx5e_free_rx_mpwqe+0x20a/0x250 [mlx5_core]\n   mlx5e_dealloc_rx_mpwqe+0x37/0xb0 [mlx5_core]\n   mlx5e_free_rx_descs+0x11a/0x170 [mlx5_core]\n   mlx5e_close_rq+0x78/0xa0 [mlx5_core]\n   mlx5e_close_queues+0x46/0x2a0 [mlx5_core]\n   mlx5e_close_channel+0x24/0x90 [mlx5_core]\n   mlx5e_close_channels+0x5d/0xf0 [mlx5_core]\n   mlx5e_safe_switch_params+0x2ec/0x380 [mlx5_core]\n   mlx5e_change_mtu+0x11d/0x490 [mlx5_core]\n   mlx5e_change_nic_mtu+0x19/0x30 [mlx5_core]\n   netif_set_mtu_ext+0xfc/0x240\n   do_setlink.isra.0+0x226/0x1100\n   rtnl_newlink+0x7a9/0xba0\n   rtnetlink_rcv_msg+0x220/0x3c0\n   netlink_rcv_skb+0x4b/0xf0\n   netlink_unicast+0x255/0x380\n   netlink_sendmsg+0x1f3/0x420\n   __sock_sendmsg+0x38/0x60\n   ____sys_sendmsg+0x1e8/0x240\n   ___sys_sendmsg+0x7c/0xb0\n   [...]\n   __sys_sendmsg+0x5f/0xb0\n   do_syscall_64+0x55/0xc70\n\nThe problem applies for XDP_PASS as well which is handled in a different\ncode path in the driver.\n\nThis patch fixes the issue by doing page frag counting on all the\noriginal XDP buffer fragments for all relevant XDP actions (XDP_TX ,\nXDP_REDIRECT and XDP_PASS). This is basically reverting to the original\ncounting before the commit in the fixes tag.\n\nAs frag_page is still pointing to the original tail, the nr_frags\nparameter to xdp_update_skb_frags_info() needs to be calculated\nin a different way to reflect the new nr_frags.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: RX, Fix XDP multi-buf frag counting for striding RQ\n\nXDP multi-buf programs can modify the layout of the XDP buffer when the\nprogram calls bpf_xdp_pull_data() or bpf_xdp_adjust_tail(). The\nreferenced commit in the fixes tag corrected the assumption in the mlx5\ndriver that the XDP buffer layout doesn't change during a program\nexecution. However, this fix introduced another issue: the dropped\nfragments still need to be counted on the driver side to avoid page\nfragment reference counting issues.\n\nThe issue was discovered by the drivers/net/xdp.py selftest,\nmore specifically the test_xdp_native_tx_mb:\n- The mlx5 driver allocates a page_pool page and initializes it with\n  a frag counter of 64 (pp_ref_count=64) and the internal frag counter\n  to 0.\n- The test sends one packet with no payload.\n- On RX (mlx5e_skb_from_cqe_mpwrq_nonlinear()), mlx5 configures the XDP\n  buffer with the packet data starting in the first fragment which is the\n  page mentioned above.\n- The XDP program runs and calls bpf_xdp_pull_data() which moves the\n  header into the linear part of the XDP buffer. As the packet doesn't\n  contain more data, the program drops the tail fragment since it no\n  longer contains any payload (pp_ref_count=63).\n- mlx5 device skips counting this fragment. Internal frag counter\n  remains 0.\n- mlx5 releases all 64 fragments of the page but page pp_ref_count is\n  63 => negative reference counting error.\n\nResulting splat during the test:\n\n  WARNING: CPU: 0 PID: 188225 at ./include/net/page_pool/helpers.h:297 mlx5e_page_release_fragmented.isra.0+0xbd/0xe0 [mlx5_core]\n  Modules linked in: [...]\n  CPU: 0 UID: 0 PID: 188225 Comm: ip Not tainted 6.18.0-rc7_for_upstream_min_debug_2025_12_08_11_44 #1 NONE\n  Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014\n  RIP: 0010:mlx5e_page_release_fragmented.isra.0+0xbd/0xe0 [mlx5_core]\n  [...]\n  Call Trace:\n   <TASK>\n   mlx5e_free_rx_mpwqe+0x20a/0x250 [mlx5_core]\n   mlx5e_dealloc_rx_mpwqe+0x37/0xb0 [mlx5_core]\n   mlx5e_free_rx_descs+0x11a/0x170 [mlx5_core]\n   mlx5e_close_rq+0x78/0xa0 [mlx5_core]\n   mlx5e_close_queues+0x46/0x2a0 [mlx5_core]\n   mlx5e_close_channel+0x24/0x90 [mlx5_core]\n   mlx5e_close_channels+0x5d/0xf0 [mlx5_core]\n   mlx5e_safe_switch_params+0x2ec/0x380 [mlx5_core]\n   mlx5e_change_mtu+0x11d/0x490 [mlx5_core]\n   mlx5e_change_nic_mtu+0x19/0x30 [mlx5_core]\n   netif_set_mtu_ext+0xfc/0x240\n   do_setlink.isra.0+0x226/0x1100\n   rtnl_newlink+0x7a9/0xba0\n   rtnetlink_rcv_msg+0x220/0x3c0\n   netlink_rcv_skb+0x4b/0xf0\n   netlink_unicast+0x255/0x380\n   netlink_sendmsg+0x1f3/0x420\n   __sock_sendmsg+0x38/0x60\n   ____sys_sendmsg+0x1e8/0x240\n   ___sys_sendmsg+0x7c/0xb0\n   [...]\n   __sys_sendmsg+0x5f/0xb0\n   do_syscall_64+0x55/0xc70\n\nThe problem applies for XDP_PASS as well which is handled in a different\ncode path in the driver.\n\nThis patch fixes the issue by doing page frag counting on all the\noriginal XDP buffer fragments for all relevant XDP actions (XDP_TX ,\nXDP_REDIRECT and XDP_PASS). This is basically reverting to the original\ncounting before the commit in the fixes tag.\n\nAs frag_page is still pointing to the original tail, the nr_frags\nparameter to xdp_update_skb_frags_info() needs to be calculated\nin a different way to reflect the new nr_frags.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/mlx5e: RX, Corrección del conteo de fragmentos multi-buffer XDP para RQ con zancadas\n\nLos programas XDP multi-buffer pueden modificar la disposición del búfer XDP cuando el programa llama a bpf_xdp_pull_data() o bpf_xdp_adjust_tail(). El commit referenciado en la etiqueta de correcciones corrigió la suposición en el controlador mlx5 de que la disposición del búfer XDP no cambia durante la ejecución de un programa. Sin embargo, esta corrección introdujo otro problema: los fragmentos descartados aún deben contarse en el lado del controlador para evitar problemas de conteo de referencias de fragmentos de página.\n\nEl problema fue descubierto por la autoprueba drivers/net/xdp.py, más específicamente la test_xdp_native_tx_mb:\n- El controlador mlx5 asigna una página de page_pool y la inicializa con un contador de fragmentos de 64 (pp_ref_count=64) y el contador de fragmentos interno a 0.\n- La prueba envía un paquete sin carga útil.\n- En RX (mlx5e_skb_from_cqe_mpwrq_nonlinear()), mlx5 configura el búfer XDP con los datos del paquete comenzando en el primer fragmento, que es la página mencionada anteriormente.\n- El programa XDP se ejecuta y llama a bpf_xdp_pull_data() que mueve la cabecera a la parte lineal del búfer XDP. Como el paquete no contiene más datos, el programa descarta el fragmento de cola ya que ya no contiene ninguna carga útil (pp_ref_count=63).\n- El dispositivo mlx5 omite el conteo de este fragmento. El contador de fragmentos interno permanece en 0.\n- mlx5 libera los 64 fragmentos de la página, pero el pp_ref_count de la página es 63 => error de conteo de referencias negativo.\n\nSplat resultante durante la prueba:\n\nADVERTENCIA: CPU: 0 PID: 188225 en ./include/net/page_pool/helpers.h:297 mlx5e_page_release_fragmented.isra.0+0xbd/0xe0 [mlx5_core]\nMódulos enlazados: [...]\nCPU: 0 UID: 0 PID: 188225 Comm: ip No contaminado 6.18.0-rc7_for_upstream_min_debug_2025_12_08_11_44 #1 NINGUNO\nNombre del hardware: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014\nRIP: 0010:mlx5e_page_release_fragmented.isra.0+0xbd/0xe0 [mlx5_core]\n[...]\nRastro de llamada:\n[TAREA]\nmlx5e_free_rx_mpwqe+0x20a/0x250 [mlx5_core]\nmlx5e_dealloc_rx_mpwqe+0x37/0xb0 [mlx5_core]\nmlx5e_free_rx_descs+0x11a/0x170 [mlx5_core]\nmlx5e_close_rq+0x78/0xa0 [mlx5_core]\nmlx5e_close_queues+0x46/0x2a0 [mlx5_core]\nmlx5e_close_channel+0x24/0x90 [mlx5_core]\nmlx5e_close_channels+0x5d/0xf0 [mlx5_core]\nmlx5e_safe_switch_params+0x2ec/0x380 [mlx5_core]\nmlx5e_change_mtu+0x11d/0x490 [mlx5_core]\nmlx5e_change_nic_mtu+0x19/0x30 [mlx5_core]\nnetif_set_mtu_ext+0xfc/0x240\ndo_setlink.isra.0+0x226/0x 1100\nrtnl_newlink+0x7a9/0xba0\nrtnetlink_rcv_msg+0x220/0x3c0\nnetlink_rcv_skb+0x4b/0xf0\nnetlink_unicast+0x255/0x380\nnetlink_sendmsg+0x1f3/0x420\n__sock_sendmsg+0x38/0x60\n____sys_sendmsg+0x1e8/0x240\n___sys_sendmsg+0x7c/0xb0\n[...]\n__sys_sendmsg+0x5f/0xb0\ndo_syscall_64+0x55/0xc70\n\nEl problema también se aplica a XDP_PASS, que se maneja en una ruta de código diferente en el controlador.\n\nEste parche corrige el problema realizando el conteo de fragmentos de página en todos los fragmentos originales del búfer XDP para todas las acciones XDP relevantes (XDP_TX, XDP_REDIRECT y XDP_PASS). Esto es básicamente revertir al conteo original antes del commit en la etiqueta de correcciones.\n\nComo frag_page sigue apuntando a la cola original, el parámetro nr_frags para xdp_update_skb_frags_info() debe calcularse de una manera diferente para reflejar el nuevo nr_frags.","source":"nvd"}],"published":"2026-05-08T14:22:26.822Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"8b051d7f530e8a5237da242fbeafef02fec6b813","fixed":"6451ea47d60a8ca3524dfe370c013cd01063c7d3","status":"affected"},{"type":"git","introduced":"cb9edd583e23979ee546981be963ad5f217e8b18","fixed":"f0a850677a7b7589208ce11480e6958f516c8386","status":"affected"},{"type":"git","introduced":"87bcef158ac1faca1bd7e0104588e8e2956d10be","fixed":"7d7342a18fadcdb70a63b3c930dc63528ce51832","status":"affected"},{"type":"git","introduced":"87bcef158ac1faca1bd7e0104588e8e2956d10be","fixed":"043bd62f748bc9fd98154037aa598cffbd3c667c","status":"affected"},{"type":"git","introduced":"87bcef158ac1faca1bd7e0104588e8e2956d10be","fixed":"db25c42c2e1f9c0d136420fff5e5700f7e771a6f","status":"affected"},{"type":"git","version":"f2557d7fa38e9475b38588f5c124476091480f53","status":"affected"},{"type":"semver","introduced":"6.6.115","fixed":"6.6.160","status":"affected"},{"type":"semver","introduced":"6.12.56","fixed":"6.12.114","status":"affected"},{"type":"semver","introduced":"6.17.6","fixed":"6.18","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.114","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.19","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.9","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.6.115","fixed":"6.7"},{"status":"affected","introduced":"6.12.56","fixed":"6.13"},{"status":"affected","introduced":"6.17.6","fixed":"6.18"},{"status":"affected","introduced":"6.18.1","fixed":"6.18.19"},{"status":"affected","introduced":"6.19","fixed":"6.19.9"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"6.18"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/6451ea47d60a8ca3524dfe370c013cd01063c7d3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f0a850677a7b7589208ce11480e6958f516c8386","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d7342a18fadcdb70a63b3c930dc63528ce51832","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/043bd62f748bc9fd98154037aa598cffbd3c667c","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/db25c42c2e1f9c0d136420fff5e5700f7e771a6f","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43465","url":"https://www.cve.org/CVERecord?id=CVE-2026-43465","licence":"CVE Terms of Use","modified":"2026-10-21T12:40:50.278Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43465","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43465","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:21.083Z","epss":{"score":0.00537,"percentile":0.46678,"date":"2026-12-01T12:00:22.000Z"}}