Skip to content
Heist/ feed
Back to feed
UnratedFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.198, 6.1.161, 6.12.66, 6.18.6, 6.6.121
CVEs
CVE-2026-23019
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:19 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 31 Jan 2026, 11:39 UTC

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.

osv:CVE-2026-23019

Kernel

Fixed versions: 5.15.198, 6.1.161, 6.6.121, 6.12.66, 6.18.6

Complete source record
{
  "id": "990707747aa3741aff6492ac233319222b3c58ab464fff91223cd1b08fad0d87",
  "url": "https://osv.dev/vulnerability/CVE-2026-23019",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: marvell: prestera: fix NULL dereference on devlink_alloc() failure",
    "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.",
    "evidence": "osv:CVE-2026-23019",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.198",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.161",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.121",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.66",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2026-23019",
      "aliases": [
        "CVE-2026-23019"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "34dd1710f5a3c9a7dc78e1ff6de69a19d407db25"
                },
                {
                  "fixed": "8a4333b2818f0d853b43e139936c20659366e4a0"
                },
                {
                  "fixed": "325aea74be7e192b5c947c782da23b0d19a5fda2"
                },
                {
                  "fixed": "94e070cd50790317fba7787ae6006934b7edcb6f"
                },
                {
                  "fixed": "3950054c9512add0cc79ab7e72b6d2f9f675e25b"
                },
                {
                  "fixed": "326a4b7e61d01db3507f71c8bb5e85362f607064"
                },
                {
                  "fixed": "a428e0da1248c353557970848994f35fd3f005e2"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23019.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.10.0"
                },
                {
                  "fixed": "5.15.198"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.161"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.121"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.66"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-23019.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:37.026642157Z",
      "provider": "osv",
      "references": [
        "https://cert-portal.siemens.com/productcert/html/ssa-019113.html",
        "https://cert-portal.siemens.com/productcert/html/ssa-457936.html",
        "https://git.kernel.org/stable/c/325aea74be7e192b5c947c782da23b0d19a5fda2",
        "https://git.kernel.org/stable/c/326a4b7e61d01db3507f71c8bb5e85362f607064",
        "https://git.kernel.org/stable/c/3950054c9512add0cc79ab7e72b6d2f9f675e25b",
        "https://git.kernel.org/stable/c/8a4333b2818f0d853b43e139936c20659366e4a0",
        "https://git.kernel.org/stable/c/94e070cd50790317fba7787ae6006934b7edcb6f",
        "https://git.kernel.org/stable/c/a428e0da1248c353557970848994f35fd3f005e2",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23019.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-23019",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/23xxx/CVE-2026-23019.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-23019",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 504048,
  "published_at": "2026-01-31T11:39:03.179+00:00"
}