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 6F3522C1A2 for ; Wed, 11 Sep 2024 15:15:14 +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=1726067714; cv=none; b=da37SQb9VK6kU4j31YEGh50l70QSTXs/cDnwNTo5GR1ia3sGxBAXW+2/vd5zTAIl8Itwg8HZsStaprHjiGQZzwL3nqsDUcoFOgpp0tdjWXYI+hx5edXWYJA/wvyFVzr70mylb18dvm4Bi7Rq83XVoM9IzObtW/07qt4rtFlZLEw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726067714; c=relaxed/simple; bh=489w1UpeBbvLFPKzzXhuuxGgyJmOINPWD4F84BVeekE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=CCgQ6RFaU6UyLaRXQDKVZvTWwHMxfyUiTz7aORT2S3rd5ZtQma3TDPLwz7WRSHLpsVv8dLpJuYr6PEs1pPWmohK7aOGvd8JVnueRnkQSdBpU1eZn+g6xvyASrZbYqhVvV/gJik1FpZl+vg8v8HFX/6vN0sCLmMgW3wAEbdGn6x4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hC5Ah9HM; 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="hC5Ah9HM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AFA88C4CEC0; Wed, 11 Sep 2024 15:15:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726067714; bh=489w1UpeBbvLFPKzzXhuuxGgyJmOINPWD4F84BVeekE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hC5Ah9HMNqQKSsrC9JeyZXKMxC8fKAtPVO6izkqyh7RoLSQLZmatda4ClNUM0U7Xq DkMTenHhkysrMqxGXdZXkEYzrwDH5FCmnZnV7KGcTOlkm7eT59Wzx0clcYuAPpWOOs nzoa8AoLF8y4pCwFmNd1MiUb43AYMQyq4z6i5gzo= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-45029: i2c: tegra: Do not mark ACPI devices as irq safe Date: Wed, 11 Sep 2024 17:14:25 +0200 Message-ID: <2024091110-CVE-2024-45029-662e@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=2749; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=489w1UpeBbvLFPKzzXhuuxGgyJmOINPWD4F84BVeekE=; b=owGbwMvMwCRo6H6F97bub03G02pJDGkPNx9Kq//f98mgL+rGgplWW2L8LjBw2265PCHxqtC8u iU359mIdcSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEFhxgWHCi9yOf8dvnmgts Gq5uaV1py7VKjZFhQXfHak0B+Ten9HxCv6Za3y/s/jtnMwA= 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: i2c: tegra: Do not mark ACPI devices as irq safe On ACPI machines, the tegra i2c module encounters an issue due to a mutex being called inside a spinlock. This leads to the following bug: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:585 ... Call trace: __might_sleep __mutex_lock_common mutex_lock_nested acpi_subsys_runtime_resume rpm_resume tegra_i2c_xfer The problem arises because during __pm_runtime_resume(), the spinlock &dev->power.lock is acquired before rpm_resume() is called. Later, rpm_resume() invokes acpi_subsys_runtime_resume(), which relies on mutexes, triggering the error. To address this issue, devices on ACPI are now marked as not IRQ-safe, considering the dependency of acpi_subsys_runtime_resume() on mutexes. The Linux kernel CVE team has assigned CVE-2024-45029 to this issue. Affected and fixed versions =========================== Issue introduced in 5.17 with commit bd2fdedbf2ba and fixed in 6.1.107 with commit a89aef1e6cc4 Issue introduced in 5.17 with commit bd2fdedbf2ba and fixed in 6.6.48 with commit 6861faf4232e Issue introduced in 5.17 with commit bd2fdedbf2ba and fixed in 6.10.7 with commit 2853e1376d81 Issue introduced in 5.17 with commit bd2fdedbf2ba and fixed in 6.11-rc4 with commit 14d069d92951 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-45029 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/i2c/busses/i2c-tegra.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/a89aef1e6cc43fa019a58080ed05c839e6c77876 https://git.kernel.org/stable/c/6861faf4232e4b78878f2de1ed3ee324ddae2287 https://git.kernel.org/stable/c/2853e1376d8161b04c9ff18ba82b43f08a049905 https://git.kernel.org/stable/c/14d069d92951a3e150c0a81f2ca3b93e54da913b