{"id":"CVE-2024-57935","state":"PUBLISHED","title":"RDMA/hns: Fix accessing invalid dip_ctx during destroying QP","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hns: Fix accessing invalid dip_ctx during destroying QP\n\nIf it fails to modify QP to RTR, dip_ctx will not be attached. And\nduring detroying QP, the invalid dip_ctx pointer will be accessed.","publishedAt":"2025-01-21T12:01:31.236Z","updatedAt":"2026-05-23T15:56:21.951Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f48084857b9e3d73c1d290307b5a11f61e6f666a","status":"affected","lessThan":"a448c775f0aec6cfbee4bda561447c707153504a","versionType":"git"},{"version":"faa62440a5772b40bb7d78bf9e29556a82ecf153","status":"affected","lessThan":"0572eccf239ce4bd89bd531767ec5ab20e249290","versionType":"git"},{"version":"84707ec6f651df98a141cad59f726d30e6f15574","status":"affected","versionType":"git"},{"version":"6.11.11","status":"affected","lessThan":"6.12","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hns/hns_roce_hw_v2.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.12.2","status":"affected","lessThan":"6.12.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hns/hns_roce_hw_v2.c"]}],"references":["https://git.kernel.org/stable/c/a448c775f0aec6cfbee4bda561447c707153504a","https://git.kernel.org/stable/c/0572eccf239ce4bd89bd531767ec5ab20e249290"],"weaknesses":[],"ingestedAt":"2026-10-29T20:08:12.933Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/57xxx/CVE-2024-57935.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-57935","state":"PUBLISHED","datePublished":"2025-01-21T12:01:31.236Z","dateUpdated":"2026-05-23T15:56:21.951Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-01-19T11:50:08.377Z"},"containers":{"cna":{"title":"RDMA/hns: Fix accessing invalid dip_ctx during destroying QP","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/hns: Fix accessing invalid dip_ctx during destroying QP\n\nIf it fails to modify QP to RTR, dip_ctx will not be attached. And\nduring detroying QP, the invalid dip_ctx pointer will be accessed."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f48084857b9e3d73c1d290307b5a11f61e6f666a","status":"affected","lessThan":"a448c775f0aec6cfbee4bda561447c707153504a","versionType":"git"},{"version":"faa62440a5772b40bb7d78bf9e29556a82ecf153","status":"affected","lessThan":"0572eccf239ce4bd89bd531767ec5ab20e249290","versionType":"git"},{"version":"84707ec6f651df98a141cad59f726d30e6f15574","status":"affected","versionType":"git"},{"version":"6.11.11","status":"affected","lessThan":"6.12","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hns/hns_roce_hw_v2.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6.12.2","status":"affected","lessThan":"6.12.9","versionType":"semver"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/hns/hns_roce_hw_v2.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/a448c775f0aec6cfbee4bda561447c707153504a"},{"url":"https://git.kernel.org/stable/c/0572eccf239ce4bd89bd531767ec5ab20e249290"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-23T15:56:21.951Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.12.2","versionEndExcluding":"6.12.9"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.11.11"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}