138 lines
7.9 KiB
JSON
138 lines
7.9 KiB
JSON
{
|
|
"dataType": "CVE_RECORD",
|
|
"dataVersion": "5.2",
|
|
"cveMetadata": {
|
|
"cveId": "CVE-2025-39785",
|
|
"assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"state": "PUBLISHED",
|
|
"assignerShortName": "Linux",
|
|
"dateReserved": "2025-04-16T07:20:57.131Z",
|
|
"datePublished": "2025-09-11T16:56:34.955Z",
|
|
"dateUpdated": "2026-08-05T12:05:06.443Z"
|
|
},
|
|
"containers": {
|
|
"cna": {
|
|
"providerMetadata": {
|
|
"orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
|
|
"shortName": "Linux",
|
|
"dateUpdated": "2026-08-05T12:05:06.443Z"
|
|
},
|
|
"descriptions": [
|
|
{
|
|
"lang": "en",
|
|
"value": "In the Linux kernel, the following vulnerability has been resolved:\n\ndrm/hisilicon/hibmc: fix irq_request()'s irq name variable is local\n\nThe local variable is passed in request_irq (), and there will be use\nafter free problem, which will make request_irq failed. Using the global\nirq name instead of it to fix."
|
|
}
|
|
],
|
|
"metrics": [
|
|
{
|
|
"cvssV3_1": {
|
|
"version": "3.1",
|
|
"vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
|
|
"baseScore": 7.8,
|
|
"baseSeverity": "HIGH"
|
|
},
|
|
"scenarios": [
|
|
{
|
|
"lang": "en",
|
|
"value": "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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"affected": [
|
|
{
|
|
"product": "Linux",
|
|
"vendor": "Linux",
|
|
"defaultStatus": "unaffected",
|
|
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
|
"programFiles": [
|
|
"drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "b11bc1ae46587f3563c47078e605184f18e7fa57",
|
|
"lessThan": "06d261a085a11600f5b577bb56a65fb2c3e57d0a",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
},
|
|
{
|
|
"version": "b11bc1ae46587f3563c47078e605184f18e7fa57",
|
|
"lessThan": "8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb",
|
|
"status": "affected",
|
|
"versionType": "git"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"product": "Linux",
|
|
"vendor": "Linux",
|
|
"defaultStatus": "affected",
|
|
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
|
|
"programFiles": [
|
|
"drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.c"
|
|
],
|
|
"versions": [
|
|
{
|
|
"version": "6.16",
|
|
"status": "affected"
|
|
},
|
|
{
|
|
"version": "0",
|
|
"lessThan": "6.16",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.16.4",
|
|
"lessThanOrEqual": "6.16.*",
|
|
"status": "unaffected",
|
|
"versionType": "semver"
|
|
},
|
|
{
|
|
"version": "6.17",
|
|
"lessThanOrEqual": "*",
|
|
"status": "unaffected",
|
|
"versionType": "original_commit_for_fix"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"cpeApplicability": [
|
|
{
|
|
"nodes": [
|
|
{
|
|
"operator": "OR",
|
|
"negate": false,
|
|
"cpeMatch": [
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "6.16",
|
|
"versionEndExcluding": "6.16.4"
|
|
},
|
|
{
|
|
"vulnerable": true,
|
|
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
|
|
"versionStartIncluding": "6.16",
|
|
"versionEndExcluding": "6.17"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"references": [
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/06d261a085a11600f5b577bb56a65fb2c3e57d0a"
|
|
},
|
|
{
|
|
"url": "https://git.kernel.org/stable/c/8bed4ec42a4e0dc8113172696ff076d1eb6d8bcb"
|
|
}
|
|
],
|
|
"title": "drm/hisilicon/hibmc: fix irq_request()'s irq name variable is local",
|
|
"x_generator": {
|
|
"engine": "bippy-1.2.0"
|
|
}
|
|
}
|
|
}
|
|
} |