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 8F3B41F6695 for ; Fri, 27 Dec 2024 15:07:39 +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=1735312059; cv=none; b=Usn7RRZgdOKsnOxKkQTW8BRvRRmqO4Gnk6DezLiB2MCfGOwTzBrlsHKDlcc6bUE7e5bJ05OZ4xYW7we2LGVHTcaIosNJVcwT4Az5Te18+ywsDtLKxBBHLmkgXZkvBmZrsT/Q2n6s3I8zvfCqxkqHKEB5ZsOonV9Zcnm4Ofpgq00= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1735312059; c=relaxed/simple; bh=/imjSdSVLkPEqff9mWgFlNyk+ML9n7D7G7jq+tfmdLU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=aeXOzp/MWQPyt8F1OjUcPhgXuKwmjSAWhgpvsnaMaBYzxKevLlhiKsQCqazV8K18BjVNfj6V0apHwElFcIr5nvNbLe+vd36NYD1C6jaQXS+RJJH9QwgvH/sVwZVvkFyf78FMxMZU3ZJSDMoEr5Nva3JnD59WkHkArZK/GuE425E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=A5oqlvS/; 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="A5oqlvS/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F12DAC4CED0; Fri, 27 Dec 2024 15:07:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1735312059; bh=/imjSdSVLkPEqff9mWgFlNyk+ML9n7D7G7jq+tfmdLU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=A5oqlvS/nBIiCcdPs3HMTYsdEoqGxcYHJeHjnkVTAfU65O+8MH5Efkd/52teqh+yQ edVk6pwF217kz+UgSwmpSAIIOlHLt9P1LnYG7Xi+sbqDsN+yt0L6pXAIC/7AK7PYww vWb0c0UfLcKBSKGMxLBxGkx6uunK/NqytsHq6mYA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-56671: gpio: graniterapids: Fix vGPIO driver crash Date: Fri, 27 Dec 2024 16:07:08 +0100 Message-ID: <2024122755-CVE-2024-56671-89d8@gregkh> X-Mailer: git-send-email 2.47.1 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=2457; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=/imjSdSVLkPEqff9mWgFlNyk+ML9n7D7G7jq+tfmdLU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOl5h/qX23k/kjSK/+d/o/xV39Kfy4tu+X9f4hnc3PN6T kVl/Zf6jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjIxxMMC9or3O8ut1Cskla5 Z5Sx480lcz6JSwwLJh6d+796it0NWYundy52tlzKafnjCAA= 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: gpio: graniterapids: Fix vGPIO driver crash Move setting irq_chip.name from probe() function to the initialization of "irq_chip" struct in order to fix vGPIO driver crash during bootup. Crash was caused by unauthorized modification of irq_chip.name field where irq_chip struct was initialized as const. This behavior is a consequence of suboptimal implementation of gpio_irq_chip_set_chip(), which should be changed to avoid casting away const qualifier. Crash log: BUG: unable to handle page fault for address: ffffffffc0ba81c0 /#PF: supervisor write access in kernel mode /#PF: error_code(0x0003) - permissions violation CPU: 33 UID: 0 PID: 1075 Comm: systemd-udevd Not tainted 6.12.0-rc6-00077-g2e1b3cc9d7f7 #1 Hardware name: Intel Corporation Kaseyville RP/Kaseyville RP, BIOS KVLDCRB1.PGS.0026.D73.2410081258 10/08/2024 RIP: 0010:gnr_gpio_probe+0x171/0x220 [gpio_graniterapids] The Linux kernel CVE team has assigned CVE-2024-56671 to this issue. Affected and fixed versions =========================== Fixed in 6.12.6 with commit e631cab10c6b287a33c35953e6dbda1f7f89bc1f Fixed in 6.13-rc3 with commit eb9640fd1ce666610b77f5997596e9570a36378f 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-56671 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/gpio/gpio-graniterapids.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/e631cab10c6b287a33c35953e6dbda1f7f89bc1f https://git.kernel.org/stable/c/eb9640fd1ce666610b77f5997596e9570a36378f