From mboxrd@z Thu Jan 1 00:00:00 1970 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 999DA3A9624 for ; Wed, 3 Jun 2026 15:51:03 +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=1780501864; cv=none; b=TAbURZP4p+/SvkvkmzdhR0Jna+Apcz0p2aSSN8uU7fi/fPKSjSx7E0nIiyqEm9mD1rKsxekC1ud6OwSI+622YH1jooVPxEv84u6wWq4j+mlRpGfUtrkeLXHRPaP773LOx9oORpMOsVrhYHVVR11gdQUh1RC+Zg2fBcuksQBUSmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780501864; c=relaxed/simple; bh=SJMU+f5oLSh/1sbTIhs7MdXu+qFcBb2iDYFpUn5wgLw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=p1+pJ8pT04gwHf/WggRKilaNcmUFy6GBLb4wogxotNBviJWalSlBsoSGGQjoYjHRvYhEIqVSWtvEw8qSsPMIAJuQkd9d4jE/U1eyV5jA+5ZapRjIyYqfIyCsipPG83ino6vq02C86FPHQ9huQhb8MaKb9K3wEtJ3BzyDzCor/rQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=pK/eMlCy; 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="pK/eMlCy" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1ABE81F00893; Wed, 3 Jun 2026 15:51:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1780501863; bh=rS7VfC/qQYj3ZtG13W3jaLeJfBaXSpjGQESpJSM62Cg=; h=From:To:Cc:Subject:Date:Reply-To; b=pK/eMlCywOPHZx4iBcXpmXwS1WeVmSipykzpGnKbeIKkBf6YQcYu6Hc+9/XHJ+kFW sQNdjcwk/neMOdYkSXrfRGWFxDgoD+b8khPGZJb9Y3yHjQnpuoJBVwzlSQyahcRWRZ AJzegNu0Q9SCFXtETXq48ThXY8DFzCbxaDeCmxDs= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-46258: gpio: cdev: Avoid NULL dereference in linehandle_create() Date: Wed, 3 Jun 2026 17:49:47 +0200 Message-ID: <2026060336-CVE-2026-46258-3741@gregkh> X-Mailer: git-send-email 2.54.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=2011; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=eCemEKhwKiRKILMBPBQNlXy+AMPFrhbKppLEE5odIeI=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkKvgJbmgrm3Zxw5rhNa+4D24R7s/dNfuW2/toUcf1tg qvvv2z06IhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJlOgxzFOdk8p9e6mTzSTv y1NuOd9pPLe3L5Fhwa4F3RMdi5TCPq0y7jdeG7W3eM/BFwA= 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: gpio: cdev: Avoid NULL dereference in linehandle_create() In linehandle_create(), there is a statement like this: retain_and_null_ptr(lh); Soon after, there is a debug printout that dereferences "lh", which will crash things. Avoid the crash by using handlereq.lines, which is the same value. The Linux kernel CVE team has assigned CVE-2026-46258 to this issue. Affected and fixed versions =========================== Issue introduced in 6.19 with commit da7e394bf58f94e9783379fef7c7fb4411b03208 and fixed in 6.19.4 with commit 87b9d7a4cfbed5f42af440372026270af997c766 Issue introduced in 6.19 with commit da7e394bf58f94e9783379fef7c7fb4411b03208 and fixed in 7.0 with commit 6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e 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-46258 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-cdev.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/87b9d7a4cfbed5f42af440372026270af997c766 https://git.kernel.org/stable/c/6af6be278e3ba2ffb6af5b796c89dfb3f5d9063e