Medium · published January 31, 2026
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.
| Product | Versions | Fixed in |
|---|---|---|
| linux/linux_kernel | ≥ 5.10.1, < 5.15.198 | 5.15.198 |
| linux/linux_kernel | ≥ 5.16, < 6.1.161 | 6.1.161 |
| linux/linux_kernel | ≥ 6.2, < 6.6.121 | 6.6.121 |
| linux/linux_kernel | ≥ 6.7, < 6.12.66 | 6.12.66 |
| linux/linux_kernel | ≥ 6.13, < 6.18.6 | 6.18.6 |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |
| linux/linux_kernel | all versions | — |