{"id":"CVE-2022-50874","state":"PUBLISHED","title":"RDMA/erdma: Fix refcount leak in erdma_mmap","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/erdma: Fix refcount leak in erdma_mmap\n\nrdma_user_mmap_entry_get() take reference, we should release it when not\nneed anymore, add the missing rdma_user_mmap_entry_put() in the error\npath to fix it.","publishedAt":"2025-12-30T12:23:15.388Z","updatedAt":"2026-05-11T19:26:47.947Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"155055771704f8cbb5c176a4309b7dc30a50450c","status":"affected","lessThan":"8372207b009d6abdd60bb05624640bd86386599f","versionType":"git"},{"version":"155055771704f8cbb5c176a4309b7dc30a50450c","status":"affected","lessThan":"410f0f46ffca4d0102470c1e0c747ecfece4204c","versionType":"git"},{"version":"155055771704f8cbb5c176a4309b7dc30a50450c","status":"affected","lessThan":"ee84146c05ad2316b9a7222d0ec4413e0bf30eeb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/erdma/erdma_verbs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.16","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.3","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","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/erdma/erdma_verbs.c"]}],"references":["https://git.kernel.org/stable/c/8372207b009d6abdd60bb05624640bd86386599f","https://git.kernel.org/stable/c/410f0f46ffca4d0102470c1e0c747ecfece4204c","https://git.kernel.org/stable/c/ee84146c05ad2316b9a7222d0ec4413e0bf30eeb"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50874.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50874","state":"PUBLISHED","datePublished":"2025-12-30T12:23:15.388Z","dateUpdated":"2026-05-11T19:26:47.947Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:07.137Z"},"containers":{"cna":{"title":"RDMA/erdma: Fix refcount leak in erdma_mmap","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/erdma: Fix refcount leak in erdma_mmap\n\nrdma_user_mmap_entry_get() take reference, we should release it when not\nneed anymore, add the missing rdma_user_mmap_entry_put() in the error\npath to fix it."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"155055771704f8cbb5c176a4309b7dc30a50450c","status":"affected","lessThan":"8372207b009d6abdd60bb05624640bd86386599f","versionType":"git"},{"version":"155055771704f8cbb5c176a4309b7dc30a50450c","status":"affected","lessThan":"410f0f46ffca4d0102470c1e0c747ecfece4204c","versionType":"git"},{"version":"155055771704f8cbb5c176a4309b7dc30a50450c","status":"affected","lessThan":"ee84146c05ad2316b9a7222d0ec4413e0bf30eeb","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/hw/erdma/erdma_verbs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.0","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.0","versionType":"semver"},{"version":"6.1.16","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2.3","status":"unaffected","lessThanOrEqual":"6.2.*","versionType":"semver"},{"version":"6.3","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/erdma/erdma_verbs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8372207b009d6abdd60bb05624640bd86386599f"},{"url":"https://git.kernel.org/stable/c/410f0f46ffca4d0102470c1e0c747ecfece4204c"},{"url":"https://git.kernel.org/stable/c/ee84146c05ad2316b9a7222d0ec4413e0bf30eeb"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T19:26:47.947Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.1.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.2.3"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.0","versionEndExcluding":"6.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}