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 0x702bdc373080> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bfc130f40> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bfc369480> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bfc36a540> | Operating System |
| linux | linux_kernel | * | <built-in method update of dict object at 0x702bfc130e40> | Operating System |
| linux | linux_kernel | 5.10 | <built-in method update of dict object at 0x702bfc132580> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bdc373940> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bcbcf3080> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bdc373040> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bfc1327c0> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bfc4c1d80> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bcc124c80> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bdc373ac0> | Operating System |
| linux | linux_kernel | 6.19 | <built-in method update of dict object at 0x702bfc133280> | 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:*:*:*:*:*:* |