# CVE-2026-98217: IB/mlx4: Fix use-after-free on pkey sysfs registration 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.22% (percentile 7, 2026-11-26)
- **Published:** 2026-10-06T08:44:53.152Z
- **Modified:** 2026-10-19T10:18:22.473Z

## Who should check

- Anyone running Linux \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 791471421d848ce13e84f4b21c9e19973d471c4e; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 734f066933484f6c7cedea0312763249beed5845; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< a07bee32127d7c4cd3b1bb9a088e21d0c93634c9; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< cf20d7476754c00eec04ae23d3e929de33ce0345; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 0c3482e965b18bc242e54e899d1c4d391ca8e5e3; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< ffb80872617b5f9b3dd1536ec2909029fa66f228; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< ced1186fea7c77e16681c7ef4802897885989c3b; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a
- Anyone running Linux 3.7

## Description

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

IB/mlx4: Fix use-after-free on pkey sysfs registration failure

register\_pkey\_tree() ignores errors from register\_one\_pkey\_tree() and
continues registering the remaining slaves. The per-slave error path has
already released the pkey parent kobjects, but their pointers remain
stored in the device. A later device cleanup therefore passes the stale
pointers to kobject\_put(), causing a use-after-free.

Clear the parent pointers after releasing a failed slave tree and skip
unregistered trees during device cleanup. This preserves the existing
best-effort registration behavior while preventing a second cleanup of
the failed tree.

## Affected and fixed versions

- Linux: \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 791471421d848ce13e84f4b21c9e19973d471c4e; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 734f066933484f6c7cedea0312763249beed5845; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< a07bee32127d7c4cd3b1bb9a088e21d0c93634c9; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< cf20d7476754c00eec04ae23d3e929de33ce0345; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 0c3482e965b18bc242e54e899d1c4d391ca8e5e3; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< ffb80872617b5f9b3dd1536ec2909029fa66f228; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< ced1186fea7c77e16681c7ef4802897885989c3b; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a (cvelist)
- Linux: 3.7 (cvelist)

## Mitigation

- Upgrade Linux to 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a 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-98217. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98217.md
Affected: Linux >= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, < 791471421d848ce13e84f4b21c9e19973d471c4e; >= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, < 734f066933484f6c7cedea0312763249beed5845; >= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, < a07bee32127d7c4cd3b1bb9a088e21d0c93634c9; >= c1e7e466120b80ce49e91af…
Fixed in: Linux 791471421d848ce13e84f4b21c9e19973d471c4e, Linux 734f066933484f6c7cedea0312763249beed5845, Linux 0c3482e965b18bc242e54e899d1c4d391ca8e5e3, Linux 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 791471421d848ce13e84f4b21c9e19973d471c4e; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 734f066933484f6c7cedea0312763249beed5845; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< a07bee32127d7c4cd3b1bb9a088e21d0c93634c9; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< cf20d7476754c00eec04ae23d3e929de33ce0345; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 0c3482e965b18bc242e54e899d1c4d391ca8e5e3; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< ffb80872617b5f9b3dd1536ec2909029fa66f228; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< ced1186fea7c77e16681c7ef4802897885989c3b; \>= c1e7e466120b80ce49e91af0c9da1ce6dee4844a, \< 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a; Linux 3.7.

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

Yes. Fixed in Linux 791471421d848ce13e84f4b21c9e19973d471c4e, Linux 734f066933484f6c7cedea0312763249beed5845, Linux 0c3482e965b18bc242e54e899d1c4d391ca8e5e3, Linux 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a. Upgrade Linux to 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a or later.

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

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/791471421d848ce13e84f4b21c9e19973d471c4e>
- other: <https://git.kernel.org/stable/c/734f066933484f6c7cedea0312763249beed5845>
- other: <https://git.kernel.org/stable/c/a07bee32127d7c4cd3b1bb9a088e21d0c93634c9>
- other: <https://git.kernel.org/stable/c/cf20d7476754c00eec04ae23d3e929de33ce0345>
- other: <https://git.kernel.org/stable/c/0c3482e965b18bc242e54e899d1c4d391ca8e5e3>
- other: <https://git.kernel.org/stable/c/ffb80872617b5f9b3dd1536ec2909029fa66f228>
- other: <https://git.kernel.org/stable/c/ced1186fea7c77e16681c7ef4802897885989c3b>
- other: <https://git.kernel.org/stable/c/1af874e9f4ce22ccf8b10ab5462f32c70d3be21a>

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

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