-

CVE-2026-98780

drm/amdgpu: fix IP instance memory leak on kobject add failure

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

drm/amdgpu: fix IP instance memory leak on kobject add failure

amdgpu_discovery_sysfs_ips() allocates ip_hw_instance with
kzalloc_flex() and initializes its embedded kobject before calling
kobject_add().

If kobject_add() fails, the return value is ignored and execution
continues without dropping the initial kobject reference. The failed
kobject is not retained in the kset list, so the normal sysfs teardown
path cannot find it. As a result, ip_hw_instance_release() is never
called and the ip_hw_instance allocation is leaked.

Call kobject_put() when kobject_add() fails so the initial reference is
dropped and ip_hw_instance_release() can free the allocation. Keep the
existing best-effort sysfs behavior by continuing with the remaining IP
entries after the failed registration.

The issue was identified by a static analysis tool I developed and
confirmed by manual review.

(cherry picked from commit 5c75fbcca8af1096d8d9415b91d8ea6212c22ee1)
Daten sind bereitgestellt durch das CVE Programm von einer CVE Numbering Authority (CNA) (Unstrukturiert).
HerstellerLinux
≫
Produkt Linux
Default Statusunaffected
Version a6c40b178092f41b9d6cc8615697c14b1e5a1c3a
Version < 1d7dd4f230867231abfc5cc413dae5260e06fdb2
Status affected
Version a6c40b178092f41b9d6cc8615697c14b1e5a1c3a
Version < f6364e7284a131556f5d763d867147bece2843a8
Status affected
Version a6c40b178092f41b9d6cc8615697c14b1e5a1c3a
Version < 0563b26c1437fe7e25ea42c334eb85c0a703f8ff
Status affected
Version a6c40b178092f41b9d6cc8615697c14b1e5a1c3a
Version < 7ca44cb14d0249992a8f1425ba004d6e2d16d255
Status affected
Version a6c40b178092f41b9d6cc8615697c14b1e5a1c3a
Version < c05bbcc263d67b8b158e2a52be7e3005895969d1
Status affected
Version a6c40b178092f41b9d6cc8615697c14b1e5a1c3a
Version < f5a5add3605935163dd0f75749b6a7869e9765af
Status affected
HerstellerLinux
≫
Produkt Linux
Default Statusaffected
Version 5.18
Status affected
Version 0
Version < 5.18
Status unaffected
Version <= 6.1.*
Version 6.1.191
Status unaffected
Version <= 6.6.*
Version 6.6.160
Status unaffected
Version <= 6.12.*
Version 6.12.113
Status unaffected
Version <= 6.18.*
Version 6.18.56
Status unaffected
Version <= 7.2.*
Version 7.2.10
Status unaffected
Version <= *
Version 7.3
Status unaffected
VulnDex Vulnerability Enrichment
Diese Information steht angemeldeten Benutzern zur Verfügung. Login Login
Zu dieser CVE wurde keine Warnung gefunden.
EPSS Metriken
Typ Quelle Score Percentile
EPSS FIRST.org 0.18% 0.072
CVSS Metriken
Quelle Base Score Exploit Score Impact Score Vector String
Es wurden noch keine Informationen zu CWE veröffentlicht.
https://git.kernel.org/stable/c/0563b26c1437fe7e25ea42c334eb85c0a703f8ff
https://git.kernel.org/stable/c/7ca44cb14d0249992a8f1425ba004d6e2d16d255
https://git.kernel.org/stable/c/c05bbcc263d67b8b158e2a52be7e3005895969d1
https://git.kernel.org/stable/c/f5a5add3605935163dd0f75749b6a7869e9765af
https://git.kernel.org/stable/c/f6364e7284a131556f5d763d867147bece2843a8
https://git.kernel.org/stable/c/1d7dd4f230867231abfc5cc413dae5260e06fdb2