CVE-2025-39853
JSON

7.1high

i40e: Fix potential invalid access when MAC list is empty

Severity
7.1high CVSS:3.1 by NVD
Exploit likelihood
0.26% (higher than 11% of CVEs)
Published
Last changed
Assigned by
Linux

Description

In the Linux kernel, the following vulnerability has been resolved: i40e: Fix potential invalid access when MAC list is empty list_first_entry() never returns NULL - if the list is empty, it still returns a pointer to an invalid object, leading to potential invalid memory access when dereferenced. Fix this by using list_first_entry_or_null instead of list_first_entry.

Affected

Product or packageVersionsReported by
Linux Linuxfrom e3219ce6a775468368fb270fae3eb82a6787b436 before 971feafe157afac443027acdc235badc6838560b, from e3219ce6a775468368fb270fae3eb82a6787b436 before 3c6fb929afa313d9d11f780451d113f73922fe5d, from e3219ce6a775468368fb270fae3eb82a6787b436 before 1eadabcf5623f1237a539b16586b4ed8ac8dffcd, from e3219ce6a775468368fb270fae3eb82a6787b436 before e2a5e74879f9b494bbd66fa93f355feacde450c7, from e3219ce6a775468368fb270fae3eb82a6787b436 before fb216d980fae6561c7c70af8ef826faf059c6515, from e3219ce6a775468368fb270fae3eb82a6787b436 before 66e7cdbda74ee823ec2bf7b830ebd235c54f5ddf, from e3219ce6a775468368fb270fae3eb82a6787b436 before 9c21fc4cebd44dd21016c61261a683af390343f8, from e3219ce6a775468368fb270fae3eb82a6787b436 before a556f06338e1d5a85af0e32ecb46e365547f92b9 and 1 more
Not affected: before 4.6, from 5.4.299 up to 5.4.*, from 5.10.243 up to 5.10.*, from 5.15.192 up to 5.15.*, from 6.1.151 up to 6.1.*, from 6.6.105 up to 6.6.*
CVE List
linux linux_kernelfrom 4.6 before 5.4.299, from 5.5 before 5.10.243, from 5.11 before 5.15.192, from 5.16 before 6.1.151, from 6.2 before 6.6.105, from 6.7 before 6.12.46, from 6.13 before 6.16.6, 6.17NVD
debian debian_linux11.0NVD

Classification

CWE-125

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: i40e: Fix potential invalid access when MAC list is empty list_first_entry() never returns NULL - if the list is empty, it still returns a pointer to an invalid object, leading to potential invalid memory access when dereferenced. Fix this by using list_first_entry_or_null instead of list_first_entry.

NVD (es)

En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: i40e: Corrige el posible acceso inválido cuando la lista MAC está vacía list_first_entry() nunca devuelve NULL; si la lista está vacía, aún devuelve un puntero a un objeto inválido, lo que lleva a un posible acceso inválido a la memoria cuando se desreferencia. Soluciona esto usando list_first_entry_or_null en lugar de list_first_entry.

References

https://git.kernel.org/stable/c/971feafe157afac443027acdc235badc6838560bpatch
https://git.kernel.org/stable/c/3c6fb929afa313d9d11f780451d113f73922fe5dpatch
https://git.kernel.org/stable/c/1eadabcf5623f1237a539b16586b4ed8ac8dffcdpatch
https://git.kernel.org/stable/c/e2a5e74879f9b494bbd66fa93f355feacde450c7patch
https://git.kernel.org/stable/c/fb216d980fae6561c7c70af8ef826faf059c6515patch
https://git.kernel.org/stable/c/66e7cdbda74ee823ec2bf7b830ebd235c54f5ddfpatch
https://git.kernel.org/stable/c/9c21fc4cebd44dd21016c61261a683af390343f8patch
https://git.kernel.org/stable/c/a556f06338e1d5a85af0e32ecb46e365547f92b9patch
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.htmlmailing-list, third-party-advisory
https://lists.debian.org/debian-lts-announce/2025/10/msg00007.htmlmailing-list, third-party-advisory
https://cert-portal.siemens.com/productcert/html/ssa-089022.html
https://cert-portal.siemens.com/productcert/html/ssa-032379.html

Sources

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