Skip to main content
← All vulnerabilities
CVE-2026-23019

net: marvell: prestera: fix NULL dereference on devlink_alloc() failure

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 5.15.198, 6.1.161, 6.6.121, 6.12.66, 6.18.6
None on Exploit-DB, Metasploit or GitHub

Summary

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.

Timeline

  1. CVE published
  2. Record last updated

Affected versions

  • Linux Linux

    From 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 · fixed in 8a4333b2818f0d853b43e139936c20659366e4a0; From 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 · fixed in 325aea74be7e192b5c947c782da23b0d19a5fda2; From 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 · fixed in 94e070cd50790317fba7787ae6006934b7edcb6f; From 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 · fixed in 3950054c9512add0cc79ab7e72b6d2f9f675e25b; From 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 · fixed in 326a4b7e61d01db3507f71c8bb5e85362f607064; From 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25 · fixed in a428e0da1248c353557970848994f35fd3f005e2

  • Linux Linux

    5.10

  • KernelLinux

    From 5.10.0 · fixed in 5.15.198; From 5.16.0 · fixed in 6.1.161; From 6.2.0 · fixed in 6.6.121; From 6.7.0 · fixed in 6.12.66; From 6.13.0 · fixed in 6.18.6

References 6

git.kernel.org