CVE-2022-49795Published May 1, 2025 · May 1Updated Nov 7
rethook: fix a potential memleak in rethook_alloc()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
rethook: fix a potential memleak in rethook_alloc()
In rethook_alloc(), the variable rh is not freed or passed out if handler is NULL, which could lead to a memleak, fix it.
[Masami: Add "rethook:" tag to the title.]
Acke-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
From the CVE record · Linux
The Linux kernel's rethook_alloc() can leak memory when its handler is NULL because the allocated object is neither freed nor returned. The input does not establish whether an attacker can trigger this condition or specify access or user-interaction requirements.
Engineers running the Linux kernel should check their deployments; affected versions are not specified.