Bug 2360288 (CVE-2025-22084) - CVE-2025-22084 kernel: w1: fix NULL pointer dereference in probe
Summary: CVE-2025-22084 kernel: w1: fix NULL pointer dereference in probe
Keywords:
Status: NEW
Alias: CVE-2025-22084
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-04-16 15:06 UTC by OSIDB Bzimport
Modified: 2025-04-18 03:20 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-04-16 15:06:33 UTC
In the Linux kernel, the following vulnerability has been resolved:

w1: fix NULL pointer dereference in probe

The w1_uart_probe() function calls w1_uart_serdev_open() (which includes
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
w1_uart_serdev_open().

Comment 1 Avinash Hanwate 2025-04-17 06:33:54 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025041615-CVE-2025-22084-8a78@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.