---
id: CVE-2026-23019
title: |-
  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() uncondition…
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() uncondition…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-476
vendor: linux
product: linux_kernel
affected:
  - 'linux_kernel >= 5.10.1, < 5.15.198'
  - 'linux_kernel >= 5.16, < 6.1.161'
  - 'linux_kernel >= 6.2, < 6.6.121'
  - 'linux_kernel >= 6.7, < 6.12.66'
  - 'linux_kernel >= 6.13, < 6.18.6'
  - linux_kernel = 5.10
  - linux_kernel = 6.19
patched:
  - linux_kernel 6.18.6
published: '2026-01-31'
updated: '2026-10-15'
sourceUpdated: '2026-10-15T02:18:40.073'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-23019'
references:
  - url: 'https://git.kernel.org/stable/c/325aea74be7e192b5c947c782da23b0d19a5fda2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/326a4b7e61d01db3507f71c8bb5e85362f607064'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/3950054c9512add0cc79ab7e72b6d2f9f675e25b'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/8a4333b2818f0d853b43e139936c20659366e4a0'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/94e070cd50790317fba7787ae6006934b7edcb6f'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://git.kernel.org/stable/c/a428e0da1248c353557970848994f35fd3f005e2'
    label: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-019113.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
  - url: 'https://cert-portal.siemens.com/productcert/html/ssa-457936.html'
    label: 0b142b55-0307-4c5a-b3c9-f314f3fb7c5e
tags:
  - nvd
  - cve.org
epss: 0.00137
epssPercentile: 0.03083
ingestedAt: '2026-09-08T15:33:26.994Z'
---

## Overview

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.

## Affected

- `linux_kernel >= 5.10.1, < 5.15.198`
- `linux_kernel >= 5.16, < 6.1.161`
- `linux_kernel >= 6.2, < 6.6.121`
- `linux_kernel >= 6.7, < 6.12.66`
- `linux_kernel >= 6.13, < 6.18.6`
- `linux_kernel = 5.10`
- `linux_kernel = 6.19`

## Remediation

Upgrade past the affected range:

- `linux_kernel 6.18.6`
