CVE-2022-49795

rethook: fix a potential memleak in rethook_alloc()

State
Published
Severity
Not scored
Published
May 1, 2025
Updated
May 11, 2026
Reserved
May 1, 2025

Read the record on cve.org

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>

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 54ecbe6f1ed5138c895bdff55608cf502755b20e to before cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027cAffected
  • 54ecbe6f1ed5138c895bdff55608cf502755b20e to before 0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffbAffected
LinuxLinux
  • 5.18Affected
  • before 5.18Not affected
  • 6.0.10 through 6.0.*Not affected
  • 6.1 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.