CVE-2026-98217

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

State
Published
Severity
Not scored
Published
Oct 6, 2026
Updated
Oct 19, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before 791471421d848ce13e84f4b21c9e19973d471c4eAffected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before 734f066933484f6c7cedea0312763249beed5845Affected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before a07bee32127d7c4cd3b1bb9a088e21d0c93634c9Affected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before cf20d7476754c00eec04ae23d3e929de33ce0345Affected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before 0c3482e965b18bc242e54e899d1c4d391ca8e5e3Affected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before ffb80872617b5f9b3dd1536ec2909029fa66f228Affected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before ced1186fea7c77e16681c7ef4802897885989c3bAffected
  • c1e7e466120b80ce49e91af0c9da1ce6dee4844a to before 1af874e9f4ce22ccf8b10ab5462f32c70d3be21aAffected
LinuxLinux
  • 3.7Affected
  • before 3.7Not affected
  • 5.10.271 through 5.10.*Not affected
  • 5.15.222 through 5.15.*Not affected
  • 6.1.189 through 6.1.*Not affected
  • 6.6.158 through 6.6.*Not affected
  • 6.12.112 through 6.12.*Not affected
  • 6.18.54 through 6.18.*Not affected
  • 7.2.8 through 7.2.*Not affected
  • 7.3 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.