CVE-2026-31646
JSON

5.5medium

net: lan966x: fix page_pool error handling in lan966x_fdma_rx_alloc_page_pool()

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.13% (higher than 2% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: lan966x: fix page_pool error handling in lan966x_fdma_rx_alloc_page_pool() page_pool_create() can return an ERR_PTR on failure. The return value is used unconditionally in the loop that follows, passing the error pointer through xdp_rxq_info_reg_mem_model() into page_pool_use_xdp_mem(), which dereferences it, causing a kernel oops. Add an IS_ERR check after page_pool_create() to return early on failure.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 11871aba19748b3387e83a2db6360aa7119e9a1a before e63265f188ea39dcf5f546770650027528f3bd0f, from 11871aba19748b3387e83a2db6360aa7119e9a1a before 305832c53551cfbe6e5b81ca7ee765e60f4fe8e9, from 11871aba19748b3387e83a2db6360aa7119e9a1a before b5dcb41ba891b55157006cac79825c78a32b409e, from 11871aba19748b3387e83a2db6360aa7119e9a1a before 7caf90d9ab97951a58d1de85ab7e7d7cca7a4513, from 11871aba19748b3387e83a2db6360aa7119e9a1a before 3fd0da4fd8851a7e62d009b7db6c4a05b092bc19, 6.2
Not affected: before 6.2, from 6.6.135 up to 6.6.*, from 6.12.82 up to 6.12.*, from 6.18.23 up to 6.18.*, from 6.19.13 up to 6.19.*, from 7.0 up to *
CVE List
linux linux_kernelfrom 6.2.1 before 6.6.135, from 6.7 before 6.12.82, from 6.13 before 6.18.23, from 6.19 before 6.19.13, 6.2, 7.0NVD

Classification

What each source says

CVE List

In the Linux kernel, the following vulnerability has been resolved: net: lan966x: fix page_pool error handling in lan966x_fdma_rx_alloc_page_pool() page_pool_create() can return an ERR_PTR on failure. The return value is used unconditionally in the loop that follows, passing the error pointer through xdp_rxq_info_reg_mem_model() into page_pool_use_xdp_mem(), which dereferences it, causing a kernel oops. Add an IS_ERR check after page_pool_create() to return early on failure.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: lan966x: corregir el manejo de errores de page_pool en lan966x_fdma_rx_alloc_page_pool() page_pool_create() puede devolver un ERR_PTR en caso de fallo. El valor de retorno se usa incondicionalmente en el bucle que sigue, pasando el puntero de error a través de xdp_rxq_info_reg_mem_model() a page_pool_use_xdp_mem(), que lo desreferencia, causando un kernel oops. Añadir una comprobación IS_ERR después de page_pool_create() para retornar anticipadamente en caso de fallo.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-31646 changed 2026-05-11CVE Terms of Use
NVDCVE-2026-31646 changed 2026-11-11Public domain