From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D49D722339 for ; Thu, 1 May 2025 14:12:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108733; cv=none; b=tI8wRz/UfK2CDruto3quUjhzw9NXu9685AVxxyAniRiP1T/D1vCQS41kyq9QPpI3k9jccObpnzjFDcAuoV8v99jCO4dTBz7EImoYRAmo+HIxV7o7VLVm2/hNWLZSWZBUqeC75xfmHdYC0QLWGW0lATDnGiCdFiXpRzqlaC1hZks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108733; c=relaxed/simple; bh=r3gmVy6DFkC0lOuqmy6CCAYFKK35MUaIQ/Eoy1UtgbE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=TW3PZp1ZXyukM2vib0LX1hxJoWPYc3yH1p+n75lpRfQR3zaIiX3JtR9PkB/TY0q9ow1YWjzjWgXBEom5rpyF+zbBLxS1AlWDinESSNLVvsrGXWLPKYiGnFQqrD8q2ghpgzDm5d7ofJokbDLE7+f3hOZ+/NQi52Ug8jAiDS4bhO8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=wRAbIVR+; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="wRAbIVR+" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 61958C4CEE3; Thu, 1 May 2025 14:12:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108733; bh=r3gmVy6DFkC0lOuqmy6CCAYFKK35MUaIQ/Eoy1UtgbE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=wRAbIVR+Nug+HZu47FXiEqDsHVeo6G4tqcAU4wsoS5BjmcmUbD3Pn7xu2HykwZ+tG aJSHitLegvEzfaNMqVnTnkAqTZ56NFFHgxCTOcZiCyUORXZ8CVRLAvcFN/Aen0mCwh bl47pruFDE7zxKGHkp02PS7Nbq9Wr9x+TypnPfXs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman , "Masami Hiramatsu (Google)" Subject: CVE-2022-49795: rethook: fix a potential memleak in rethook_alloc() Date: Thu, 1 May 2025 16:09:45 +0200 Message-ID: <2025050124-CVE-2022-49795-e512@gregkh> X-Mailer: git-send-email 2.49.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=1984; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zPgrG3gjn8XUVgh1ji9f5zvrLE6sR6yBbz0bGUAGrPY=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDVPMAqTWKX+bsfmWdlFz/ptUbb7tRs5XY3pm/Z0hO HXHSvdjHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRji6G+R7dD65af91Tydx9 I83g7PrODX373BkW9BlLZzyRMIvy5ms2fPo1wXUD26ojAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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) The Linux kernel CVE team has assigned CVE-2022-49795 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit 54ecbe6f1ed5138c895bdff55608cf502755b20e and fixed in 6.0.10 with commit cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c Issue introduced in 5.18 with commit 54ecbe6f1ed5138c895bdff55608cf502755b20e and fixed in 6.1 with commit 0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2022-49795 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: kernel/trace/rethook.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/cbc5d1f9a8cc40ba2bc6779b36d2ea1f65bc027c https://git.kernel.org/stable/c/0a1ebe35cb3b7aa1f4b26b37e2a0b9ae68dc4ffb