CVE-2025-21685
Severity CVSS v4.0:
Pending analysis
Type:
CWE-476
NULL Pointer Dereference
Publication date:
09/02/2025
Last modified:
01/10/2025
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
platform/x86: lenovo-yoga-tab2-pro-1380-fastcharger: fix serdev race<br />
<br />
The yt2_1380_fc_serdev_probe() function calls devm_serdev_device_open()<br />
before setting the client ops via serdev_device_set_client_ops(). This<br />
ordering can trigger a NULL pointer dereference in the serdev controller&#39;s<br />
receive_buf handler, as it assumes serdev->ops is valid when<br />
SERPORT_ACTIVE is set.<br />
<br />
This is similar to the issue fixed in commit 5e700b384ec1<br />
("platform/chrome: cros_ec_uart: properly fix race condition") where<br />
devm_serdev_device_open() was called before fully initializing the<br />
device.<br />
<br />
Fix the race by ensuring client ops are set before enabling the port via<br />
devm_serdev_device_open().<br />
<br />
Note, serdev_device_set_baudrate() and serdev_device_set_flow_control()<br />
calls should be after the devm_serdev_device_open() call.
Impact
Base Score 3.x
4.70
Severity 3.x
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* | 6.10 (including) | 6.12.11 (excluding) |
| cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:* | ||
| cpe:2.3:o:linux:linux_kernel:6.13:rc7:*:*:*:*:*:* |
To consult the complete list of CPE names with products and versions, see this page



