From mboxrd@z Thu Jan 1 00:00:00 1970 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 4F13B382F06 for ; Mon, 23 Mar 2026 09:07: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=1774256829; cv=none; b=IQ7TGAYBibtNg25Q/xysPRehqj491XT4qbX95Fd1rxMa6lJ6ZWmV1cQ080eovrp7LnITe1iCi1uP/1gTPtpjlaV4az6GFKcd1mYYflB9yM1f5ztQIXJFly13waUubh7hseRHBi0OAKvrryRnJvJ5/wT1tu1VWhjpI93FDoiVQb8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1774256829; c=relaxed/simple; bh=C64VE705DECi+lc24XKkmiQ2x+kOa7yCXEtiC3D4rMg=; h=Subject:To:Cc:From:Date:Message-ID:MIME-Version:Content-Type; b=bmHJ1Yg23w9DN3tFnucQ3iEQdCmqSFBZM3Bof/6rwJv5c2VZHq7VNQewZg/aurgrXdQ8Z6S/yY868VT70R3yh/sBUz6eaUDlspBpwcNnyzMfhZxN+mlcadF9nCXMlgcRjd7KP8B41Uoa89y5mUDDZWCn9UFrDpqMiA4CdJqzaio= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=V/oY3nV2; 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="V/oY3nV2" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ADC46C4CEF7; Mon, 23 Mar 2026 09:07:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1774256829; bh=C64VE705DECi+lc24XKkmiQ2x+kOa7yCXEtiC3D4rMg=; h=Subject:To:Cc:From:Date:From; b=V/oY3nV2PHQRLSCazd+Nm5bwh1Z/KnCffKt8vdXqA5X1zJhP5AknIvI5xXpKeMe3v /9Hda0yZHnQSuEIgwPXLwlUzh+rZLoikX5bI02FYuKjXpqsgMTAkumkSsEeI/zNfAD x0Ng9PftA9pQNHsvJdqeq7mXnSWui4jj3eMwFSAg= Subject: FAILED: patch "[PATCH] i2c: cp2615: fix serial string NULL-deref at probe" failed to apply to 6.6-stable tree To: johan@kernel.org,andi.shyti@kernel.org,bence98@sch.bme.hu Cc: From: Date: Mon, 23 Mar 2026 10:06:47 +0100 Message-ID: <2026032347-celtic-fragility-e746@gregkh> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.6-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.6.y git checkout FETCH_HEAD git cherry-pick -x aa79f996eb41e95aed85a1bd7f56bcd6a3842008 # git commit -s git send-email --to '' --in-reply-to '2026032347-celtic-fragility-e746@gregkh' --subject-prefix 'PATCH 6.6.y' HEAD^.. Possible dependencies: thanks, greg k-h ------------------ original commit in Linus's tree ------------------ >From aa79f996eb41e95aed85a1bd7f56bcd6a3842008 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Mon, 9 Mar 2026 08:50:16 +0100 Subject: [PATCH] i2c: cp2615: fix serial string NULL-deref at probe MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The cp2615 driver uses the USB device serial string as the i2c adapter name but does not make sure that the string exists. Verify that the device has a serial number before accessing it to avoid triggering a NULL-pointer dereference (e.g. with malicious devices). Fixes: 4a7695429ead ("i2c: cp2615: add i2c driver for Silicon Labs' CP2615 Digital Audio Bridge") Cc: stable@vger.kernel.org # 5.13 Cc: Bence Csókás Signed-off-by: Johan Hovold Reviewed-by: Bence Csókás Signed-off-by: Andi Shyti Link: https://lore.kernel.org/r/20260309075016.25612-1-johan@kernel.org diff --git a/drivers/i2c/busses/i2c-cp2615.c b/drivers/i2c/busses/i2c-cp2615.c index e2d7cd2390fc..8212875700e1 100644 --- a/drivers/i2c/busses/i2c-cp2615.c +++ b/drivers/i2c/busses/i2c-cp2615.c @@ -298,6 +298,9 @@ cp2615_i2c_probe(struct usb_interface *usbif, const struct usb_device_id *id) if (!adap) return -ENOMEM; + if (!usbdev->serial) + return -EINVAL; + strscpy(adap->name, usbdev->serial, sizeof(adap->name)); adap->owner = THIS_MODULE; adap->dev.parent = &usbif->dev;