CVE-2025-22084

w1: fix NULL pointer dereference in probe

No CVSS score yet EPSS 0.21%

Published 16 Apr 2025 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2025-22084

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-22084 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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().

Exploitation

EPSS 0.21%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 11.1% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from a3c08804364e80328a9ffdac59bb26676b938195, before 4f750b84628080ff0d67bf1af67a4967b740acf2
affected from a3c08804364e80328a9ffdac59bb26676b938195, before 64ab50577c59bb7049bec6b5c42d1c38e4029f29
affected from a3c08804364e80328a9ffdac59bb26676b938195, before cc6b0ec7cccbf66ef3621e9e93296b7bd1f52298
affected from a3c08804364e80328a9ffdac59bb26676b938195, before 0dd6770a72f138dabea9eae87f3da6ffa68f0d06
Other versions: unaffected
Linux
affected 6.9
unaffected before 6.9
unaffected from 6.12.23 up to and including 6.12.*
unaffected from 6.13.11 up to and including 6.13.*
unaffected from 6.14.2 up to and including 6.14.*
unaffected 6.15 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-22084 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-22084

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-22084
trivy image --scanners vuln IMAGE | grep CVE-2025-22084

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-22084 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.