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
{ "vanir_signatures": [ { "digest": { "threshold": 0.9, "line_hashes": [ "133113755592327943490571929558298985006", "110796949200809878580362978602928544948", "13789727989915052857378104174678305863", "48871716451397497349201162476290526022", "131754974192915729654277818269463443123" ] }, "signature_version": "v1", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c", "target": { "file": "kernel/trace/rethook.c" }, "id": "CVE-2022-49795-45b04112", "signature_type": "Line" }, { "digest": { "length": 268.0, "function_hash": "217485805093707353256773826322469770099" }, "signature_version": "v1", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb", "target": { "file": "kernel/trace/rethook.c", "function": "rethook_alloc" }, "id": "CVE-2022-49795-65fd8932", "signature_type": "Function" }, { "digest": { "length": 268.0, "function_hash": "217485805093707353256773826322469770099" }, "signature_version": "v1", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c", "target": { "file": "kernel/trace/rethook.c", "function": "rethook_alloc" }, "id": "CVE-2022-49795-6bd5ffa6", "signature_type": "Function" }, { "digest": { "threshold": 0.9, "line_hashes": [ "133113755592327943490571929558298985006", "110796949200809878580362978602928544948", "13789727989915052857378104174678305863", "48871716451397497349201162476290526022", "131754974192915729654277818269463443123" ] }, "signature_version": "v1", "deprecated": false, "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb", "target": { "file": "kernel/trace/rethook.c" }, "id": "CVE-2022-49795-6d3358f6", "signature_type": "Line" } ] }