Skip to contentSkip to conversation

CVE-2026-93068: drm/amd/display: Fix DM I2C teardown race

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

drm/amd/display: Fix DM I2C teardown race

DM I2C adapters can remain visible to userspace while DM teardown is already in progress. A concurrent i2c-dev transfer may then enter amdgpu_dm_i2c_xfer() after the backing DM state has been torn down, leading to a NULL pointer dereference.

Create a devres group around the DM I2C adapter lifetime and release it at the start of dm_hw_fini(), before HPD, IRQ, and DM state are torn down. This removes the I2C adapters first and waits for in-flight users to drain before the structures used by amdgpu_dm_i2c_xfer() disappear.

This fixes a teardown ordering race seen during device removal:

BUG: kernel NULL pointer dereference
RIP: amdgpu_dm_i2c_xfer+0x122/0x1c0 [amdgpu]
Call Trace:

__i2c_transfer
i2c_transfer
i2cdev_ioctl_rdwr

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

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

	Issue introduced in 6.18 with commit 5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 and fixed in 6.18.52 with commit 8ee385305e8902fa6fbfd66b5a112238292567b6
	Issue introduced in 6.18 with commit 5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 and fixed in 7.2.6 with commit 6970ec944567f109ac4240f9aea58158ee8a18cd
	Issue introduced in 6.18 with commit 5b3eca05cfb02ed0dbd7097c056fb08ce5f76fe3 and fixed in 7.3-rc1 with commit e4ae30a12aa95942814957d8bc1ce7366a7107d7

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-93068

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:
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.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/8ee385305e8902fa6fbfd66b5a112238292567b6
	https://git.kernel.org/stable/c/6970ec944567f109ac4240f9aea58158ee8a18cd
	https://git.kernel.org/stable/c/e4ae30a12aa95942814957d8bc1ce7366a7107d7