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 BE0F41448C5 for ; Tue, 21 May 2024 15:25:09 +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=1716305110; cv=none; b=PaMU9wi3f7ConegVBaCrW6R/zX0+18kI+Rv46oWbbqLpZbyYGiDr2LeADOTA5pqAcD6HBTK0qNLIbyoPH6YALaEDEFqfvMAhaKROdH/CwS8sHhTspG3AaIghlW0J1I96pR/DPlrpAoIk6euU/skPw2XVEPt3k0mWISFwi+epDfE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716305110; c=relaxed/simple; bh=rShpamrR8iZHLr/ztSasbtcFbjQYnNG4e1wNTbNvLN4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=et2mLC6zDAF9yMzUMbI1AM9WP0RaXTXMK7y2UjYoQyX8eerq1vuyjx25kXlyAepRuW9g/9M/Xp/bLcr5uTI6DYHJG0PjiUV6o9eNINa1tNRoUkZViiIVL9hQzsw/P5aKG0N2hT0oZpuwXMGyEGZQDzLE34IX6Qk7l+tHcd0uCeE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=0cY409I3; 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="0cY409I3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C02BCC4AF0D; Tue, 21 May 2024 15:25:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1716305109; bh=rShpamrR8iZHLr/ztSasbtcFbjQYnNG4e1wNTbNvLN4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=0cY409I3FMuCEDSfhtViZZdRkuECxXkROWS11F+2ZvIFBufr5G9s9y1/U0T/Zsabq 9D2wH4EzMJjMqqrRT/1lJjLN26451weFfXhm5FZJxPcMDL4bjH/xF3E8M6U+UQMorG BWOuMRslfuWe513fI7hh8NHkPDpCmziW7Pr2SARA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-48708: pinctrl: single: fix potential NULL dereference Date: Tue, 21 May 2024 17:22:56 +0200 Message-ID: <2024052155-CVE-2022-48708-ba53@gregkh> X-Mailer: git-send-email 2.45.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=2764; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rShpamrR8iZHLr/ztSasbtcFbjQYnNG4e1wNTbNvLN4=; b=owGbwMvMwCRo6H6F97bub03G02pJDGk+e/zvSRV46c4uyL9l/Gnviz0v79i+TEqdsHTH3Pzph S9T9afu74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJKGQxzA95eZaDty2G/4dR tE9xaCP/zKwifYa50p8ZXLZfY7q6cqPku5NtF+d2GjBfAgA= 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: single: fix potential NULL dereference Added checking of pointer "function" in pcs_set_mux(). pinmux_generic_get_function() can return NULL and the pointer "function" was dereferenced without checking against NULL. Found by Linux Verification Center (linuxtesting.org) with SVACE. The Linux kernel CVE team has assigned CVE-2022-48708 to this issue. Affected and fixed versions =========================== Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 4.14.306 with commit 1177bdafe87c Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 4.19.273 with commit e671e63587c9 Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 5.4.232 with commit 2b763f7de108 Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 5.10.168 with commit 6e2a0521e4e8 Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 5.15.94 with commit 71668706fbe7 Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 6.1.12 with commit bcc487001a15 Issue introduced in 4.11 with commit 571aec4df5b7 and fixed in 6.2 with commit d2d73e6d4822 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-2022-48708 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/pinctrl-single.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/1177bdafe87cbe543a2dc48a9bbac265aa5864db https://git.kernel.org/stable/c/e671e63587c92b3fd767cf82e73129f6d5feeb33 https://git.kernel.org/stable/c/2b763f7de108cb1a5ad5ed08e617d677341947cb https://git.kernel.org/stable/c/6e2a0521e4e84a2698f2da3950fb5c5496a4d208 https://git.kernel.org/stable/c/71668706fbe7d20e6f172fa3287fa8aac1b56c26 https://git.kernel.org/stable/c/bcc487001a15f71f103d102cba4ac8145d7a68f2 https://git.kernel.org/stable/c/d2d73e6d4822140445ad4a7b1c6091e0f5fe703b