{"id":"CVE-2022-50822","state":"PUBLISHED","title":"RDMA/restrack: Release MR restrack when delete","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/restrack: Release MR restrack when delete\n\nThe MR restrack also needs to be released when delete it, otherwise it\ncause memory leak as the task struct won't be released.","publishedAt":"2025-12-30T12:08:36.228Z","updatedAt":"2026-10-15T21:41:24.165Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"13586753ae55146269a6dc8b216f17d86b81560c","versionType":"git"},{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"37c90753079fc95d93cc31b79796dd2ae57ad018","versionType":"git"},{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"8731cb5c7820bef577bab4ff17691fbf61c671cb","versionType":"git"},{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"dac153f2802db1ad46207283cb9b2aae3d707a45","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/restrack.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/restrack.c"]}],"references":["https://git.kernel.org/stable/c/13586753ae55146269a6dc8b216f17d86b81560c","https://git.kernel.org/stable/c/37c90753079fc95d93cc31b79796dd2ae57ad018","https://git.kernel.org/stable/c/8731cb5c7820bef577bab4ff17691fbf61c671cb","https://git.kernel.org/stable/c/dac153f2802db1ad46207283cb9b2aae3d707a45"],"weaknesses":[],"ingestedAt":"2026-10-29T20:05:26.763Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/50xxx/CVE-2022-50822.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2022-50822","state":"PUBLISHED","datePublished":"2025-12-30T12:08:36.228Z","dateUpdated":"2026-10-15T21:41:24.165Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-12-30T12:06:07.131Z"},"containers":{"cna":{"title":"RDMA/restrack: Release MR restrack when delete","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/restrack: Release MR restrack when delete\n\nThe MR restrack also needs to be released when delete it, otherwise it\ncause memory leak as the task struct won't be released."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"13586753ae55146269a6dc8b216f17d86b81560c","versionType":"git"},{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"37c90753079fc95d93cc31b79796dd2ae57ad018","versionType":"git"},{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"8731cb5c7820bef577bab4ff17691fbf61c671cb","versionType":"git"},{"version":"13ef5539def732dc7b9c58c320d97a0a95b52634","status":"affected","lessThan":"dac153f2802db1ad46207283cb9b2aae3d707a45","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/restrack.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.10","versionType":"semver"},{"version":"5.15.86","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.0.16","status":"unaffected","lessThanOrEqual":"6.0.*","versionType":"semver"},{"version":"6.1.2","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/infiniband/core/restrack.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/13586753ae55146269a6dc8b216f17d86b81560c"},{"url":"https://git.kernel.org/stable/c/37c90753079fc95d93cc31b79796dd2ae57ad018"},{"url":"https://git.kernel.org/stable/c/8731cb5c7820bef577bab4ff17691fbf61c671cb"},{"url":"https://git.kernel.org/stable/c/dac153f2802db1ad46207283cb9b2aae3d707a45"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The bug is reached via local InfiniBand uverbs MR deregistration (IB_USER_VERBS_CMD_DEREG_MR / UVERBS_METHOD_MR_DESTROY → uverbs_free_mr → ib_dereg_mr_user → rdma_restrack_del), not by processing remote network packets.\nAC:L - An attacker can reliably create and destroy MRs through uverbs, and can also drive the concurrent nldev RES_MR_GET path that holds a restrack reference; both sides of the race are attacker-controlled, so no external conditions are required.\nPR:L - uverbs device nodes are created mode 0666 with no capability check in ib_uverbs_open, and RDMA_NLDEV_CMD_RES_MR_GET does not require RDMA_NL_ADMIN_PERM, so an unprivileged local user on a system with an RDMA device (hardware or SoftRoCE) can trigger the bug.\nUI:N - Exploitation requires only the attacker's own uverbs and netlink operations; no action by another user is needed.\nS:U - Impact remains within the local kernel's authority (resource tracking / MR object lifetime); this is not a VM escape, IOMMU bypass, or other cross-boundary break.\nC:H - Skipping wait_for_completion lets ib_dereg_mr_user free the MR while nldev still holds a restrack kref and fill_res_mr_entry reads MR fields, yielding a use-after-free that can be leveraged for arbitrary disclosure.\nI:H - The same use-after-free of the MR/restrack object enables heap reuse and corruption primitives sufficient for integrity compromise or control-flow hijacking under the highest-severity interpretation.\nA:H - The UAF can cause kernel oops/crash, and even without winning the race every MR delete leaks a task_struct reference via the skipped rdma_restrack_put, which can exhaust kernel memory through repeated create/destroy."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-05T08:59:47.720Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"5.15.86"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.0.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.1.2"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10","versionEndExcluding":"6.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2022-50822","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"version":"2.0.3","timestamp":"2026-10-15T21:32:37.622581Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-15T21:41:24.165Z"}}]}}}