{"id":"CVE-2026-64033","published":"2026-07-19T15:39:22Z","modified":"2026-08-05T12:38:27Z","title":"RDMA/rtrs: Fix use-after-free in path file creation cleanup","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":9.8,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00488,"percentile":0.42952,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/01e42aabaf7632beb4bf235c7238b96c746d4144","tags":[]},{"url":"https://git.kernel.org/stable/c/548f3956e53a7f7bde912d8129010b8986d5e602","tags":[]},{"url":"https://git.kernel.org/stable/c/00904a73272b9f3ef3952fe69a833909dccad1ef","tags":[]},{"url":"https://git.kernel.org/stable/c/92060ab1c5115674cf319175550f85f68405121f","tags":[]},{"url":"https://git.kernel.org/stable/c/eae62c5451e67e8b033c1681fd3b85d7e9a9a28f","tags":[]},{"url":"https://git.kernel.org/stable/c/b0e9706fb2859064bb6c677554c4d20c713aa8e0","tags":[]},{"url":"https://git.kernel.org/stable/c/5b74373390113fba798a76b483837029ab010fef","tags":[]}],"priority":{"score":15.5,"factors":[{"name":"EPSS percentile","points":8.59},{"name":"CVSS severity","points":6.86}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= bab17b761c8974a869b04462be5d4dd9aad366b4, < 01e42aabaf7632beb4bf235c7238b96c746d4144",">= ae4c81644e9105d9f7f713bb0d444737bb6a0cf1, < 548f3956e53a7f7bde912d8129010b8986d5e602",">= ae4c81644e9105d9f7f713bb0d444737bb6a0cf1, < 00904a73272b9f3ef3952fe69a833909dccad1ef",">= ae4c81644e9105d9f7f713bb0d444737bb6a0cf1, < 92060ab1c5115674cf319175550f85f68405121f",">= ae4c81644e9105d9f7f713bb0d444737bb6a0cf1, < eae62c5451e67e8b033c1681fd3b85d7e9a9a28f",">= ae4c81644e9105d9f7f713bb0d444737bb6a0cf1, < b0e9706fb2859064bb6c677554c4d20c713aa8e0",">= ae4c81644e9105d9f7f713bb0d444737bb6a0cf1, < 5b74373390113fba798a76b483837029ab010fef",">= 5.15.61, < 5.15.209"]},{"vendor":"Linux","product":"Linux","versions":["5.17"]}],"euvd":{"id":"EUVD-2026-45606","exploited":false,"provenance":"source"}}