{"id":"CVE-2026-45922","state":"PUBLISHED","title":"RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler\n\nThe UVERBS_HANDLER(MLX5_IB_METHOD_GET_DATA_DIRECT_SYSFS_PATH) function\nallocates memory for the device path using kobject_get_path(). If the\nlength of the device path exceeds the output buffer length, the function\nreturns -ENOSPC but does not free the allocated memory, resulting in a\nmemory leak.\n\nAdd a kfree() call to the error path to ensure the allocated memory is\nproperly freed.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review.","publishedAt":"2026-05-27T12:17:41.431Z","updatedAt":"2026-05-27T12:17:41.431Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"ee998cdbff6680891b0efd9d6ce53a388e5342c3","versionType":"git"},{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"b2bc649c18fbe8a7fd38d17266da3dcbfbcc44d2","versionType":"git"},{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"b3a10eca24fcfe913c0875e620f19596001bd6dc","versionType":"git"},{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"9b9d253908478f504297ac283c514e5953ddafa6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/std_types.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/std_types.c"]}],"references":["https://git.kernel.org/stable/c/ee998cdbff6680891b0efd9d6ce53a388e5342c3","https://git.kernel.org/stable/c/b2bc649c18fbe8a7fd38d17266da3dcbfbcc44d2","https://git.kernel.org/stable/c/b3a10eca24fcfe913c0875e620f19596001bd6dc","https://git.kernel.org/stable/c/9b9d253908478f504297ac283c514e5953ddafa6"],"weaknesses":[],"ingestedAt":"2026-10-29T20:12:07.131Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/45xxx/CVE-2026-45922.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-45922","state":"PUBLISHED","datePublished":"2026-05-27T12:17:41.431Z","dateUpdated":"2026-05-27T12:17:41.431Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-13T15:03:33.085Z"},"containers":{"cna":{"title":"RDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/mlx5: Fix memory leak in GET_DATA_DIRECT_SYSFS_PATH handler\n\nThe UVERBS_HANDLER(MLX5_IB_METHOD_GET_DATA_DIRECT_SYSFS_PATH) function\nallocates memory for the device path using kobject_get_path(). If the\nlength of the device path exceeds the output buffer length, the function\nreturns -ENOSPC but does not free the allocated memory, resulting in a\nmemory leak.\n\nAdd a kfree() call to the error path to ensure the allocated memory is\nproperly freed.\n\nCompile tested only. Issue found using a prototype static analysis tool\nand code review."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"ee998cdbff6680891b0efd9d6ce53a388e5342c3","versionType":"git"},{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"b2bc649c18fbe8a7fd38d17266da3dcbfbcc44d2","versionType":"git"},{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"b3a10eca24fcfe913c0875e620f19596001bd6dc","versionType":"git"},{"version":"ec7ad6530909983c8736c80af46e3529ce7bab55","status":"affected","lessThan":"9b9d253908478f504297ac283c514e5953ddafa6","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/std_types.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.12","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.12","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.14","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.4","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/mlx5/std_types.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/ee998cdbff6680891b0efd9d6ce53a388e5342c3"},{"url":"https://git.kernel.org/stable/c/b2bc649c18fbe8a7fd38d17266da3dcbfbcc44d2"},{"url":"https://git.kernel.org/stable/c/b3a10eca24fcfe913c0875e620f19596001bd6dc"},{"url":"https://git.kernel.org/stable/c/9b9d253908478f504297ac283c514e5953ddafa6"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-27T12:17:41.431Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.18.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"6.19.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}