# CVE-2026-98217: IB/mlx4: Fix use-after-free on pkey sysfs registration failure

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-10-06T08:44:53.152Z
- Modified: 2026-10-19T10:18:22.473Z
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before 791471421d848ce13e84f4b21c9e19973d471c4e; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before 734f066933484f6c7cedea0312763249beed5845; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before a07bee32127d7c4cd3b1bb9a088e21d0c93634c9; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before cf20d7476754c00eec04ae23d3e929de33ce0345; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before 0c3482e965b18bc242e54e899d1c4d391ca8e5e3; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before ffb80872617b5f9b3dd1536ec2909029fa66f228; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before ced1186fea7c77e16681c7ef4802897885989c3b; from c1e7e466120b80ce49e91af0c9da1ce6dee4844a before 1af874e9f4ce22ccf8b10ab5462f32c70d3be21a; 3.7 (not affected: before 3.7; from 5.10.271 up to 5.10.*; from 5.15.222 up to 5.15.*; from 6.1.189 up to 6.1.*; from 6.6.158 up to 6.6.*; from 6.12.112 up to 6.12.*; from 6.18.54 up to 6.18.*; from 7.2.8 up to 7.2.*; from 7.3 up to *)

## References

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

## Sources

- CVE List: [CVE-2026-98217](https://www.cve.org/CVERecord?id=CVE-2026-98217), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-98217](https://nvd.nist.gov/vuln/detail/CVE-2026-98217), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-98217 · Whole record: https://cve.day/CVE-2026-98217.json · Rebuilt by cve.day 2026-11-25T22:59:42.291Z
