Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2024-39479

published high CVSS 3.1 · 7.8

drm/i915/hwmon: Get rid of devm

Published
05 Jul 2024, 06:55:08 UTC
Updated
05 Aug 2026, 11:33:32 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linuxb3b088e28183b84080b7f0a0b8da84ec42b4b0e8 to < cfa73607eb21a4ce1d6294a2c5733628897b48a2 · b3b088e28183b84080b7f0a0b8da84ec42b4b0e8 to < ce5a22d22db691d14516c3b8fdbf69139eb2ea8f · b3b088e28183b84080b7f0a0b8da84ec42b4b0e8 to < 5bc9de065b8bb9b8dd8799ecb4592d0403b54281 · Other versions: unaffected Affected Not stated Linux
Linux — Linux6.2 (affected) · 0 to < 6.2 (unaffected · semver) · 6.6.34 through 6.6.* (unaffected · semver) · 6.9.5 through 6.9.* (unaffected · semver) · 6.10 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
linux — linux_kernel1da177e4c3f4 to < cfa73607eb21 (affected · custom) · 1da177e4c3f4 to < ce5a22d22db6 (affected · custom) · 1da177e4c3f4 to < 5bc9de065b8b (affected · custom) · 6.6.34 through 6.7 (unaffected · custom) · 6.95 through 6.10 (unaffected · custom) · 6.10-rc1 (unaffected) · Other versions: unknown Version-specific Not stated CISA-ADP
Amazon Linux AL2 Release evaluation Not Affected Not required Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Not Affected Not required Amazon Linux assessment
Oracle Linux 9 bpftoolaarch64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Red Hat Enterprise Linux RHEL-9 bpftoolaarch64 Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Oracle Linux 9 bpftoolx86_64 Advisory build 0:7.4.0-503.11.1.el9_5 ELSA-2024-9315
Show 97 more entries
Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Oracle Linux 9 kernelx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-abi-stablelistsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-cross-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debugx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-modules-extrax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-debug-uki-virtx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-devel-matchedx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-docx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-headersaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-headersx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-modulesx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-modules-corex86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-modules-extrax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-toolsaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-toolsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libsaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libs-develaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-tools-libs-develx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-uki-virtx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 kernel-uki-virt-addonsx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 libperfaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 libperfx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 perfaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 perfx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 python3-perfaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 python3-perfx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 rtlaaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 rtlax86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 rvaarch64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Oracle Linux 9 rvx86_64 Advisory build 0:5.14.0-503.11.1.el9_5 ELSA-2024-9315
Red Hat Enterprise Linux RHEL-9 bpftoolppc64le Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 bpftools390x Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 bpftoolx86_64 Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoaarch64 Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfoppc64le Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfos390x Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 bpftool-debuginfox86_64 Advisory build 7.4.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernelaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernelppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernels390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernelsrc Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernelx86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64kaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debugaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-debuginfoaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-develaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-devel-matchedaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modulesaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debug-modules-extraaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-debuginfoaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-develaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-devel-matchedaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-modulesaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-64k-modules-extraaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-abi-stablelistsnoarch Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-coreppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-cores390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-corex86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debugaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debugppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debugs390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debugx86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-coreppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-cores390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-corex86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfoppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfos390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-debuginfox86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-develaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-develppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-devels390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-develx86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matcheds390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-devel-matchedx86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesppc64le Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-moduless390x Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-modulesx86_64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315
Red Hat Enterprise Linux RHEL-9 kernel-debug-modules-coreaarch64 Advisory build 5.14.0-503.11.1.el9_5 RHSA-2024:9315

Package entries are limited to the first 100 builds and 100 linked advisories.

Description

In the Linux kernel, the following vulnerability has been resolved: drm/i915/hwmon: Get rid of devm When both hwmon and hwmon drvdata (on which hwmon depends) are device managed resources, the expectation, on device unbind, is that hwmon will be released before drvdata. However, in i915 there are two separate code paths, which both release either drvdata or hwmon and either can be released before the other. These code paths (for device unbind) are as follows (see also the bug referenced below): Call Trace: release_nodes+0x11/0x70 devres_release_group+0xb2/0x110 component_unbind_all+0x8d/0xa0 component_del+0xa5/0x140 intel_pxp_tee_component_fini+0x29/0x40 [i915] intel_pxp_fini+0x33/0x80 [i915] i915_driver_remove+0x4c/0x120 [i915] i915_pci_remove+0x19/0x30 [i915] pci_device_remove+0x32/0xa0 device_release_driver_internal+0x19c/0x200 unbind_store+0x9c/0xb0 and Call Trace: release_nodes+0x11/0x70 devres_release_all+0x8a/0xc0 device_unbind_cleanup+0x9/0x70 device_release_driver_internal+0x1c1/0x200 unbind_store+0x9c/0xb0 This means that in i915, if use devm, we cannot gurantee that hwmon will always be released before drvdata. Which means that we have a uaf if hwmon sysfs is accessed when drvdata has been released but hwmon hasn't. The only way out of this seems to be do get rid of devm_ and release/free everything explicitly during device unbind. v2: Change commit message and other minor code changes v3: Cleanup from i915_hwmon_register on error (Armin Wolf) v4: Eliminate potential static analyzer warning (Rodrigo) Eliminate fetch_and_zero (Jani) v5: Restore previous logic for ddat_gt->hwmon_dev error return (Andi)

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

