# CVE-2026-98780: drm/amdgpu: fix IP instance memory leak on kobject add failure

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.23% (percentile 8, 2026-11-26)
- **Published:** 2026-10-18T15:48:17.804Z
- **Modified:** 2026-10-30T13:21:27.643Z

## Who should check

- Anyone running Linux \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 1d7dd4f230867231abfc5cc413dae5260e06fdb2; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< f6364e7284a131556f5d763d867147bece2843a8; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 0563b26c1437fe7e25ea42c334eb85c0a703f8ff; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 7ca44cb14d0249992a8f1425ba004d6e2d16d255; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< c05bbcc263d67b8b158e2a52be7e3005895969d1; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< f5a5add3605935163dd0f75749b6a7869e9765af
- Anyone running Linux 5.18

## Description

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)

## Affected and fixed versions

- Linux: \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 1d7dd4f230867231abfc5cc413dae5260e06fdb2; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< f6364e7284a131556f5d763d867147bece2843a8; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 0563b26c1437fe7e25ea42c334eb85c0a703f8ff; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 7ca44cb14d0249992a8f1425ba004d6e2d16d255; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< c05bbcc263d67b8b158e2a52be7e3005895969d1; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< f5a5add3605935163dd0f75749b6a7869e9765af (cvelist)
- Linux: 5.18 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98780. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98780.md
Affected: Linux >= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, < 1d7dd4f230867231abfc5cc413dae5260e06fdb2; >= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, < f6364e7284a131556f5d763d867147bece2843a8; >= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, < 0563b26c1437fe7e25ea42c334eb85c0a703f8ff; >= a6c40b178092f41b9d6cc86…
Fixed in: Linux 1d7dd4f230867231abfc5cc413dae5260e06fdb2, Linux 0563b26c1437fe7e25ea42c334eb85c0a703f8ff, Linux 7ca44cb14d0249992a8f1425ba004d6e2d16d255

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98780 being exploited?

There is no confirmed exploitation: CVE-2026-98780 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.23% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98780?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98780?

Linux \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 1d7dd4f230867231abfc5cc413dae5260e06fdb2; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< f6364e7284a131556f5d763d867147bece2843a8; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 0563b26c1437fe7e25ea42c334eb85c0a703f8ff; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< 7ca44cb14d0249992a8f1425ba004d6e2d16d255; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< c05bbcc263d67b8b158e2a52be7e3005895969d1; \>= a6c40b178092f41b9d6cc8615697c14b1e5a1c3a, \< f5a5add3605935163dd0f75749b6a7869e9765af; Linux 5.18.

### Is there a fix for CVE-2026-98780?

Yes. Fixed in Linux 1d7dd4f230867231abfc5cc413dae5260e06fdb2, Linux 0563b26c1437fe7e25ea42c334eb85c0a703f8ff, Linux 7ca44cb14d0249992a8f1425ba004d6e2d16d255. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98780?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/1d7dd4f230867231abfc5cc413dae5260e06fdb2>
- other: <https://git.kernel.org/stable/c/f6364e7284a131556f5d763d867147bece2843a8>
- other: <https://git.kernel.org/stable/c/0563b26c1437fe7e25ea42c334eb85c0a703f8ff>
- other: <https://git.kernel.org/stable/c/7ca44cb14d0249992a8f1425ba004d6e2d16d255>
- other: <https://git.kernel.org/stable/c/c05bbcc263d67b8b158e2a52be7e3005895969d1>
- other: <https://git.kernel.org/stable/c/f5a5add3605935163dd0f75749b6a7869e9765af>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98780>

HTML: <https://flawdb.com/CVE-2026-98780> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98780>
