CVE-2024-35977
platform/chrome: cros_ec_uart: properly fix race condition
Mitigation
- Upgrade Linux to 5e700b384ec13f5bcac9855cb28fcc674f1d3593 or later.
Who should check
- Anyone running Linux >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < cfd758041d8b79aa8c3f811b6bd6105379f2f702; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 9e9bb74a93b7daa32313ccaefd0edc529d40daf8; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 5e700b384ec13f5bcac9855cb28fcc674f1d3593
- Anyone running Linux 6.3
Vulnerability facts
- Affected
- Linux >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < cfd758041d8b79aa8c3f811b6bd6105379f2f702; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 9e9bb74a93b7daa32313ccaefd0edc529d40daf8; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 5e700b384ec13f5bcac9855cb28fcc674f1d3593; Linux 6.3
- Fixed in
- Linux 9e9bb74a93b7daa32313ccaefd0edc529d40daf8, Linux 5e700b384ec13f5bcac9855cb28fcc674f1d3593
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 4.7 (v3.1, NVD)CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: High
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: High
- EPSS
- 0.22% chance of exploitation in 30 days (percentile 7, 2026-11-26)
- CWE
- CWE-362, CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: platform/chrome: cros_ec_uart: properly fix race condition The cros_ec_uart_probe() function calls devm_serdev_device_open() before it calls serdev_device_set_client_ops(). This can trigger a NULL pointer dereference: BUG: kernel NULL pointer dereference, address: 0000000000000000 ... Call Trace: <TASK> ... ? ttyport_receive_buf A simplified version of crashing code is as follows: static inline size_t serdev_controller_receive_buf(struct serdev_controller *ctrl, const u8 *data, size_t count) { struct serdev_device *serdev = ctrl->serdev; if (!serdev || !serdev->ops->receive_buf) // CRASH! return 0; return serdev->ops->receive_buf(serdev, data, count); } It assumes that if SERPORT_ACTIVE is set and serdev exists, serdev->ops will also exist. This conflicts with the existing cros_ec_uart_probe() logic, as it first calls devm_serdev_device_open() (which sets SERPORT_ACTIVE), and only later sets serdev->ops via serdev_device_set_client_ops(). Commit 01f95d42b8f4 ("platform/chrome: cros_ec_uart: fix race condition") attempted to fix a similar race condition, but while doing so, made the window of error for this race condition to happen much wider. Attempt to fix the race condition again, making sure we fully setup before calling devm_serdev_device_open().
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < cfd758041d8b79aa8c3f811b6bd6105379f2f702; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 9e9bb74a93b7daa32313ccaefd0edc529d40daf8; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 5e700b384ec13f5bcac9855cb28fcc674f1d3593 | — | cvelist |
| Linux | 6.3 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2024-35977. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2024-35977.md Affected: Linux >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < cfd758041d8b79aa8c3f811b6bd6105379f2f702; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 9e9bb74a93b7daa32313ccaefd0edc529d40daf8; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 5e700b384ec13f5bcac9855cb28fcc674f1d3593; Linux 6.3 Fixed in: Linux 9e9bb74a93b7daa32313ccaefd0edc529d40daf8, Linux 5e700b384ec13f5bcac9855cb28fcc674f1d3593 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
FAQ
Is CVE-2024-35977 being exploited?
There is no confirmed exploitation: CVE-2024-35977 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.22% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2024-35977?
Medium: CVSS 4.7 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed). The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2024-35977?
Linux >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < cfd758041d8b79aa8c3f811b6bd6105379f2f702; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 9e9bb74a93b7daa32313ccaefd0edc529d40daf8; >= 01f95d42b8f4e88f20d68791b0a85dbb9e3d1ac9, < 5e700b384ec13f5bcac9855cb28fcc674f1d3593; Linux 6.3.
Is there a fix for CVE-2024-35977?
Yes. Fixed in Linux 9e9bb74a93b7daa32313ccaefd0edc529d40daf8, Linux 5e700b384ec13f5bcac9855cb28fcc674f1d3593. Upgrade Linux to 5e700b384ec13f5bcac9855cb28fcc674f1d3593 or later.
How do I check if I'm affected by CVE-2024-35977?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.