VDB

CVE-2025-21685

CVE-2025-21685 PUBLISHED CVSS 4.7 MEDIUM

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

Reported by linux · Published February 9, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
linux_kernellinux6.12.11
LinuxLinux6.10, 59616a91e5e74833b2008b56c66879857c616006, 3f67e07873df3c6d9ce2582260b83732e1d3a40b

Risk scores

CVSS 3.1
4.7
CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H

Affected products

VendorProductVersions
LinuxLinuxb2ed33e8d486ab2f1920131dd76fab38c8ef3550, b2ed33e8d486ab2f1920131dd76fab38c8ef3550
LinuxLinux6.10, 0, 6.12.11
LinuxLinux0, 6.13, *
linuxlinux_kernel6.10, 6.10

Timeline

  • Feb 9, 2025 CVE Published
  • Feb 9, 2025 PoC Published (4 in total, the first dated here)
  • Feb 10, 2025 EPSS Score (30 in total, the first dated here)
  • Feb 22, 2025 Coalition ESS Score (11 in total, the first dated here)
  • Dec 22, 2025 Security Advisory (43 in total, the first dated here)
  • Apr 29, 2026 Distribution Patch (40 in total, the first dated here)
  • May 11, 2026 CVE Updated

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-21685
vulnetix vdb fixes CVE-2025-21685

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21685/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

References

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›