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 EC75F2231F for ; Wed, 17 Apr 2024 10:30:20 +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=1713349821; cv=none; b=ococuNZ1jtufdA4dAt7TE9cqtK80/LijrLp7yeiMt05YhRKIwT6lrc2sRFpdNfR0JKQ47qIZjEYvOnWXbYZ1hRhkUl3/aowyNCZffI2/BpwEj2LbfS82Z2yX4+8JMo83hbY8DCLxCn4kHjFPDf/IoMjEsAMQGFNVVpdNuf2Bzw8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713349821; c=relaxed/simple; bh=VbB4sjnSoANXvbHVLZ0/ieiPuNB16Gyb3I7me5TzT98=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=kUttDgi9NIRQw4MvfOq6IhZDWHy0C6iWgmi/l+2dW69zdsw54pxlr0VpGAnVe5p89HZrWFbn8gwev2PwUXc+/JsnvXhbZgFlIlrkksi/5xgtHPCWlLTxlyRdUC42w0ENetaWcT38N2eEvpMzurqv8AGQhuiAStnhUjbe232qGnA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=eRGVhH71; 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="eRGVhH71" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 21E83C072AA; Wed, 17 Apr 2024 10:30:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1713349820; bh=VbB4sjnSoANXvbHVLZ0/ieiPuNB16Gyb3I7me5TzT98=; h=From:To:Cc:Subject:Date:Reply-to:From; b=eRGVhH71Odf7tnZ3Po8Q4k9T7uHwggHhPaHluz6iK0hF8/MS78odQwOR1opcfPnyQ jLVVi+k+0b4ndr3T/c/fwVmfLqnCvJGPap9Q0huN8NplO+5nhi7kQ+0dYOp8+iG8Ny OTiK17rL0IAJGpyBF6ewYH7qq7nzCV9bZYC9vrKQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-26894: ACPI: processor_idle: Fix memory leak in acpi_processor_power_exit() Date: Wed, 17 Apr 2024 12:29:09 +0200 Message-ID: <2024041743-CVE-2024-26894-53ad@gregkh> X-Mailer: git-send-email 2.44.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=4236; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VbB4sjnSoANXvbHVLZ0/ieiPuNB16Gyb3I7me5TzT98=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnyS6K5z3aVpN85aDTj8s5lKsy7+tcYz/TxOvvm1NLsv /sE75uc7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJGAgyzJUXEtlTfO2R87Rz Rg3fou/cui2YkcCwYGrT+VfXZixxMxK+ZBS4O9FT+d7+FAA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: ACPI: processor_idle: Fix memory leak in acpi_processor_power_exit() After unregistering the CPU idle device, the memory associated with it is not freed, leading to a memory leak: unreferenced object 0xffff896282f6c000 (size 1024): comm "swapper/0", pid 1, jiffies 4294893170 hex dump (first 32 bytes): 00 00 00 00 0b 00 00 00 00 00 00 00 00 00 00 00 ................ 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................ backtrace (crc 8836a742): [] kmalloc_trace+0x29d/0x340 [] acpi_processor_power_init+0xf3/0x1c0 [] __acpi_processor_start+0xd3/0xf0 [] acpi_processor_start+0x2c/0x50 [] really_probe+0xe2/0x480 [] __driver_probe_device+0x78/0x160 [] driver_probe_device+0x1f/0x90 [] __driver_attach+0xce/0x1c0 [] bus_for_each_dev+0x70/0xc0 [] bus_add_driver+0x112/0x210 [] driver_register+0x55/0x100 [] acpi_processor_driver_init+0x3b/0xc0 [] do_one_initcall+0x41/0x300 [] kernel_init_freeable+0x320/0x470 [] kernel_init+0x16/0x1b0 [] ret_from_fork+0x2d/0x50 Fix this by freeing the CPU idle device after unregistering it. The Linux kernel CVE team has assigned CVE-2024-26894 to this issue. Affected and fixed versions =========================== Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 4.19.311 with commit d351bcadab6c Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 5.4.273 with commit ea96bf3f8062 Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 5.10.214 with commit c2a30c81bf3c Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 5.15.153 with commit 1cbaf4c793b0 Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 6.1.83 with commit fad9bcd4d754 Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 6.6.23 with commit 3d48e5be1074 Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 6.7.11 with commit 8d14a4d0afb4 Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 6.8.2 with commit cd5c2d0b09d5 Issue introduced in 3.7 with commit 3d339dcbb56d and fixed in 6.9-rc1 with commit e18afcb7b2a1 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-2024-26894 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/acpi/processor_idle.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/d351bcadab6caa6d8ce7159ff4b77e2da35c09fa https://git.kernel.org/stable/c/ea96bf3f80625cddba1391a87613356b1b45716d https://git.kernel.org/stable/c/c2a30c81bf3cb9033fa9f5305baf7c377075e2e5 https://git.kernel.org/stable/c/1cbaf4c793b0808532f4e7b40bc4be7cec2c78f2 https://git.kernel.org/stable/c/fad9bcd4d754cc689c19dc04d2c44b82c1a5d6c8 https://git.kernel.org/stable/c/3d48e5be107429ff5d824e7f2a00d1b610d36fbc https://git.kernel.org/stable/c/8d14a4d0afb49a5b8535d414c782bb334860e73e https://git.kernel.org/stable/c/cd5c2d0b09d5b6d3f0a7bbabe6761a4997e9dee9 https://git.kernel.org/stable/c/e18afcb7b2a12b635ac10081f943fcf84ddacc51