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