Skip to contentSkip to conversation

CVE-2026-80677: driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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

driver core: use READ_ONCE() for dev->driver in dev_has_sync_state()

dev_has_sync_state() reads dev->driver twice without holding device_lock() -- once for the NULL check and once to dereference ->sync_state. Some callers only hold device_links_write_lock, which doesn't prevent a concurrent unbind from clearing dev->driver via device_unbind_cleanup().

Fix it by reading dev->driver exactly once with READ_ONCE(), pairing with the WRITE_ONCE() in device_set_driver().

The Linux kernel CVE team has assigned CVE-2026-80677 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 5.10.261 with commit 89789e4c141904506163dcb91c7289a074573931
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 5.15.212 with commit 51b3e1de53ee5b7775c7ff90e67fdb2665fce938
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 6.1.178 with commit 358697929351f619143f59c6a8a15a4994748b79
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 6.6.145 with commit 5e79e0180515b31b2e2244dc3d256fd8b5a07021
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 6.12.97 with commit 860885fcd2611bca8c28dac8b2c1c7ff160f763e
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 6.18.40 with commit cc77f0d91e3214e4292208f02a1dc09a31f9aac7
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 7.1.5 with commit 9b0f4082a09760939588135d60a8e9cc994bfa3e
	Issue introduced in 5.6 with commit ac338acf514e7b578fa9e3742ec2c292323b4c1a and fixed in 7.2 with commit e9506871a8ea304cde48ff4a57226df2aadddae3
	Issue introduced in 5.5.13 with commit 6d88283a49425eb469aa60ffebe76539e73c933e

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80677

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
include/linux/device.h

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	https://git.kernel.org/stable/c/89789e4c141904506163dcb91c7289a074573931
	https://git.kernel.org/stable/c/51b3e1de53ee5b7775c7ff90e67fdb2665fce938
	https://git.kernel.org/stable/c/358697929351f619143f59c6a8a15a4994748b79
	https://git.kernel.org/stable/c/5e79e0180515b31b2e2244dc3d256fd8b5a07021
	https://git.kernel.org/stable/c/860885fcd2611bca8c28dac8b2c1c7ff160f763e
	https://git.kernel.org/stable/c/cc77f0d91e3214e4292208f02a1dc09a31f9aac7
	https://git.kernel.org/stable/c/9b0f4082a09760939588135d60a8e9cc994bfa3e
	https://git.kernel.org/stable/c/e9506871a8ea304cde48ff4a57226df2aadddae3