# CVE-2025-39858: eth: mlx4: Fix IS_ERR() vs NULL check bug in mlx4_en_create_rx_ring

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2025-09-19T15:26:28.985Z
- Modified: 2026-10-19T21:10:00.160Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 6.15 before 6.16.6; 6.17

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/7b77d8841a98a9f45c8a615222c698df8dec581c> (patch)
- <https://git.kernel.org/stable/c/e580beaf43d563aaf457f1c7f934002355ebfe7b> (patch)

## Sources

- CVE List: [CVE-2025-39858](https://www.cve.org/CVERecord?id=CVE-2025-39858), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-39858](https://nvd.nist.gov/vuln/detail/CVE-2025-39858), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-39858 · Whole record: https://cve.day/CVE-2025-39858.json · Rebuilt by cve.day 2026-11-25T22:59:04.869Z
