In the Linux kernel, the following vulnerability has been resolved: net: marvell: prestera: fix NULL dereference on devlink_alloc() failure devlink_alloc() may return NULL on allocation failure, but prestera_devlink_alloc() unconditionally calls devlink_priv() on the returned pointer. This leads to a NULL pointer dereference if devlink allocation fails. Add a check for a NULL devlink pointer and return NULL early to avoid the crash.
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net: marvell: prestera: corregir desreferencia NULL en caso de fallo de devlink_alloc() devlink_alloc() puede devolver NULL en caso de fallo de asignación, pero prestera_devlink_alloc() llama incondicionalmente a devlink_priv() sobre el puntero devuelto. Esto conduce a una desreferencia de puntero NULL si la asignación de devlink falla. Añadir una comprobación para un puntero devlink NULL y devolver NULL anticipadamente para evitar el fallo.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
| Attack Vector | LOCAL |
|---|---|
| Attack Complexity | LOW |
| Privileges Required | LOW |
| User Interaction | NONE |
| Scope | UNCHANGED |
| Confidentiality Impact | NONE |
| Integrity Impact | NONE |
| Availability Impact | HIGH |
| Source | Type | Description |
|---|---|---|
| [email protected] | Primary |
en
CWE-476
|
| Vendor | Product | Version | Update | Type |
|---|---|---|---|---|
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d239fbdd600> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23a5986140> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23a5987a80> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d23beaf5580> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x7d239fbdd900> | Operating System |
| linux | linux_kernel | 5.10 | <built-in method update of dict object at 0x7d239fbdf740> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d23beaf74c0> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d23a5987480> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d23a59857c0> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d239fbdd2c0> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d239fbdc4c0> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d23a5986a40> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d2357ccfb40> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x7d23beaf7ec0> | Operating System |
| Vulnerable | CPE |
|---|---|
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:5.10:-:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc1:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc2:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc3:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc4:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc5:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc6:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc7:*:*:*:*:*:* |
| Yes | cpe:2.3:o:linux:linux_kernel:6.19:rc8:*:*:*:*:*:* |