CVE-2026-64033: RDMA/rtrs: Fix use-after-free in path file creation cleanup
In the Linux kernel, the following vulnerability has been resolved:
RDMA/rtrs: Fix use-after-free in path file creation cleanup
In the error path of rtrssrvcreatepathfiles(), the sysfs root folders may already have been created and srvpath->kobj may already have been initialized. If a later step fails, the cleanup currently calls kobjectput(&srvpath->kobj) before rtrssrvdestroyoncesysfsrootfolders(srvpath).
kobjectput() may drop the last reference to srvpath->kobj and invoke the release callback, rtrssrvrelease(), which frees srvpath. The following call to rtrssrvdestroyoncesysfsrootfolders(srvpath) then dereferences srvpath internally to access srvpath->srv, resulting in a use-after-free.
This failure path is reached before rtrssrvcreatepathfiles() returns success, so the successful-path lifetime handling is not involved.
Fix this by destroying the sysfs root folders before calling kobjectput(&srvpath->kobj), so srvpath is still valid while the helper accesses it.
This issue was found by a static analysis tool I am developing.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is the severity of CVE-2026-64033?
The severity of CVE-2026-64033 is rated at risk level 35.
How do I fix CVE-2026-64033?
To fix CVE-2026-64033, update your Linux kernel to the latest version where the vulnerability has been patched.
What systems are affected by CVE-2026-64033?
CVE-2026-64033 affects various systems running the Linux kernel with RDMA/rtrs functionality.
What is a use-after-free vulnerability in CVE-2026-64033?
A use-after-free vulnerability occurs when a program continues to use a memory location after it has been freed, potentially leading to unintended behavior.
When was CVE-2026-64033 published?
CVE-2026-64033 was published on July 19, 2026.