# CVE-2022-49795: rethook: fix a potential memleak in rethook_alloc()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-02)
- Published: 2025-05-01T14:09:25.764Z
- Modified: 2026-11-05T20:17:11.927Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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>

(As written by CVE List.)

## Affected

- Linux Linux: from 54ecbe6f1ed5138c895bdff55608cf502755b20e before cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c; from 54ecbe6f1ed5138c895bdff55608cf502755b20e before 0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb; 5.18 (not affected: before 5.18; from 6.0.10 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.18 before 6.0.10; 6.1

## References

- <https://git.kernel.org/stable/c/cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c> (patch)
- <https://git.kernel.org/stable/c/0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb> (patch)

## Sources

- CVE List: [CVE-2022-49795](https://www.cve.org/CVERecord?id=CVE-2022-49795), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-49795](https://nvd.nist.gov/vuln/detail/CVE-2022-49795), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-49795 · Whole record: https://cve.day/CVE-2022-49795.json · Rebuilt by cve.day 2026-11-25T22:58:20.874Z
