# CVE-2026-89449: iommu: Fix dev\_iommu memory leak when device\_add fails in iommu\_mock\_device\_add

> 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.21% (percentile 6, 2026-11-26)
- **Published:** 2026-09-11T19:43:15.397Z
- **Modified:** 2026-10-19T09:17:37.123Z

## Who should check

- Anyone running Linux \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< f80f3acb69164800051ecdee871b6b006cbc2e66; \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< eaf44262af24810d16800b988c92dfce90f73370; \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< b7b0b3851474883d4aba6ed72da87141204b23e5; 1daf67217b0d0bf88ef7208d7fbeefe2378c6590; \>= 6.17.3, \< 6.18
- Anyone running Linux 6.18

## Description

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

iommu: Fix dev\_iommu memory leak when device\_add fails in iommu\_mock\_device\_add

iommu\_mock\_device\_add() first calls iommu\_fwspec\_init(), which on
success allocates both dev-\>iommu (via dev\_iommu\_get()) and
dev-\>iommu-\>fwspec. If the subsequent device\_add(dev) call fails,
the error path only calls iommu\_fwspec\_free(dev), which frees
fwspec but leaves dev-\>iommu still allocated.

This triggers the following kmemleak report when fuzzing with Syzkaller:

BUG: memory leak
unreferenced object 0xffff888011e0a200 (size 192):
  comm "syz.1.1695", pid 24885, jiffies 4295222527
  hex dump (first 32 bytes):
    00 00 00 00 00 00 00 00 00 00 00 00 ad 4e ad de  .............N..
    ff ff ff ff 00 00 00 00 ff ff ff ff ff ff ff ff  ................
  backtrace (crc 25df5bb3):
    kmemleak\_alloc\_recursive include/linux/kmemleak.h:44 \[inline\]
    slab\_post\_alloc\_hook mm/slub.c:4575 \[inline\]
    slab\_alloc\_node mm/slub.c:4899 \[inline\]
    \_\_kmalloc\_cache\_noprof+0x47a/0x710 mm/slub.c:5415
    kmalloc\_noprof include/linux/slab.h:950 \[inline\]
    kzalloc\_noprof include/linux/slab.h:1188 \[inline\]
    dev\_iommu\_get+0x10c/0x1a0 drivers/iommu/iommu.c:408
    iommu\_fwspec\_init+0x288/0x4d0 drivers/iommu/iommu.c:3087
    iommu\_mock\_device\_add+0x46/0xb0 drivers/iommu/iommu.c:385
    mock\_dev\_create drivers/iommu/iommufd/selftest.c:1025 \[inline\]
    iommufd\_test\_mock\_domain drivers/iommu/iommufd/selftest.c:1066 \[inline\]
    iommufd\_test+0x2f8a/0x6190 drivers/iommu/iommufd/selftest.c:2072
    iommufd\_fops\_ioctl+0x367/0x540 drivers/iommu/iommufd/main.c:533
    vfs\_ioctl fs/ioctl.c:51 \[inline\]
    \_\_do\_sys\_ioctl fs/ioctl.c:597 \[inline\]
    \_\_se\_sys\_ioctl fs/ioctl.c:583 \[inline\]
    \_\_x64\_sys\_ioctl+0x18e/0x210 fs/ioctl.c:583
    do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
    do\_syscall\_64+0x116/0x800 arch/x86/entry/syscall\_64.c:94
    entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Fix this by calling dev\_iommu\_free(dev) instead of iommu\_fwspec\_free(dev)
in the device\_add() failure path. dev\_iommu\_free() frees both fwspec
and the outer dev\_iommu struct and clears dev-\>iommu.

## Affected and fixed versions

- Linux: \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< f80f3acb69164800051ecdee871b6b006cbc2e66; \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< eaf44262af24810d16800b988c92dfce90f73370; \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< b7b0b3851474883d4aba6ed72da87141204b23e5; 1daf67217b0d0bf88ef7208d7fbeefe2378c6590; \>= 6.17.3, \< 6.18 (cvelist)
- Linux: 6.18 (cvelist)

## Mitigation

- Upgrade Linux to 6.18 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2026-89449.md
Affected: Linux >= 2a918911ed3d0841923525ed0fe707762ee78844, < f80f3acb69164800051ecdee871b6b006cbc2e66; >= 2a918911ed3d0841923525ed0fe707762ee78844, < eaf44262af24810d16800b988c92dfce90f73370; >= 2a918911ed3d0841923525ed0fe707762ee78844, < b7b0b3851474883d4aba6ed72da87141204b23e5; 1daf67217b0d0bf88ef7208d7f…
Fixed in: Linux 6.18

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-89449 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< f80f3acb69164800051ecdee871b6b006cbc2e66; \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< eaf44262af24810d16800b988c92dfce90f73370; \>= 2a918911ed3d0841923525ed0fe707762ee78844, \< b7b0b3851474883d4aba6ed72da87141204b23e5; 1daf67217b0d0bf88ef7208d7fbeefe2378c6590; \>= 6.17.3, \< 6.18; Linux 6.18.

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

Yes. Fixed in Linux 6.18. Upgrade Linux to 6.18 or later.

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

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/f80f3acb69164800051ecdee871b6b006cbc2e66>
- other: <https://git.kernel.org/stable/c/eaf44262af24810d16800b988c92dfce90f73370>
- other: <https://git.kernel.org/stable/c/b7b0b3851474883d4aba6ed72da87141204b23e5>

## 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-89449>

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