CVE-2025-39785
published high CVSS 3.1 · 7.8drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxb11bc1ae46587f3563c47078e605184f18e7fa57 to < 06d261a085a11600f5b577bb56a65fb2c3e57d0a · b11bc1ae46587f3563c47078e605184f18e7fa57 to < 8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.16 (affected) · 0 to < 6.16 (unaffected · semver) · 6.16.4 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.8 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The stale `irqaction->name` pointer is dereferenced by `show_interrupts()` when userspace reads the world-readable `/proc/interrupts`, which requires local system access. There is no network-facing consumer of this data. AC:L - The dangling pointer is installed unconditionally at driver probe on every affected system, so a single `cat /proc/interrupts` deterministically dereferences freed stack memory; the attacker can additionally groom the recycled VMAP task stack with fork/exit churn to control or unmap the target. PR:L - `/proc/interrupts` is created with mode 0444, so any unprivileged local user — including one confined to a container with `/proc` mounted — can trigger the read with no capabilities. No authentication beyond a normal shell is needed. UI:N - The attacker only reads a procfs file; no victim action, mount, or file-open by another user is required. The vulnerable state is established automatically at boot when the hibmc PCI device probes. S:U - The stale read and its consequences are confined to the kernel's own security authority on the affected host, with no crossing of a VM, IOMMU, or hypervisor boundary. C:H - `seq_printf("%s", action->name)` walks memory unbounded until a NUL byte, dumping arbitrary kernel stack contents into a world-readable file — leaking kernel pointers (KASLR/heap defeat) and, because VMAP task stacks are recycled into other tasks, residual data from other and potentially privileged processes. This is not a small bounded read. I:H - The commit fixes a use-after-free: a dangling pointer is left embedded in the long-lived `irqaction` structure, and its target is attacker-groomable recycled kernel stack memory whose contents are then consumed by kernel formatting code and emitted into procfs and dmesg. Per use-after-free scoring this is treated as High. A:H - If the freed stack was `vfree_atomic()`d or the unbounded string walk crosses a vmap guard page, the fault occurs inside `show_interrupts()` while `desc->lock` is held as a raw spinlock with IRQs disabled — an oops that leaves the IRQ descriptor lock permanently held, deadlocking subsequent IRQ and procfs access, and a full panic under `panic_on_oops`. Any unprivileged user, or routine readers like irqbalance and monitoring agents, can trigger it repeatedly.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | b11bc1ae46587f3563c47078e605184f18e7fa57 to < 06d261a085a11600f5b577bb56a65fb2c3e57d0a (affected · git)b11bc1ae46587f3563c47078e605184f18e7fa57 to < 8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.16 (affected)0 to < 6.16 (unaffected · semver)6.16.4 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
2Provider assertions
1Linux · cna
drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 84435c6af5928ebf111f6d09ccb42acc62f4a662a2251fd82ee4930f580cfd8e
- Ingested
- 23 Sep 2026, 08:47:06 UTC
- Source record
- Official CVE record