CVE-2025-22084

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-22084
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-22084.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-22084
Downstream
Published
2025-04-16T15:16:02Z
Modified
2025-05-05T17:00:21Z
Summary
[none]
Details

In the Linux kernel, the following vulnerability has been resolved:

w1: fix NULL pointer dereference in probe

The w1uartprobe() function calls w1uartserdevopen() (which includes devmserdevdeviceopen()) before setting the client ops via serdevdevicesetclientops(). This ordering can trigger a NULL pointer dereference in the serdev controller's receivebuf handler, as it assumes serdev->ops is valid when SERPORTACTIVE is set.

This is similar to the issue fixed in commit 5e700b384ec1 ("platform/chrome: crosecuart: properly fix race condition") where devmserdevdevice_open() was called before fully initializing the device.

Fix the race by ensuring client ops are set before enabling the port via w1uartserdev_open().

References

Affected packages

Debian:13 / linux

Package

Name
linux
Purl
pkg:deb/debian/linux?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
6.12.25-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}