Not scored
net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error
- Severity
- Not scored
- Exploit likelihood
- 0.22% (higher than 14% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error Make knav_dma_open_channel consistently return NULL on error instead of ERR_PTR. Currently the header include/linux/soc/ti/knav_dma.h returns NULL when the driver is disabled, but the driver implementation does not even return NULL or ERR_PTR on failure, causing inconsistency in the users. This results in a crash in netcp_free_navigator_resources as followed (trimmed): Unhandled fault: alignment exception (0x221) at 0xfffffff2 [fffffff2] *pgd=80000800207003, *pmd=82ffda003, *pte=00000000 Internal error: : 221 [#1] SMP ARM Modules linked in: CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc7 #1 NONE Hardware name: Keystone PC is at knav_dma_close_channel+0x30/0x19c LR is at netcp_free_navigator_resources+0x2c/0x28c [... TRIM...] Call trace: knav_dma_close_channel from netcp_free_navigator_resources+0x2c/0x28c netcp_free_navigator_resources from netcp_ndo_open+0x430/0x46c netcp_ndo_open from __dev_open+0x114/0x29c __dev_open from __dev_change_flags+0x190/0x208 __dev_change_flags from netif_change_flags+0x1c/0x58 netif_change_flags from dev_change_flags+0x38/0xa0 dev_change_flags from ip_auto_config+0x2c4/0x11f0 ip_auto_config from do_one_initcall+0x58/0x200 do_one_initcall from kernel_init_freeable+0x1cc/0x238 kernel_init_freeable from kernel_init+0x1c/0x12c kernel_init from ret_from_fork+0x14/0x38 [... TRIM...] Standardize the error handling by making the function return NULL on all error conditions. The API is used in just the netcp_core.c so the impact is limited. Note, this change, in effect reverts commit 5b6cb43b4d62 ("net: ethernet: ti: netcp_core: return error while dma channel open issue"), but provides a less error prone implementation.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from 88139ed030583557751e279968e13e892ae10825 before af6b10a13fc0aee37df4a8292414cc055c263fa3, from 88139ed030583557751e279968e13e892ae10825 before 8427218ecbd7f8559c37972e66cb0fa06e82353b, from 88139ed030583557751e279968e13e892ae10825 before 3afeb909c3e2e0eb19b1e20506196e5f2d9c2259, from 88139ed030583557751e279968e13e892ae10825 before 2572c358ee434ce4b994472cceeb4043cbff5bc5, from 88139ed030583557751e279968e13e892ae10825 before 952637c5b9be64539cd0e13ef88db71a1df46373, from 88139ed030583557751e279968e13e892ae10825 before fbb53727ca789a8d27052aab4b77ca9e2a0fae2b, from 88139ed030583557751e279968e13e892ae10825 before f9608637ecc165d7d6341df105aee44691461fb9, from 88139ed030583557751e279968e13e892ae10825 before 90a88306eb874fe4bbdd860e6c9787f5bbc588b5 and 1 more Not affected: before 3.18, from 5.4.302 up to 5.4.*, from 5.10.247 up to 5.10.*, from 5.15.197 up to 5.15.*, from 6.1.159 up to 6.1.*, from 6.6.118 up to 6.6.* | CVE List |
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net: ethernet: ti: netcp: Standardize knav_dma_open_channel to return NULL on error Make knav_dma_open_channel consistently return NULL on error instead of ERR_PTR. Currently the header include/linux/soc/ti/knav_dma.h returns NULL when the driver is disabled, but the driver implementation does not even return NULL or ERR_PTR on failure, causing inconsistency in the users. This results in a crash in netcp_free_navigator_resources as followed (trimmed): Unhandled fault: alignment exception (0x221) at 0xfffffff2 [fffffff2] *pgd=80000800207003, *pmd=82ffda003, *pte=00000000 Internal error: : 221 [#1] SMP ARM Modules linked in: CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc7 #1 NONE Hardware name: Keystone PC is at knav_dma_close_channel+0x30/0x19c LR is at netcp_free_navigator_resources+0x2c/0x28c [... TRIM...] Call trace: knav_dma_close_channel from netcp_free_navigator_resources+0x2c/0x28c netcp_free_navigator_resources from netcp_ndo_open+0x430/0x46c netcp_ndo_open from __dev_open+0x114/0x29c __dev_open from __dev_change_flags+0x190/0x208 __dev_change_flags from netif_change_flags+0x1c/0x58 netif_change_flags from dev_change_flags+0x38/0xa0 dev_change_flags from ip_auto_config+0x2c4/0x11f0 ip_auto_config from do_one_initcall+0x58/0x200 do_one_initcall from kernel_init_freeable+0x1cc/0x238 kernel_init_freeable from kernel_init+0x1c/0x12c kernel_init from ret_from_fork+0x14/0x38 [... TRIM...] Standardize the error handling by making the function return NULL on all error conditions. The API is used in just the netcp_core.c so the impact is limited. Note, this change, in effect reverts commit 5b6cb43b4d62 ("net: ethernet: ti: netcp_core: return error while dma channel open issue"), but provides a less error prone implementation.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: ethernet: ti: netcp: Estandarizar knav_dma_open_channel para que devuelva NULL en caso de error Hacer que knav_dma_open_channel devuelva NULL de forma consistente en caso de error en lugar de ERR_PTR. Actualmente, el encabezado include/linux/soc/ti/knav_dma.h devuelve NULL cuando el controlador está deshabilitado, pero la implementación del controlador ni siquiera devuelve NULL o ERR_PTR en caso de fallo, causando inconsistencia en los usuarios. Esto resulta en un fallo en netcp_free_navigator_resources como se muestra a continuación (recortado): Unhandled fault: alignment exception (0x221) at 0xfffffff2 [fffffff2] pgd=80000800207003, pmd=82ffda003, pte=00000000 Internal error: : 221 [#1] SMP ARM Modules linked in: CPU: 0 UID: 0 PID: 1 Comm: swapper/0 Not tainted 6.17.0-rc7 #1 NONE Hardware name: Keystone PC is at knav_dma_close_channel+0x30/0x19c LR is at netcp_free_navigator_resources+0x2c/0x28c [... RECORTADO...] Traza de llamada: knav_dma_close_channel desde netcp_free_navigator_resources+0x2c/0x28c netcp_free_navigator_resources desde netcp_ndo_open+0x430/0x46c netcp_ndo_open desde __dev_open+0x114/0x29c __dev_open desde __dev_change_flags+0x190/0x208 __dev_change_flags desde netif_change_flags+0x1c/0x58 netif_change_flags desde dev_change_flags+0x38/0xa0 dev_change_flags desde ip_auto_config+0x2c4/0x11f0 ip_auto_config desde do_one_initcall+0x58/0x200 do_one_initcall desde kernel_init_freeable+0x1cc/0x238 kernel_init_freeable desde kernel_init+0x1c/0x12c kernel_init desde ret_from_fork+0x14/0x38 [... RECORTADO...] Estandarizar el manejo de errores haciendo que la función devuelva NULL en todas las condiciones de error. La API se utiliza solo en netcp_core.c, por lo que el impacto es limitado. Tenga en cuenta que este cambio, en efecto, revierte el commit 5b6cb43b4d62 ('net: ethernet: ti: netcp_core: return error while dma channel open issue'), pero proporciona una implementación menos propensa a errores.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-68220 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2025-68220 changed 2026-10-14 | Public domain |