Skip to content
Heist/ feed
Back to feed
UnratedFix available

net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered Russell King reports that a system with mv88e6xxx dereferences a NULL pointer when unbinding this driver: https://lore.kernel.org/netdev/Z_lRkMlTJ1KQ0kVX@shell.armlinux.org.uk/ The crash seems to be in devlink_region_destroy(), which is not NULL tolerant but is given a NULL devlink global region pointer. At least on some chips, some devlink regions are conditionally registered since the blamed commit, see mv88e6xxx_setup_devlink_regions_global(): if (cond && !cond(chip)) continue; These are MV88E6XXX_REGION_STU and MV88E6XXX_REGION_PVT. If the chip does not have an STU or PVT, it should crash like this. To fix the issue, avoid unregistering those regions which are NULL, i.e. were skipped at mv88e6xxx_setup_devlink_regions_global() time.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.15.181, 6.1.135, 6.12.25, 6.14.4, 6.6.88
CVEs
CVE-2025-37787
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 18:15 UTC · Revision 1

Source evidence

net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered

core-osv · Original source

Published 1 May 2025, 13:07 UTC

In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered Russell King reports that a system with mv88e6xxx dereferences a NULL pointer when unbinding this driver: https://lore.kernel.org/netdev/Z_lRkMlTJ1KQ0kVX@shell.armlinux.org.uk/ The crash seems to be in devlink_region_destroy(), which is not NULL tolerant but is given a NULL devlink global region pointer. At least on some chips, some devlink regions are conditionally registered since the blamed commit, see mv88e6xxx_setup_devlink_regions_global(): if (cond && !cond(chip)) continue; These are MV88E6XXX_REGION_STU and MV88E6XXX_REGION_PVT. If the chip does not have an STU or PVT, it should crash like this. To fix the issue, avoid unregistering those regions which are NULL, i.e. were skipped at mv88e6xxx_setup_devlink_regions_global() time.

osv:CVE-2025-37787

Kernel

Fixed versions: 5.15.181, 6.1.135, 6.6.88, 6.12.25, 6.14.4

Complete source record
{
  "id": "3953424f7fef12454f4bb5a365773be32fb90a85ffeda2a427705b5f78f0f585",
  "url": "https://osv.dev/vulnerability/CVE-2025-37787",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: net: dsa: mv88e6xxx: avoid unregistering devlink regions which were never registered Russell King reports that a system with mv88e6xxx dereferences a NULL pointer when unbinding this driver: https://lore.kernel.org/netdev/Z_lRkMlTJ1KQ0kVX@shell.armlinux.org.uk/ The crash seems to be in devlink_region_destroy(), which is not NULL tolerant but is given a NULL devlink global region pointer. At least on some chips, some devlink regions are conditionally registered since the blamed commit, see mv88e6xxx_setup_devlink_regions_global(): if (cond && !cond(chip)) continue; These are MV88E6XXX_REGION_STU and MV88E6XXX_REGION_PVT. If the chip does not have an STU or PVT, it should crash like this. To fix the issue, avoid unregistering those regions which are NULL, i.e. were skipped at mv88e6xxx_setup_devlink_regions_global() time.",
    "evidence": "osv:CVE-2025-37787",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.15.181",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.135",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.88",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.25",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-37787",
      "aliases": [
        "CVE-2025-37787"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "836021a2d0e0e4c90b895a35bd9c0342071855fb"
                },
                {
                  "fixed": "8ccdf5e24b276848eefb2755e05ff0f005a0c4a1"
                },
                {
                  "fixed": "b3c70dfe51f10df60db2646c08cebd24bcdc5247"
                },
                {
                  "fixed": "bbb80f004f7a90c3dcaacc982c59967457254a05"
                },
                {
                  "fixed": "3665695e3572239dc233216f06b41f40cc771889"
                },
                {
                  "fixed": "5f5e95945bb1e08be7655da6acba648274db457d"
                },
                {
                  "fixed": "c84f6ce918a9e6f4996597cbc62536bbf2247c96"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37787.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.13.0"
                },
                {
                  "fixed": "5.15.181"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.135"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.88"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.25"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.14.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37787.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:31.803964875Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3665695e3572239dc233216f06b41f40cc771889",
        "https://git.kernel.org/stable/c/5f5e95945bb1e08be7655da6acba648274db457d",
        "https://git.kernel.org/stable/c/8ccdf5e24b276848eefb2755e05ff0f005a0c4a1",
        "https://git.kernel.org/stable/c/b3c70dfe51f10df60db2646c08cebd24bcdc5247",
        "https://git.kernel.org/stable/c/bbb80f004f7a90c3dcaacc982c59967457254a05",
        "https://git.kernel.org/stable/c/c84f6ce918a9e6f4996597cbc62536bbf2247c96",
        "https://lists.debian.org/debian-lts-announce/2025/05/msg00045.html",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37787.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-37787",
        "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/2025/37xxx/CVE-2025-37787.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-37787",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 498349,
  "published_at": "2025-05-01T13:07:21.593+00:00"
}