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 096192E36FD for ; Tue, 7 Oct 2025 15:21: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=1759850473; cv=none; b=JYzpKyiqYoebT9hgEAm27fdoey7UT0iz2CBGiV5iSoxUeRpfhiTkrivTJdffqfgvguL+EdqyOXLrQp1o4ckT27ZCDZ+YmF9Ru7FoC4BwVQbn+wqP+YfuL+zFlG7OdaqXWhW0wUC4l8AX0i2+qCYlHBurUlPzlWG42UjT5ZZU1z0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1759850473; c=relaxed/simple; bh=DTKWgizNXxmQQ+YM2T3khmhLN99K6kWvXhEhreY5+tc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aVxkNdH7khF4G/UAnWmS+sBCByYdIjxlcEP2ST2Ai0dPBTK+mm10nvRXXoLOlbWBoZoG15nrGnbt4E1g8XWNRUBhcxfKC3ALo5oOVzZY8CXhoSx/HiVhXaclcs8wYiC78yiv9HKk5YkzHwuZGjIzvHUrXEi3OhMmJ8I6Cf/80Cc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rplFzPMu; 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="rplFzPMu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 88C25C4CEF1; Tue, 7 Oct 2025 15:21:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1759850472; bh=DTKWgizNXxmQQ+YM2T3khmhLN99K6kWvXhEhreY5+tc=; h=From:To:Cc:Subject:Date:Reply-to:From; b=rplFzPMuVejUgcMsQ7coM0RFdqeWtTw9OYvidIQCaMoC3RWEiXmX3hxVJetKNVJPr 9LFEKT7yS9j6/FN514zUln2yx6sexM0U3cbl1BV15MoFjk8AvKE0nrSC7Ngxj0Hx8t EZsYJJEizDa8wUoIXzdCQ6TUEWQrFj703j2DT8JI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50521: platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]() Date: Tue, 7 Oct 2025 17:19:08 +0200 Message-ID: <2025100704-CVE-2022-50521-fd26@gregkh> X-Mailer: git-send-email 2.51.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=3393; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8JsgCaHDVRi5JQpJPeWUR8R0+6T16KnI8aywNN2Lc5c=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlP9TNiZ3nYH64QEu37va6yuaQy1m3HPWuWOVXmK07dM Z42M/tiRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExEo5xhwSwnhw7bA11VGTL5 OdPMON6J2CSsYVhwsX+eWvh01Q+M/W+invIw/D41rfgcAA== 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: platform/x86: mxm-wmi: fix memleak in mxm_wmi_call_mx[ds|mx]() The ACPI buffer memory (out.pointer) returned by wmi_evaluate_method() is not freed after the call, so it leads to memory leak. The method results in ACPI buffer is not used, so just pass NULL to wmi_evaluate_method() which fixes the memory leak. The Linux kernel CVE team has assigned CVE-2022-50521 to this issue. Affected and fixed versions =========================== Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 4.14.303 with commit 50ac517d6f5348b276f1f663799cf85dce521518 Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 4.19.270 with commit 5b0f81b0808235967868e01336c976e840217108 Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 5.4.229 with commit 14bb4bde3b7b2584734b13747b345caeeb41bea3 Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 5.10.163 with commit 17cd8c46cbec4e6ad593fb9159928b8e7608c11a Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 5.15.86 with commit 3cf81501356c9e898ad94b2369ffc805f83f7d7b Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 6.0.16 with commit 379e7794c5e7485193d25d73614fbbd1e1387f6f Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 6.1.2 with commit 87426ce3bd57ad414b6e2436434ef8128986a9a5 Issue introduced in 3.0 with commit 99b38b4acc0d7dbbab443273577cff60080fcfad and fixed in 6.2 with commit 727cc0147f5066e359aca65cc6cc5e6d64cc15d8 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-50521 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/platform/x86/mxm-wmi.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/50ac517d6f5348b276f1f663799cf85dce521518 https://git.kernel.org/stable/c/5b0f81b0808235967868e01336c976e840217108 https://git.kernel.org/stable/c/14bb4bde3b7b2584734b13747b345caeeb41bea3 https://git.kernel.org/stable/c/17cd8c46cbec4e6ad593fb9159928b8e7608c11a https://git.kernel.org/stable/c/3cf81501356c9e898ad94b2369ffc805f83f7d7b https://git.kernel.org/stable/c/379e7794c5e7485193d25d73614fbbd1e1387f6f https://git.kernel.org/stable/c/87426ce3bd57ad414b6e2436434ef8128986a9a5 https://git.kernel.org/stable/c/727cc0147f5066e359aca65cc6cc5e6d64cc15d8