CVE-2025-39858
JSON

5.5medium

eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring

Severity
5.5medium CVSS:3.1 by CISA-ADP
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: eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring Replace NULL check with IS_ERR() check after calling page_pool_create() since this function returns error pointers (ERR_PTR). Using NULL check could lead to invalid pointer dereference.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 8533b14b3d65ee666ba31254787c1bdaee56d95a before 7b77d8841a98a9f45c8a615222c698df8dec581c, from 8533b14b3d65ee666ba31254787c1bdaee56d95a before e580beaf43d563aaf457f1c7f934002355ebfe7b, 6.15
Not affected: before 6.15, from 6.16.6 up to 6.16.*, from 6.17 up to *
CVE List
linux linux_kernelfrom 6.15 before 6.16.6, 6.17NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-476

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: eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring Replace NULL check with IS_ERR() check after calling page_pool_create() since this function returns error pointers (ERR_PTR). Using NULL check could lead to invalid pointer dereference.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: eth: mlx4: Solución del error de comprobación IS_ERR() vs NULL en mlx4_en_create_rx_ring Reemplazar la comprobación de NULL con la comprobación IS_ERR() después de llamar a page_pool_create() ya que esta función devuelve punteros de error (ERR_PTR). Usar la comprobación de NULL podría llevar a una desreferencia de puntero inválida.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-39858 changed 2026-05-11CVE Terms of Use
NVDCVE-2025-39858 changed 2026-10-19Public domain