Skip to content
Heist/ feed
Back to feed
MediumFix available

platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race The yt2_1380_fc_serdev_probe() function calls 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 devm_serdev_device_open(). Note, serdev_device_set_baudrate() and serdev_device_set_flow_control() calls should be after the devm_serdev_device_open() call.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.11
CVEs
CVE-2025-21685
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:31 UTC · Revision 1

Source evidence

platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race

core-osv · Original source

Published 9 Feb 2025, 11:37 UTC

In the Linux kernel, the following vulnerability has been resolved: platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race The yt2_1380_fc_serdev_probe() function calls 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 devm_serdev_device_open(). Note, serdev_device_set_baudrate() and serdev_device_set_flow_control() calls should be after the devm_serdev_device_open() call.

osv:CVE-2025-21685

Kernel

Fixed versions: 6.12.11

Complete source record
{
  "id": "8d2f9bc6160161a87e323040f64ed5a7fc3cadcf1869027d5e3d38da61b7c162",
  "url": "https://osv.dev/vulnerability/CVE-2025-21685",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race The yt2_1380_fc_serdev_probe() function calls 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 devm_serdev_device_open(). Note, serdev_device_set_baudrate() and serdev_device_set_flow_control() calls should be after the devm_serdev_device_open() call.",
    "evidence": "osv:CVE-2025-21685",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.11",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-21685",
      "aliases": [
        "CVE-2025-21685"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "b2ed33e8d486ab2f1920131dd76fab38c8ef3550"
                },
                {
                  "fixed": "3f67e07873df3c6d9ce2582260b83732e1d3a40b"
                },
                {
                  "fixed": "59616a91e5e74833b2008b56c66879857c616006"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21685.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.10.0"
                },
                {
                  "fixed": "6.12.11"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-21685.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.531078850Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/3f67e07873df3c6d9ce2582260b83732e1d3a40b",
        "https://git.kernel.org/stable/c/59616a91e5e74833b2008b56c66879857c616006",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21685.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-21685",
        "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/21xxx/CVE-2025-21685.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-21685",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497419,
  "published_at": "2025-02-09T11:37:25.264+00:00"
}