Skip to content
Heist/ feed
Back to feed
UnratedFix available

w1: fix NULL pointer dereference in probe

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: w1: fix NULL pointer dereference in probe The w1_uart_probe() function calls w1_uart_serdev_open() (which includes devm_serdev_device_open()) before setting the client ops via serdev_device_set_client_ops(). This ordering can trigger a NULL pointer dereference in the serdev controller's receive_buf handler, as it assumes serdev->ops is valid when SERPORT_ACTIVE is set. This is similar to the issue fixed in commit 5e700b384ec1 ("platform/chrome: cros_ec_uart: properly fix race condition") where devm_serdev_device_open() was called before fully initializing the device. Fix the race by ensuring client ops are set before enabling the port via w1_uart_serdev_open().

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.23, 6.13.11, 6.14.2
CVEs
CVE-2025-22084
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 08:05 UTC · Revision 1

Source evidence

w1: fix NULL pointer dereference in probe

core-osv · Original source

Published 16 Apr 2025, 14:12 UTC

In the Linux kernel, the following vulnerability has been resolved: w1: fix NULL pointer dereference in probe The w1_uart_probe() function calls w1_uart_serdev_open() (which includes devm_serdev_device_open()) before setting the client ops via serdev_device_set_client_ops(). This ordering can trigger a NULL pointer dereference in the serdev controller's receive_buf handler, as it assumes serdev->ops is valid when SERPORT_ACTIVE is set. This is similar to the issue fixed in commit 5e700b384ec1 ("platform/chrome: cros_ec_uart: properly fix race condition") where devm_serdev_device_open() was called before fully initializing the device. Fix the race by ensuring client ops are set before enabling the port via w1_uart_serdev_open().

osv:CVE-2025-22084

Kernel

Fixed versions: 6.12.23, 6.13.11, 6.14.2

Complete source record
{
  "id": "e51d1a0606eb4576a8e013852bb56f47239ed29522b3ad3ab9f23224b4bf245e",
  "url": "https://osv.dev/vulnerability/CVE-2025-22084",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "w1: fix NULL pointer dereference in probe",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: w1: fix NULL pointer dereference in probe The w1_uart_probe() function calls w1_uart_serdev_open() (which includes devm_serdev_device_open()) before setting the client ops via serdev_device_set_client_ops(). This ordering can trigger a NULL pointer dereference in the serdev controller's receive_buf handler, as it assumes serdev->ops is valid when SERPORT_ACTIVE is set. This is similar to the issue fixed in commit 5e700b384ec1 (\"platform/chrome: cros_ec_uart: properly fix race condition\") where devm_serdev_device_open() was called before fully initializing the device. Fix the race by ensuring client ops are set before enabling the port via w1_uart_serdev_open().",
    "evidence": "osv:CVE-2025-22084",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.23",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.13.11",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.14.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-22084",
      "aliases": [
        "CVE-2025-22084"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "a3c08804364e80328a9ffdac59bb26676b938195"
                },
                {
                  "fixed": "4f750b84628080ff0d67bf1af67a4967b740acf2"
                },
                {
                  "fixed": "64ab50577c59bb7049bec6b5c42d1c38e4029f29"
                },
                {
                  "fixed": "cc6b0ec7cccbf66ef3621e9e93296b7bd1f52298"
                },
                {
                  "fixed": "0dd6770a72f138dabea9eae87f3da6ffa68f0d06"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22084.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.9.0"
                },
                {
                  "fixed": "6.12.23"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.13.11"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.14.0"
                },
                {
                  "fixed": "6.14.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22084.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:27.374941522Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/0dd6770a72f138dabea9eae87f3da6ffa68f0d06",
        "https://git.kernel.org/stable/c/4f750b84628080ff0d67bf1af67a4967b740acf2",
        "https://git.kernel.org/stable/c/64ab50577c59bb7049bec6b5c42d1c38e4029f29",
        "https://git.kernel.org/stable/c/cc6b0ec7cccbf66ef3621e9e93296b7bd1f52298",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22084.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-22084",
        "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/22xxx/CVE-2025-22084.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-22084",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 493621,
  "published_at": "2025-04-16T14:12:32.95+00:00"
}