{"id":"CVE-2026-64033","aliases":["CVE-2026-64033"],"related":[],"kind":"vulnerability","state":"published","title":"RDMA/rtrs: Fix use-after-free in path file creation cleanup","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs: Fix use-after-free in path file creation cleanup\n\nIn the error path of rtrs_srv_create_path_files(), the sysfs root folders\nmay already have been created and srv_path->kobj may already have been\ninitialized. If a later step fails, the cleanup currently calls\nkobject_put(&srv_path->kobj) before\nrtrs_srv_destroy_once_sysfs_root_folders(srv_path).\n\nkobject_put() may drop the last reference to srv_path->kobj and invoke the\nrelease callback, rtrs_srv_release(), which frees srv_path. The following\ncall to rtrs_srv_destroy_once_sysfs_root_folders(srv_path) then\ndereferences srv_path internally to access srv_path->srv, resulting in a\nuse-after-free.\n\nThis failure path is reached before rtrs_srv_create_path_files() returns\nsuccess, so the successful-path lifetime handling is not involved.\n\nFix this by destroying the sysfs root folders before calling\nkobject_put(&srv_path->kobj), so srv_path is still valid while the helper\naccesses it.\n\nThis issue was found by a static analysis tool I am developing.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/rtrs: Fix use-after-free in path file creation cleanup\n\nIn the error path of rtrs_srv_create_path_files(), the sysfs root folders\nmay already have been created and srv_path->kobj may already have been\ninitialized. If a later step fails, the cleanup currently calls\nkobject_put(&srv_path->kobj) before\nrtrs_srv_destroy_once_sysfs_root_folders(srv_path).\n\nkobject_put() may drop the last reference to srv_path->kobj and invoke the\nrelease callback, rtrs_srv_release(), which frees srv_path. The following\ncall to rtrs_srv_destroy_once_sysfs_root_folders(srv_path) then\ndereferences srv_path internally to access srv_path->srv, resulting in a\nuse-after-free.\n\nThis failure path is reached before rtrs_srv_create_path_files() returns\nsuccess, so the successful-path lifetime handling is not involved.\n\nFix this by destroying the sysfs root folders before calling\nkobject_put(&srv_path->kobj), so srv_path is still valid while the helper\naccesses it.\n\nThis issue was found by a static analysis tool I am developing.","source":"cvelist"}],"published":"2026-07-19T15:39:22.872Z","modified":"2026-10-13T15:32:56.607Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"bab17b761c8974a869b04462be5d4dd9aad366b4","fixed":"01e42aabaf7632beb4bf235c7238b96c746d4144","status":"affected"},{"type":"git","introduced":"ae4c81644e9105d9f7f713bb0d444737bb6a0cf1","fixed":"548f3956e53a7f7bde912d8129010b8986d5e602","status":"affected"},{"type":"git","introduced":"ae4c81644e9105d9f7f713bb0d444737bb6a0cf1","fixed":"00904a73272b9f3ef3952fe69a833909dccad1ef","status":"affected"},{"type":"git","introduced":"ae4c81644e9105d9f7f713bb0d444737bb6a0cf1","fixed":"92060ab1c5115674cf319175550f85f68405121f","status":"affected"},{"type":"git","introduced":"ae4c81644e9105d9f7f713bb0d444737bb6a0cf1","fixed":"eae62c5451e67e8b033c1681fd3b85d7e9a9a28f","status":"affected"},{"type":"git","introduced":"ae4c81644e9105d9f7f713bb0d444737bb6a0cf1","fixed":"b0e9706fb2859064bb6c677554c4d20c713aa8e0","status":"affected"},{"type":"git","introduced":"ae4c81644e9105d9f7f713bb0d444737bb6a0cf1","fixed":"5b74373390113fba798a76b483837029ab010fef","status":"affected"},{"type":"semver","introduced":"5.15.61","fixed":"5.15.209","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.17","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.17","status":"unaffected"},{"type":"semver","introduced":"5.15.209","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.175","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.142","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.92","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.34","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.0.11","lastAffected":"7.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.15.61","fixed":"5.15.209"},{"status":"affected","introduced":"5.17","fixed":"6.1.175"},{"status":"affected","introduced":"6.2","fixed":"6.6.142"},{"status":"affected","introduced":"6.7","fixed":"6.12.92"},{"status":"affected","introduced":"6.13","fixed":"6.18.34"},{"status":"affected","introduced":"6.19","fixed":"7.0.11"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"},{"status":"affected","version":"7.1"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/01e42aabaf7632beb4bf235c7238b96c746d4144","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/548f3956e53a7f7bde912d8129010b8986d5e602","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/00904a73272b9f3ef3952fe69a833909dccad1ef","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/92060ab1c5115674cf319175550f85f68405121f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eae62c5451e67e8b033c1681fd3b85d7e9a9a28f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b0e9706fb2859064bb6c677554c4d20c713aa8e0","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5b74373390113fba798a76b483837029ab010fef","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-64033","url":"https://www.cve.org/CVERecord?id=CVE-2026-64033","licence":"CVE Terms of Use","modified":"2026-08-05T12:38:27.449Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-64033","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-64033","licence":"Public domain","modified":"2026-10-13T15:32:56.607Z"}],"updatedAt":"2026-11-25T22:59:28.950Z","epss":{"score":0.00488,"percentile":0.43643,"date":"2026-12-01T12:00:22.000Z"}}