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 AF77B18C01A for ; Fri, 27 Sep 2024 12:40:27 +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=1727440827; cv=none; b=U1KlcSFUGalvYdODv3oxjCiDsBxZEoA1bq/sHJZjEDZ6+KH4AXDZqxQoAGF+d0onqnsUWWOfEnKoscHZcli+nyVcA3X5snPCYWyBs0EU1BDd2qs2W6pIjP64Mbh4IQ4gq+K5qfPgkfAaMSQfhs7QREZ3JY9NAKR42R0FF/B2PPU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1727440827; c=relaxed/simple; bh=i1pwCn83iimfNGtdV6HUxVKS9ihF8oRol3LMRtEaETk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=k0k9eS64cTXq0KMGqtX5I2dQJ2oUkTILjwx7Uj/QpreEbS+pskfWZWbLJbnoSYqIA9B59pc3RMYEcqJRQf7J6wx4U45mGUcNtckipUUnmzw1UwVwO8qodCzDR4PGLkBcALMlz1uGFlfQQ9H9Gk1U0gXweKxL/jbKCXrqydjdB/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=acwIuSQb; 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="acwIuSQb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 39FBBC4CEC4; Fri, 27 Sep 2024 12:40:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1727440827; bh=i1pwCn83iimfNGtdV6HUxVKS9ihF8oRol3LMRtEaETk=; h=From:To:Cc:Subject:Date:Reply-to:From; b=acwIuSQbzdAu/neMVh5Y+fHP6pQ4iUp+e8PvTvG5z9NTYsCuukpcJpFRVDaR5dCWf dnEbPYWuxySSMcfFzNDmKo4IcqzOs3QMoyUnj97t2LLp/SIaDpQITcd0eDOXOwdfrn TJQWmNUMHCh67F3XBbcFH1/3fjavFO2Yr59kcDd8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46832: MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed Date: Fri, 27 Sep 2024 14:40:00 +0200 Message-ID: <2024092752-CVE-2024-46832-3ad0@gregkh> X-Mailer: git-send-email 2.46.2 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=2381; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=i1pwCn83iimfNGtdV6HUxVKS9ihF8oRol3LMRtEaETk=; b=owGbwMvMwCRo6H6F97bub03G02pJDGnfls/wtDz9ZAbnrJz9Ofd6sh/b1f+aYbPh3Xq/Gmu31 xazOgOqO2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiQisZ5heLM09tKpDcWiZR yMiRGs366GzZXIYFJxesyO5YKLo/7eOXxyUnoj/7lAcqAQA= 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: MIPS: cevt-r4k: Don't call get_c0_compare_int if timer irq is installed This avoids warning: [ 0.118053] BUG: sleeping function called from invalid context at kernel/locking/mutex.c:283 Caused by get_c0_compare_int on secondary CPU. We also skipped saving IRQ number to struct clock_event_device *cd as it's never used by clockevent core, as per comments it's only meant for "non CPU local devices". The Linux kernel CVE team has assigned CVE-2024-46832 to this issue. Affected and fixed versions =========================== Fixed in 5.10.226 with commit d3ff0f98a52f Fixed in 5.15.167 with commit e6cd871627ab Fixed in 6.1.110 with commit b1d2051373bf Fixed in 6.6.51 with commit 32ee0520159f Fixed in 6.10.10 with commit 189d3ed3b25b Fixed in 6.11 with commit 50f2b98dc83d 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-46832 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: arch/mips/kernel/cevt-r4k.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/d3ff0f98a52f0aafe35aa314d1c442f4318be3db https://git.kernel.org/stable/c/e6cd871627abbb459d0ff6521d6bb9cf9d9f7522 https://git.kernel.org/stable/c/b1d2051373bfc65371ce4ac8911ed984d0178c98 https://git.kernel.org/stable/c/32ee0520159f1e8c2d6597c19690df452c528f30 https://git.kernel.org/stable/c/189d3ed3b25beee26ffe2abed278208bece13f52 https://git.kernel.org/stable/c/50f2b98dc83de7809a5c5bf0ccf9af2e75c37c13