NULL pointer dereference in Linux

CVE-2026-23019

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.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.001, 3.2th percentile (scored ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 34dd1710f5a3c9a7dc78e1ff6de69a19d407db25, 5.10, 0
  • Linux Kernel — versions 5.10, 6.19

Weakness classification (CWE)

References