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 ADC232BB0A for ; Sat, 2 Mar 2024 21:54: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=1709416453; cv=none; b=Xy/L9dFrqWDDkHeyLlB0n1v/kdJG5xp633gO0+bglkVgP+D1dgBKDh2EVGiScENJPd5AsBljM/TotpcM204edVuxv78Pn7OsWEUJFB5PvJdmhoof1ubzEXol29knGvDt5X62mdeZtslJwmJsriwGt+tOMBrroRyMiwzxVMoa3Z8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709416453; c=relaxed/simple; bh=SjnsOh5DejDnhFeOenauenclJssSFjRX8nN4cwh/u7E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QHJbwjeo8+D2IjHAkYBDl+HBo4hpZsG1U9aHnQPFFv9i2v02Fk8hIAGvWjOmHkEsrz2AZsqgPJdSkVMwfLsbOnnx6yOrQ2uRFM7kGl3cY6WQVFYCTlPkj3XgCEHM5SuULDyyw0tnd2ySenUD7osbSGhUGDprUkXKKJcg71WsA+I= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DkTkMlPC; 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="DkTkMlPC" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 31E7DC433F1; Sat, 2 Mar 2024 21:54:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1709416453; bh=SjnsOh5DejDnhFeOenauenclJssSFjRX8nN4cwh/u7E=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DkTkMlPC3+mx+0TpDhsKAZyexXNRB4shm3QBg7f8zq1M/ULjcaVWrO7fYRPJtFdcg MzvYRcdMyE6bi21h+s39NHxxNAcNVkyHjf9+Dy05jsArGOUDS+qINFxJIzWxWQyL7X 0YwVGeV3zGQVtr0jQ/w52rE01tBpqEFJqFxrjri0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-52519: HID: intel-ish-hid: ipc: Disable and reenable ACPI GPE bit Date: Sat, 2 Mar 2024 22:53:03 +0100 Message-ID: <2024030252-CVE-2023-52519-d53f@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=2713; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=SjnsOh5DejDnhFeOenauenclJssSFjRX8nN4cwh/u7E=; b=owGbwMvMwCRo6H6F97bub03G02pJDKmP528RdPfQv5t/wN0gpvL/70bryzoXCnq0Da/91LZxL wqzWcbQEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5Gc2w4HrdxpDw1F9B+st5 dMIM/r/mTFadxLBgIqOHV19vfWYL04lJbB/3vPZUTskAAA== 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: HID: intel-ish-hid: ipc: Disable and reenable ACPI GPE bit The EHL (Elkhart Lake) based platforms provide a OOB (Out of band) service, which allows to wakup device when the system is in S5 (Soft-Off state). This OOB service can be enabled/disabled from BIOS settings. When enabled, the ISH device gets PME wake capability. To enable PME wakeup, driver also needs to enable ACPI GPE bit. On resume, BIOS will clear the wakeup bit. So driver need to re-enable it in resume function to keep the next wakeup capability. But this BIOS clearing of wakeup bit doesn't decrement internal OS GPE reference count, so this reenabling on every resume will cause reference count to overflow. So first disable and reenable ACPI GPE bit using acpi_disable_gpe(). The Linux kernel CVE team has assigned CVE-2023-52519 to this issue. Affected and fixed versions =========================== Issue introduced in 5.12 with commit 2e23a70edabe and fixed in 5.15.135 with commit 8781fe259dd5 Issue introduced in 5.12 with commit 2e23a70edabe and fixed in 6.1.57 with commit cdcc04e844a2 Issue introduced in 5.12 with commit 2e23a70edabe and fixed in 6.5.7 with commit 60fb3f054c99 Issue introduced in 5.12 with commit 2e23a70edabe and fixed in 6.6 with commit 8f02139ad9a7 Please see https://www.kernel.org or 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-2023-52519 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/hid/intel-ish-hid/ipc/pci-ish.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/8781fe259dd5a178fdd1069401bbd1437f9491c5 https://git.kernel.org/stable/c/cdcc04e844a2d22d9d25cef1e8e504a174ea9f8f https://git.kernel.org/stable/c/60fb3f054c99608ddb1f2466c07108da6292951e https://git.kernel.org/stable/c/8f02139ad9a7e6e5c05712f8c1501eebed8eacfd