Skip to content
Heist/ feed
Back to feed
HighFix available

driver core: fix potential NULL pointer dereference in dev_uevent()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: driver core: fix potential NULL pointer dereference in dev_uevent() If userspace reads "uevent" device attribute at the same time as another threads unbinds the device from its driver, change to dev->driver from a valid pointer to NULL may result in crash. Fix this by using READ_ONCE() when fetching the pointer, and take bus' drivers klist lock to make sure driver instance will not disappear while we access it. Use WRITE_ONCE() when setting the driver pointer to ensure there is no tearing.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.26, 6.14.5, 6.6.89
CVEs
CVE-2025-37800
Confirmed fixed CVEs
Not specified
Updated in this feed
2 Nov 2026, 16:14 UTC · Revision 1

Source evidence

driver core: fix potential NULL pointer dereference in dev_uevent()

core-osv · Original source

Published 8 May 2025, 06:26 UTC

In the Linux kernel, the following vulnerability has been resolved: driver core: fix potential NULL pointer dereference in dev_uevent() If userspace reads "uevent" device attribute at the same time as another threads unbinds the device from its driver, change to dev->driver from a valid pointer to NULL may result in crash. Fix this by using READ_ONCE() when fetching the pointer, and take bus' drivers klist lock to make sure driver instance will not disappear while we access it. Use WRITE_ONCE() when setting the driver pointer to ensure there is no tearing.

osv:CVE-2025-37800

Kernel

Fixed versions: 6.6.89, 6.12.26, 6.14.5

Complete source record
{
  "id": "3047df0f5e529f508a98e90fb0e6544880229078a4a332703ec99e9f69300886",
  "url": "https://osv.dev/vulnerability/CVE-2025-37800",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "driver core: fix potential NULL pointer dereference in dev_uevent()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: driver core: fix potential NULL pointer dereference in dev_uevent() If userspace reads \"uevent\" device attribute at the same time as another threads unbinds the device from its driver, change to dev->driver from a valid pointer to NULL may result in crash. Fix this by using READ_ONCE() when fetching the pointer, and take bus' drivers klist lock to make sure driver instance will not disappear while we access it. Use WRITE_ONCE() when setting the driver pointer to ensure there is no tearing.",
    "evidence": "osv:CVE-2025-37800",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.89",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.26",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.5",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2025-37800",
      "aliases": [
        "CVE-2025-37800"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "16574dccd8f62dc1b585325f8a6a0aab10047ed8"
                },
                {
                  "fixed": "abe56be73eb10a677d16066f65ff9d30251f5eee"
                },
                {
                  "fixed": "2b344e779d9afd0fcb5ee4000e4d0fc7d8d867eb"
                },
                {
                  "fixed": "3781e4b83e174364998855de777e184cf0b62c40"
                },
                {
                  "fixed": "18daa52418e7e4629ed1703b64777294209d2622"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37800.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "2.6.22"
                },
                {
                  "fixed": "6.6.89"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.26"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.14.5"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-37800.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:21.349019878Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/18daa52418e7e4629ed1703b64777294209d2622",
        "https://git.kernel.org/stable/c/2b344e779d9afd0fcb5ee4000e4d0fc7d8d867eb",
        "https://git.kernel.org/stable/c/3781e4b83e174364998855de777e184cf0b62c40",
        "https://git.kernel.org/stable/c/abe56be73eb10a677d16066f65ff9d30251f5eee",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/37xxx/CVE-2025-37800.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-37800",
        "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-37800.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-37800",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 486995,
  "published_at": "2025-05-08T06:26:01.125+00:00"
}