Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 EC9133E168F for ; Thu, 24 Sep 2026 16:23:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790267004; cv=none; b=YEpifIuBMf+zoPZW8nESAVPoYzlT8Lie4C/c04eC/tHdrTqAi6dina8Jo/VKyncLczhl9kR3AnmyZhPQPg3w1Im3QjDKN0rFiEp3mSXQSFifItrP3fYvd36TXjqAno/cUddbQFXOyvFZKEmbiUGZvhBv/hFkaoJ0jCgZmiojX8A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790267004; c=relaxed/simple; bh=2R1pIBg0ESasoOM/fU+ygRirUAJqr1YMmlWTVsORD0c=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=MafVzoNG/zUZVOYEReGOm04h6Rg3rFs97YgGTzmQJNav548KQnWYCpZ9GgySsvjT1wtbAuTyqy1mP94yt8HwUVQqNAJ9pY4EdkoQ/4XQ4IS+8uXpY0V0nRL7fCI2ga6aTK9AhbU6bkJwtjNYsFI8t78/czZyeAqM1cM0FYf5CKo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JMU452xx; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="JMU452xx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3610B1F000FF; Thu, 24 Sep 2026 16:23:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790267002; bh=3CMb9urn0DgvAAG+KwjfIvFFjresGB3EVa84oSn2kIg=; h=From:To:Cc:Subject:Date:Reply-To; b=JMU452xxUDejq39VxDF5I6ZOsczDrs6U0s+NBq5jmRnlXe9pwrJfrYcVZ3b9eCdnh TXovgN3lb+LcYmyTEvEe6NmsWrD6V0cwG7fzTZsnnWor2+v4pyrCTyYRvVysGO6new XzkgZkF8di2RbdRn/y+OMyzGTPZ4jJXW3w7iZbu8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-97501: pinctrl: mediatek: paris: bypass pinctrl GPIO layer in set GPIO direction Date: Thu, 24 Sep 2026 18:04:26 +0200 Message-ID: <2026092441-CVE-2026-97501-43d4@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2788; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=BwWrZ6S3IdW/JvuOPHzwxDzQmjqmb2oUJoVGAZJKZqQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPRf2HklexnzXXXj+yY3PlxwSmNPJGZvgM1GFw9E/h 21VZXFtRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzk9TaGBVsPbXMIlvt9yf+l 1g1nf9cVmwvNnBjm5/R3cyZ48276sZUljfXaeVnLvzqTAQ== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: pinctrl: mediatek: paris: bypass pinctrl GPIO layer in set GPIO direction pinctrl_gpio_direction_input() / pinctrl_gpio_direction_output() take the pinctrl mutex. This causes a gpiochip operations to need to sleep. Worse yet, the .can_sleep field in the gpiochip is not set. This causes the shared GPIO proxy to trip over, as it uses gpiod_cansleep() to check whether it can use a spinlock or needs a mutex. In this case, it ends up taking a spinlock, then calls pinctrl_gpio_direction_output(), which takes a mutex. This causes a huge warning. While this class of Mediatek hardware does not have separate clear/set registers, the pinctrl context has a spinlock that is taken whenever a register read-modify-write is done. Also, once the GPIO function is selected / muxed in, further GPIO operations do not involve pinctrl operations or state. The GPIO direction and level values do not require toggling the pinmux or any other pin config options. Switch to directly calling mtk_pinmux_gpio_set_direction() in the GPIO set direction callbacks to avoid taking the pinctrl mutex. Drop the .gpio_set_direction field in mtk_pmxops to signal we are no longer using the pinctrl GPIO layer for setting the direction. The Linux kernel CVE team has assigned CVE-2026-97501 to this issue. Affected and fixed versions =========================== Fixed in 6.18.53 with commit 428b031dad390edd5da729b9afd474a95dc4f76b Fixed in 7.2 with commit c87c9046c4e00d599454e033a477176c4d73ac2a 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-2026-97501 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/pinctrl/mediatek/pinctrl-paris.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/428b031dad390edd5da729b9afd474a95dc4f76b https://git.kernel.org/stable/c/c87c9046c4e00d599454e033a477176c4d73ac2a