{"api_version":"1","generated_at":"2026-11-30T19:18:02+00:00","cve":"CVE-2026-139664","urls":{"html":"https://cve.report/CVE-2026-139664","api":"https://cve.report/api/cve/CVE-2026-139664.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139664","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139664"},"summary":{"title":"RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT\n\nThe UVERBS_METHOD_GET_CONTEXT handler allocates the ucontext via\nib_alloc_ucontext(), which calls rdma_restrack_new() (initialising the\nkref to 1) and rdma_restrack_set_name(NULL), the latter attaching the\ncurrent task and taking a task_struct reference.  When ib_init_ucontext()\nsubsequently fails, the error path only does:\n\n\tkfree(attrs->context);\n\tattrs->context = NULL;\n\nwithout first calling rdma_restrack_put() on &attrs->context->res.  The\nkref therefore never reaches zero, restrack_release() is never invoked,\nand put_task_struct() is never called, so the task_struct reference taken\nduring set_name is leaked permanently.\n\nA local user with access to an RDMA device can repeat this path (e.g. by\nhitting an RDMA cgroup limit or supplying invalid ucaps) and leak one\ntask_struct reference per attempt, eventually preventing those processes\nfrom being reaped or exhausting memory.\n\nThe legacy ib_uverbs_get_context() path already handles this correctly\nat its err_ucontext label, where rdma_restrack_put() precedes kfree().\nMirror that ordering here.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:50","updated_at":"2026-11-30 14:19:50"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/02e31eea7c929384b5efe2e80fa22fb42601724a","name":"https://git.kernel.org/stable/c/02e31eea7c929384b5efe2e80fa22fb42601724a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9dcacdc41083cccff74292851bf9fde999e0731a","name":"https://git.kernel.org/stable/c/9dcacdc41083cccff74292851bf9fde999e0731a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e845dc5fa35d90c28861c6a21063f7c73360af75","name":"https://git.kernel.org/stable/c/e845dc5fa35d90c28861c6a21063f7c73360af75","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d","name":"https://git.kernel.org/stable/c/7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/e47ea092ab3cc9f0074f141f749165c86de42171","name":"https://git.kernel.org/stable/c/e47ea092ab3cc9f0074f141f749165c86de42171","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f","name":"https://git.kernel.org/stable/c/c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/d1946ab6dbc31ac4fd87123c337fbabe4da539ef","name":"https://git.kernel.org/stable/c/d1946ab6dbc31ac4fd87123c337fbabe4da539ef","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7f0bac5c52cb3a31a674ca61c25cd0be2151a05d","name":"https://git.kernel.org/stable/c/7f0bac5c52cb3a31a674ca61c25cd0be2151a05d","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139664","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139664","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 e845dc5fa35d90c28861c6a21063f7c73360af75 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 7f0bac5c52cb3a31a674ca61c25cd0be2151a05d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 d1946ab6dbc31ac4fd87123c337fbabe4da539ef git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 e47ea092ab3cc9f0074f141f749165c86de42171 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 02e31eea7c929384b5efe2e80fa22fb42601724a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a1123418ba1078037d9fecb72573ff7222dfe201 9dcacdc41083cccff74292851bf9fde999e0731a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 5.6","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.6 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/infiniband/core/uverbs_std_types_device.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"e845dc5fa35d90c28861c6a21063f7c73360af75","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"7f0bac5c52cb3a31a674ca61c25cd0be2151a05d","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"d1946ab6dbc31ac4fd87123c337fbabe4da539ef","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"e47ea092ab3cc9f0074f141f749165c86de42171","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"02e31eea7c929384b5efe2e80fa22fb42601724a","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"},{"lessThan":"9dcacdc41083cccff74292851bf9fde999e0731a","status":"affected","version":"a1123418ba1078037d9fecb72573ff7222dfe201","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/infiniband/core/uverbs_std_types_device.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"5.6"},{"lessThan":"5.6","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.275","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"5.6","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"5.6","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT\n\nThe UVERBS_METHOD_GET_CONTEXT handler allocates the ucontext via\nib_alloc_ucontext(), which calls rdma_restrack_new() (initialising the\nkref to 1) and rdma_restrack_set_name(NULL), the latter attaching the\ncurrent task and taking a task_struct reference.  When ib_init_ucontext()\nsubsequently fails, the error path only does:\n\n\tkfree(attrs->context);\n\tattrs->context = NULL;\n\nwithout first calling rdma_restrack_put() on &attrs->context->res.  The\nkref therefore never reaches zero, restrack_release() is never invoked,\nand put_task_struct() is never called, so the task_struct reference taken\nduring set_name is leaked permanently.\n\nA local user with access to an RDMA device can repeat this path (e.g. by\nhitting an RDMA cgroup limit or supplying invalid ucaps) and leak one\ntask_struct reference per attempt, eventually preventing those processes\nfrom being reaped or exhausting memory.\n\nThe legacy ib_uverbs_get_context() path already handles this correctly\nat its err_ucontext label, where rdma_restrack_put() precedes kfree().\nMirror that ordering here."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:36:50.627Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/e845dc5fa35d90c28861c6a21063f7c73360af75"},{"url":"https://git.kernel.org/stable/c/7f0bac5c52cb3a31a674ca61c25cd0be2151a05d"},{"url":"https://git.kernel.org/stable/c/c50f84dd10f2b6a0d8fa203b08a48d4bb333a07f"},{"url":"https://git.kernel.org/stable/c/7b0cbff7c7e12586dbd55a8ac6a1133da0b7979d"},{"url":"https://git.kernel.org/stable/c/d1946ab6dbc31ac4fd87123c337fbabe4da539ef"},{"url":"https://git.kernel.org/stable/c/e47ea092ab3cc9f0074f141f749165c86de42171"},{"url":"https://git.kernel.org/stable/c/02e31eea7c929384b5efe2e80fa22fb42601724a"},{"url":"https://git.kernel.org/stable/c/9dcacdc41083cccff74292851bf9fde999e0731a"}],"title":"RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139664","datePublished":"2026-11-30T13:36:50.627Z","dateReserved":"2026-11-30T13:22:15.946Z","dateUpdated":"2026-11-30T13:36:50.627Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:50","lastModifiedDate":"2026-11-30 14:19:50","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139664","Ordinal":"1","Title":"RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in ","CVE":"CVE-2026-139664","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139664","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in GET_CONTEXT\n\nThe UVERBS_METHOD_GET_CONTEXT handler allocates the ucontext via\nib_alloc_ucontext(), which calls rdma_restrack_new() (initialising the\nkref to 1) and rdma_restrack_set_name(NULL), the latter attaching the\ncurrent task and taking a task_struct reference.  When ib_init_ucontext()\nsubsequently fails, the error path only does:\n\n\tkfree(attrs->context);\n\tattrs->context = NULL;\n\nwithout first calling rdma_restrack_put() on &attrs->context->res.  The\nkref therefore never reaches zero, restrack_release() is never invoked,\nand put_task_struct() is never called, so the task_struct reference taken\nduring set_name is leaked permanently.\n\nA local user with access to an RDMA device can repeat this path (e.g. by\nhitting an RDMA cgroup limit or supplying invalid ucaps) and leak one\ntask_struct reference per attempt, eventually preventing those processes\nfrom being reaped or exhausting memory.\n\nThe legacy ib_uverbs_get_context() path already handles this correctly\nat its err_ucontext label, where rdma_restrack_put() precedes kfree().\nMirror that ordering here.","Type":"Description","Title":"RDMA/uverbs: Drop restrack ref on ib_init_ucontext() failure in "}]}}}