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 8932F352956 for ; Tue, 16 Dec 2025 13:43:49 +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=1765892629; cv=none; b=WSH6X3AFU/vuKQQkstM89bsyhK64jf87yCmR2wtvbOgDXicYXzEcCvNpLEz+NalxIRzn6TYqHbaO8+W1wF2tH2QiDfxWeISlt1wxNUgW/8vk4fh4Kl2y0WYAbqzSkJnLBrupprsQcmYcgpYlCyoffyEN0ULdgCfKP1sTUo0F4qM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765892629; c=relaxed/simple; bh=03C9EKQK1m4r73OWuv/zZSVmvQmC5uSscu+eFSd3WvM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=arYV4DFeqIJXnWsC5H8sBe//PbhSPGkwb9T5+q16JDhaBB+8oFjjbAss+Otr131aJhdytXXiVM+KUukFAUCUEMaZ1kkjM4mycDoJOVzC9Y4ABFOfFLgSXQUIV1YQah5YiEMbJOxjeskPnu+ZF+I9uBdGzcWL9jj1gLnjY5seXlM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yJyO5zFp; 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="yJyO5zFp" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A2065C16AAE; Tue, 16 Dec 2025 13:43:48 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765892629; bh=03C9EKQK1m4r73OWuv/zZSVmvQmC5uSscu+eFSd3WvM=; h=From:To:Cc:Subject:Date:Reply-To:From; b=yJyO5zFphnCB17x3hmgG0XD4f5J4Oksj/XJQr5D1SGJ9KadKDX5wJAavM9/P7nCsE uMpct1khB3GgziuXd7PoN/MnbCgEjPlUuDgchdqmMcyr/+pHqkNXleSmAD9y5S9ab0 Gy8raxhL4KUkQEAtfQ1k+DUf3MijDLyx3+JDn38M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68167: gpiolib: fix invalid pointer access in debugfs Date: Tue, 16 Dec 2025 14:43:28 +0100 Message-ID: <2025121627-CVE-2025-68167-a6eb@gregkh> X-Mailer: git-send-email 2.52.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=2237; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=NIiHPM3Z9wdp1L254yj2rzBgoDTA3r+x95KlLcmjOS0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmOif/PqG9dojPnxURGm09tjBtOln/+f2fr80db33xV3 9fCePPJlo5YFgZBJgZZMUWWL9t4ju6vOKToZWh7GmYOKxPIEAYuTgGYyKW7DAuOPelTOBY/zXKe cHPkQhXryneWtm4M86OPOd6RXXQlbLft2y/ymjNSzrXtjwYA 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: gpiolib: fix invalid pointer access in debugfs If the memory allocation in gpiolib_seq_start() fails, the s->private field remains uninitialized and is later dereferenced without checking in gpiolib_seq_stop(). Initialize s->private to NULL before calling kzalloc() and check it before dereferencing it. The Linux kernel CVE team has assigned CVE-2025-68167 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit e348544f7994d252427ed3ae637c7081cbb90f66 and fixed in 6.12.58 with commit 70180a6031056096c93ed2f47c41803268bdd91c Issue introduced in 6.9 with commit e348544f7994d252427ed3ae637c7081cbb90f66 and fixed in 6.17.8 with commit 3c91c8f424d3e44c8645ab765a38773e58afb07d Issue introduced in 6.9 with commit e348544f7994d252427ed3ae637c7081cbb90f66 and fixed in 6.18 with commit 2f6115ad8864cf3f48598f26c74c7c8e5c391919 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-68167 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/gpiolib.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/70180a6031056096c93ed2f47c41803268bdd91c https://git.kernel.org/stable/c/3c91c8f424d3e44c8645ab765a38773e58afb07d https://git.kernel.org/stable/c/2f6115ad8864cf3f48598f26c74c7c8e5c391919