CVE-2025-21685 Details
Description
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.
A race condition vulnerability has been identified in the Linux kernel's handling of the serdev device for the Lenovo Yoga Tab 2 Pro 1380 Fast Charger. The issue arises in the yt2_1380_fc_serdev_probe() function, which calls devm_serdev_device_open() before properly setting the client operations. This misordering can lead to a NULL pointer dereference in the serdev controller's receive_buf handler, as it relies on the serdev operations being valid when the SERPORT_ACTIVE state is applied. This vulnerability mirrors a previously addressed race condition in a different component of the Linux kernel.
The vulnerability has been fixed by adjusting the order of operations in the yt2_1380_fc_serdev_probe() function. The client operations are now set before the serdev device is opened, preventing the race condition.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Oct 1, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/3f67e07873df3c6d9ce2582260b83732e1d3a40b | kernel.org | Patch |
| https://git.kernel.org/stable/c/59616a91e5e74833b2008b56c66879857c616006 | kernel.org | Patch |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-476 | NULL Pointer Dereference | [email protected] |
| CWE-476 | NULL Pointer Dereference | CISA-ADP |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 6.10, < 6.12.11 6.13 rc1 6.13 rc2 6.13 rc3 6.13 rc4 6.13 rc5 6.13 rc6 6.13 rc7 |
CPE
Remediation
| |
Change History
5 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Oct 1, 2025 | CVE Modified | CISA-ADP |
| Feb 11, 2025 | Initial Analysis | [email protected] |
| Feb 9, 2025 | New CVE Received | kernel.org |