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 434EE20C027 for ; Tue, 1 Apr 2025 15:48:11 +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=1743522491; cv=none; b=D7U5Dq/4JgXVxrXK6GeAc8wFki7O2QzOP6NO+KIushfq5+3u/8yA//5szvYj2o4KJE2bOYwUXNgTSPCBodNhI7aX48x8Z+VtMoRC2Ky1XiPrEckyH+MRKNh3Nbt4AFRPKFYz6qdW4HYeuXl6raFyFP05XR2A72tcgyrcIrq9LCI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1743522491; c=relaxed/simple; bh=OV899BnHecDSsuqUrgwOgvTJMYJeHgRv2Mi8K3xYc3k=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=BUlx9XXbB7AdBs3ojTxuDg9QcdQ1W8JWIzm/X0V3K1AnNDfTXul9iJS8cDBfF3qpcVHBnmveRBb/cPHGdfESpKwgd1evJNr0SYa77Crf0KMtIiBFh76wHY+PYDZ1BC4OyKut+Gjqs9HJx4Dh8d6ieulfEx0k+cpHcZpTZJOVVU4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=CBp/gfn9; 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="CBp/gfn9" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFB6DC4CEE4; Tue, 1 Apr 2025 15:48:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1743522491; bh=OV899BnHecDSsuqUrgwOgvTJMYJeHgRv2Mi8K3xYc3k=; h=From:To:Cc:Subject:Date:Reply-to:From; b=CBp/gfn9ccT3LmCCvstvkstcLzMrcMZ7o0Y+oU7wS/VTMxO9DIl+jOwLxZBDtDI0n kk7GpGXBOrV+4ifVuazVJ1K4N83SmpLbJOXZV5eduNOTxXRdOHaXgXk90JvAcZXmh3 DK7MGAbCuFLcZsnAKDqTUSV+r3QP7sB0vI1R/75A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-21982: pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw Date: Tue, 1 Apr 2025 16:46:07 +0100 Message-ID: <2025040148-CVE-2025-21982-8ddf@gregkh> X-Mailer: git-send-email 2.49.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=2220; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=OV899BnHecDSsuqUrgwOgvTJMYJeHgRv2Mi8K3xYc3k=; b=owGbwMvMwCRo6H6F97bub03G02pJDOlvuHQ8L7vt0H/jfDz1SOK34/WbZzy/VfV12f842TXvt TdfXP6iviOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmcrKZYcH1OqYOzkMP8xpv pey8Kb11pqfqlvkMCw7mLvr1qjyysNMn5tLMpauk/p0tiwQA 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: pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw devm_kasprintf() calls can return null pointers on failure. But the return values were not checked in npcm8xx_gpio_fw(). Add NULL check in npcm8xx_gpio_fw(), to handle kernel NULL pointer dereference error. The Linux kernel CVE team has assigned CVE-2025-21982 to this issue. Affected and fixed versions =========================== Issue introduced in 6.7 with commit acf4884a571709cad99f98aabe08b7cacd62dc80 and fixed in 6.12.20 with commit a585f6ea42ec259a9a57e3e2580fa527c92187d0 Issue introduced in 6.7 with commit acf4884a571709cad99f98aabe08b7cacd62dc80 and fixed in 6.13.8 with commit 6a08a86e5aff8e65368ccd463348fdda26100821 Issue introduced in 6.7 with commit acf4884a571709cad99f98aabe08b7cacd62dc80 and fixed in 6.14 with commit acf40ab42799e4ae1397ee6f5c5941092d66f999 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-2025-21982 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/nuvoton/pinctrl-npcm8xx.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/a585f6ea42ec259a9a57e3e2580fa527c92187d0 https://git.kernel.org/stable/c/6a08a86e5aff8e65368ccd463348fdda26100821 https://git.kernel.org/stable/c/acf40ab42799e4ae1397ee6f5c5941092d66f999