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 3BC8E1482F5 for ; Mon, 26 Aug 2024 10:23:58 +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=1724667838; cv=none; b=VS3U6E4PcxJPM7QuJh7JuG1TWOXuYIoSKoSOQs/AEUk9hZGCm3OW5QXNsx/M8/VFugTTbnZ9/QdN5UdxlZRI50hjAKDGBjPvep/Pk6bi5KuUkx88dXr4GmW0u/cguZWm8XqYCjHWTft3yaYtGNbUiK4BMVkN0YpuDqyD8TYezrw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1724667838; c=relaxed/simple; bh=quET5K9Y7EYAY5SqMgDG9S8YhoTsyJO/dLIyLmHYots=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sZ2v1KXD6xfI7n+GXFOJR4HjLHVVB8d4Pv4u3mlU1B6CNyIlP+izAAQqQTSV28vaGdBlCJUQooGp8CV03EvbjDECKxt/k2NO+vg9hpg7fyqs2uf3yb1gDxMhllFsmtw+VXsdQ/YPZsePYJNPvcv+sERYYS1XjRsCzYabGKLn+iA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=G3A3us4V; 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="G3A3us4V" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AE1BEC5E8A2; Mon, 26 Aug 2024 10:23:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1724667838; bh=quET5K9Y7EYAY5SqMgDG9S8YhoTsyJO/dLIyLmHYots=; h=From:To:Cc:Subject:Date:Reply-to:From; b=G3A3us4VHF9jQkC8VAKhgHxDlSbYC7UKHeIGOc5Vm3lDI69th9PhTIoOK81bwbotB BX6KfIG5W1r+dI5zpoTAfUrULm6njFYzEZyftKa/ta4zYI0lcSCbiq0vn62MTwsmnt y8UX2ljiU/blYwnsUqwndb6VFVRUwlFzEJit761E= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-44937: platform/x86: intel-vbtn: Protect ACPI notify handler against recursion Date: Mon, 26 Aug 2024 12:17:29 +0200 Message-ID: <2024082645-CVE-2024-44937-5c1d@gregkh> X-Mailer: git-send-email 2.46.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=2929; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=quET5K9Y7EYAY5SqMgDG9S8YhoTsyJO/dLIyLmHYots=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlnwjwL9wdLX1hZ7dKYvn2ytegvr3cX3ZPVLRIKnvwIC DATPrKhI5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACZSGcEwzzR21aOU7uCUDy73 7QV3BLwxW/iEm2Ge7t6Ps7b+XrmqLzhBK+/5ws+CT1sOAgA= 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: platform/x86: intel-vbtn: Protect ACPI notify handler against recursion Since commit e2ffcda16290 ("ACPI: OSL: Allow Notify () handlers to run on all CPUs") ACPI notify handlers like the intel-vbtn notify_handler() may run on multiple CPU cores racing with themselves. This race gets hit on Dell Venue 7140 tablets when undocking from the keyboard, causing the handler to try and register priv->switches_dev twice, as can be seen from the dev_info() message getting logged twice: [ 83.861800] intel-vbtn INT33D6:00: Registering Intel Virtual Switches input-dev after receiving a switch event [ 83.861858] input: Intel Virtual Switches as /devices/pci0000:00/0000:00:1f.0/PNP0C09:00/INT33D6:00/input/input17 [ 83.861865] intel-vbtn INT33D6:00: Registering Intel Virtual Switches input-dev after receiving a switch event After which things go seriously wrong: [ 83.861872] sysfs: cannot create duplicate filename '/devices/pci0000:00/0000:00:1f.0/PNP0C09:00/INT33D6:00/input/input17' ... [ 83.861967] kobject: kobject_add_internal failed for input17 with -EEXIST, don't try to register things with the same name in the same directory. [ 83.877338] BUG: kernel NULL pointer dereference, address: 0000000000000018 ... Protect intel-vbtn notify_handler() from racing with itself with a mutex to fix this. The Linux kernel CVE team has assigned CVE-2024-44937 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit e2ffcda16290 and fixed in 6.10.5 with commit 5c9618a3b6ea Issue introduced in 6.8 with commit e2ffcda16290 and fixed in 6.11-rc3 with commit e075c3b13a0a 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-44937 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/intel/vbtn.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/5c9618a3b6ea94cf7bdff7702aca8bf2d777d97b https://git.kernel.org/stable/c/e075c3b13a0a142dcd3151b25d29a24f31b7b640