CVE-2025-22084

Source
https://cve.org/CVERecord?id=CVE-2025-22084
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22084.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-22084
Downstream
Published
2025-04-16T14:12:32.950Z
Modified
2026-03-11T05:34:03.736941Z
Summary
w1: fix NULL pointer dereference in probe
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().

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/22xxx/CVE-2025-22084.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
a3c08804364e80328a9ffdac59bb26676b938195
Fixed
4f750b84628080ff0d67bf1af67a4967b740acf2
Fixed
64ab50577c59bb7049bec6b5c42d1c38e4029f29
Fixed
cc6b0ec7cccbf66ef3621e9e93296b7bd1f52298
Fixed
0dd6770a72f138dabea9eae87f3da6ffa68f0d06

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-22084.json"