15

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 vulnerable code is reached by reading an i915 hwmon sysfs attribute (`/sys/class/hwmon/hwmonN/energy1_input`) on the local machine; no network or remote peer data is involved, and the heap grooming needed to weaponize the UAF also requires local execution. AC:L - The freed-object window is opened only by driver unbind, module removal, or PCI hot-remove — an administrative event an unprivileged attacker cannot cause — but once it occurs the attacker does not need to win a tight timing race: the hwmon sysfs nodes stay registered and readable across the entire teardown interval, so a zero-cost busy-read loop lands in the window deterministically. Choosing the higher-severity option where the two readings are defensible. PR:L - `energy1_input`, `in0_input` and `power1_rated_max` are mode 0444 and `power1_max_interval` is 0664, so any local unprivileged account can open and read them with no capability check anywhere on the path from `sysfs_kf_seq_show` down to `hwm_energy()`. UI:N - The attacker's read requires no victim action — no file must be opened on the victim's behalf, no media mounted; the driver unbind is a system/administrative event already accounted for in Attack Complexity, not exploit-time user participation. S:U - The use-after-free corrupts kernel heap memory within the same security authority as the kernel itself; no VM, IOMMU, or sandbox boundary is crossed. C:H - This is a use-after-free on a ~400-byte `kmalloc-512` object: `hwmon->rg.energy_status_*` and `rg.pkg_rapl_limit` are read from freed memory and used as MMIO offsets, and `ddat->uncore` is a fully dereferenced stale pointer, so an attacker who reclaims the slot with controlled data obtains an arbitrary kernel/MMIO read reflected back through sysfs. I:H - `hwm_energy()` writes into the freed object (`ei->accum_energy`, `ei->reg_val_prev`, and `mutex_lock(&hwmon->hwmon_lock)`), and `intel_uncore_read()` performs an indirect call through `uncore->funcs.mmio_readl` loaded out of the freed allocation — a control-flow hijack primitive once the slab is reclaimed with attacker-influenced contents. A:H - Even unweaponized, dereferencing the freed `struct i915_hwmon` and the stale `ddat->uncore` function-pointer table oopses the kernel; this is the reported symptom in the referenced Freedesktop bug, and it can be re-triggered on every unbind.

Additional Assessments

Additional normalized CVSS assessments
VersionScoreSeverityProviderVectorScenarios
3.1 7.8 high CISA-ADP · adp CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H —

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux b3b088e28183b84080b7f0a0b8da84ec42b4b0e8 to < cfa73607eb21a4ce1d6294a2c5733628897b48a2 (affected · git)b3b088e28183b84080b7f0a0b8da84ec42b4b0e8 to < ce5a22d22db691d14516c3b8fdbf69139eb2ea8f (affected · git)b3b088e28183b84080b7f0a0b8da84ec42b4b0e8 to < 5bc9de065b8bb9b8dd8799ecb4592d0403b54281 (affected · git)Default: unaffected Linux · cna
Linux Linux 6.2 (affected)0 to < 6.2 (unaffected · semver)6.6.34 through 6.6.* (unaffected · semver)6.9.5 through 6.9.* (unaffected · semver)6.10 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna
linux linux_kernel 1da177e4c3f4 to < cfa73607eb21 (affected · custom)1da177e4c3f4 to < ce5a22d22db6 (affected · custom)1da177e4c3f4 to < 5bc9de065b8b (affected · custom)6.6.34 through 6.7 (unaffected · custom)6.95 through 6.10 (unaffected · custom)6.10-rc1 (unaffected)Default: unknown CISA-ADP · adp

Weaknesses

1
  • CWE-400 CWE-400 Uncontrolled Resource Consumption (CISA-ADP · adp)

References

3

Provider assertions

3

Linux · cna

drm/i915/hwmon: Get rid of devm

CISA-ADP · adp

CISA ADP Vulnrichment

CVE · adp

CVE Program Container

Provenance

Schema
5.2
Searchable
yes
Content hash
e1a66191939b3bbbd6eb4f846fcfc6ae1465689457c8c2d402402b4d9a0c5c9e
Ingested
23 Sep 2026, 08:25:18 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected