Skip to contentSkip to conversation

CVE-2025-39785: drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 11, 2025

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/hisilicon/hibmc: fix irq_request()'s irq name variable is local

The local variable is passed in request_irq (), and there will be use after free problem, which will make request_irq failed. Using the global irq name instead of it to fix.

The Linux kernel CVE team has assigned CVE-2025-39785 to this issue.

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

	Issue introduced in 6.16 with commit b11bc1ae46587f3563c47078e605184f18e7fa57 and fixed in 6.16.4 with commit 06d261a085a11600f5b577bb56a65fb2c3e57d0a
	Issue introduced in 6.16 with commit b11bc1ae46587f3563c47078e605184f18e7fa57 and fixed in 6.17-rc3 with commit 8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb

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-2025-39785

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/hisilicon/hibmc/hibmc_drm_drv.c

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/06d261a085a11600f5b577bb56a65fb2c3e57d0a
	https://git.kernel.org/stable/c/8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb