From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796046573; b=3w2h2Nl5S05/mL+3X/uM9XbumZIaAAembhLz4Uqbvdv/NTWZDNOLEzBimhjh5qYhOL7W 413kp8Pi2kZpnZPMbmTipCEk+1eKRjN03oDF8owJs9pr4rKHQl1mcBvCGxGrh1FGrggXp MkqXfdFfrjCtf5nYoY0upSt8zi0kLJWrooxy/Rgiv9v6bOglneeZfXWDhXEsFbVsgWIXs MbSC5G4o94EPvwqnNko5TltIdiIFa1T1+FyYcCpTmQFWkGiND8HxEZpUx9W+U5UgYhF3c z/D2l336pTZDZpROV8r0o7ZnmmBeS0+xnvTHpqVCfDQJTmJubaoJxunqTtGY4GHvFhA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796046573; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: Reply-To:MIME-Version:Lines:X-Developer-Signature:X-Developer-Key: Content-Transfer-Encoding; bh=McjrY/ygiLoJ06i6H0jVYsH8Z196cp+cFuwxk+t1Q0U=; b=vNdNNrtJ+qGtgKjvVGut24QPK8HaQrf3BP+AdugfqVBc5Tp3x8wUrPwgRmjDMe857+hg hdW7OIJ6nedZPqw0Lm8HlP7Xk8+T3JBbgJO7mDgMSnxrkwM6XkMpCOuP0hWQGwIlHUYVm QozoHkllVJrj+e/NK1XwDCFfRT3lxP5pmx6F+uSVfLghU8S7DQl4BaoA95UrvJfbjRVFf +pkvMFtfr1R7e6O4efTgJ/aIDUsUC1HK+RSFbwATPiHsI6PAz8MlfAQ65fFET72J/G6to p0D6RVrNsjxhpgMkOikKnbjHRl1iownX1HIEmSAowm38OwavMc0JYh/M7BxXw9hoeKg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=IW2XUPcz; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6748F606A31C for ; Mon, 30 Nov 2026 13:49:33 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=IW2XUPcz Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC7EE1F00896; Mon, 30 Nov 2026 13:49:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796046573; bh=McjrY/ygiLoJ06i6H0jVYsH8Z196cp+cFuwxk+t1Q0U=; h=From:To:Cc:Subject:Date:Reply-To; b=IW2XUPczRtuTdJu0lWSGNBWCPCFdluQzHYRD2ECpHhe9RFl+whEVQ+s6OpJ3NIQP4 EcJKeEnnoUlOPK534waBvPwZyNvfPOguXxYedHWahbNHtKPH1VDLmg7U18b3o8le6E BBGiN7nMmLNCrT4vGHWAlwGSTypfYirI2e1pHgEU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-138958: iio: adc: ad7768-1: reject devices without match data Date: Mon, 30 Nov 2026 14:27:43 +0100 Message-ID: <2026113045-CVE-2026-138958-d2cb@gregkh> X-Mailer: git-send-email 2.56.1 Reply-To: , X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=2292; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=VBH2/Nnw1nBgk9JuERx2to1UpZLbrMfAD3XXR0pOG5E=; b=owGbwMvMwCRo6H6F97bub03G02pJDNm8lZHGSnUf7pqYMJw/HKb6J8awbtOpLPWgJI0JTAcKz rqriEzuiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIkcY2WYK3HWXqpr42tR4XWX wzPXeX80E7zYxzA/PmTqhCTjxCuan+YGX94vYG7D/u4HAA== 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: iio: adc: ad7768-1: reject devices without match data SPI driver_override allows a device to bind to this driver without matching either the OF or SPI device ID table. In that case, spi_get_device_match_data() returns NULL. ad7768_probe() later dereferences the returned chip information to initialize the IIO channels and device name, causing a NULL pointer dereference. Commit 572a00852635 ("iio: dac: ad5686: missing NULL check on match data") fixed the same driver_override issue in another SPI driver. Reject devices without match data before continuing the probe. The Linux kernel CVE team has assigned CVE-2026-138958 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit fa087f5babbc24db76d5b24073216fa2d7d7b57d and fixed in 7.3.4 with commit 38702d00195c5f2aedc474d06b5c5e4e2052198e Issue introduced in 7.0 with commit fa087f5babbc24db76d5b24073216fa2d7d7b57d and fixed in 7.4-rc1 with commit e29630bd463eb40e2e86fe45a565fb1d636ac822 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-138958 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/iio/adc/ad7768-1.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/38702d00195c5f2aedc474d06b5c5e4e2052198e https://git.kernel.org/stable/c/e29630bd463eb40e2e86fe45a565fb1d636ac822