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 3B27E3128D4 for ; Wed, 22 Oct 2025 13:25:30 +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=1761139530; cv=none; b=ZmX1DNy3UEz1ZLsG3Nwg4DP57TMk0uumPEVg6nOWwzQz9NYwZF1eCQLRc3mUquJrGRIsxH99AyWYxTZQYKXEXLEvax2dSwYdliS5nOubV11xup26OomiE7dE3Py8SDFACGjIgXkVypHhBkecv6ilmEcCRn/2nZvL88AljSR7ckA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761139530; c=relaxed/simple; bh=oUTzTrmMv+n162DAb1vqUStu83N3HdzIy6p/6Ib5mv0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=YXPiFRqCLnmzU9WiMoCacfcSOOg7RfMJAacL6Thm7/W5lc9BF1PGmEuBaxHOPT35WujP4OqPM/Z8izVyQQsLuHiW/vMjq+S6fuvTSA4BnN/PJpVgQBXMpMo8Mwto4eThlNMwcfOj/ZTAfLq4zdKUCy2HzG3MO/xQtSuAm2GILtY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0hq5z/bc; 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="0hq5z/bc" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C087FC4CEE7; Wed, 22 Oct 2025 13:25:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1761139530; bh=oUTzTrmMv+n162DAb1vqUStu83N3HdzIy6p/6Ib5mv0=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0hq5z/bcM1HQhNV92hUvfcOvBRrmE0e+BYLdnkW5xWQ2YHvKAN9Vmh+syfgSxV247 bLlw3Ry1hvEpfuYisy46qblJkL0u7aaAsVqqgEqTdfKzbwxDESMwU5LZbxVSp5QaXW DEFS5lGtLbHi2h2VvY6AQORzT65yG9qe/QTcMu1k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50562: tpm: acpi: Call acpi_put_table() to fix memory leak Date: Wed, 22 Oct 2025 15:24:10 +0200 Message-ID: <2025102206-CVE-2022-50562-5b54@gregkh> X-Mailer: git-send-email 2.51.1 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=2839; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=0vLjQVqZlIf9PORHcVo1zoQxK0+viL4SuJXYxsEMu4c=; b=owGbwMvMwCRo6H6F97bub03G02pJDBk/bn2bsPFyn7bdfqdDece2LmPMNpx4UPGM1sPPfIpKD LNc9obu7IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJPPvPMD8h/vAjb6MXIil/ BbIZ9bdOaNaZ+JdhwY2sRT+meClxCOya+WTyr6VHm185KgAA 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: tpm: acpi: Call acpi_put_table() to fix memory leak The start and length of the event log area are obtained from TPM2 or TCPA table, so we call acpi_get_table() to get the ACPI information, but the acpi_get_table() should be coupled with acpi_put_table() to release the ACPI memory, add the acpi_put_table() properly to fix the memory leak. While we are at it, remove the redundant empty line at the end of the tpm_read_log_acpi(). The Linux kernel CVE team has assigned CVE-2022-50562 to this issue. Affected and fixed versions =========================== Issue introduced in 4.18 with commit 0bfb23746052168620c5b52f49d8a47c3bb022fa and fixed in 5.10.163 with commit 8ddc48068ac85740d3d5f9f3b0b323e733a35b33 Issue introduced in 4.18 with commit 0bfb23746052168620c5b52f49d8a47c3bb022fa and fixed in 5.15.87 with commit 638cd298dfebce46919cbd6cf1884701215f506d Issue introduced in 4.18 with commit 0bfb23746052168620c5b52f49d8a47c3bb022fa and fixed in 6.0.17 with commit 694a3d66f493afd77c704c6de91d9be4d6e004e4 Issue introduced in 4.18 with commit 0bfb23746052168620c5b52f49d8a47c3bb022fa and fixed in 6.1.3 with commit bf31e3f8077af539feaf4e9bbf82e8eb51e7e5a8 Issue introduced in 4.18 with commit 0bfb23746052168620c5b52f49d8a47c3bb022fa and fixed in 6.2 with commit 8740a12ca2e2959531ad253bac99ada338b33d80 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-50562 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: drivers/char/tpm/eventlog/acpi.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/8ddc48068ac85740d3d5f9f3b0b323e733a35b33 https://git.kernel.org/stable/c/638cd298dfebce46919cbd6cf1884701215f506d https://git.kernel.org/stable/c/694a3d66f493afd77c704c6de91d9be4d6e004e4 https://git.kernel.org/stable/c/bf31e3f8077af539feaf4e9bbf82e8eb51e7e5a8 https://git.kernel.org/stable/c/8740a12ca2e2959531ad253bac99ada338b33d80