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 4AA9A3E63BA for ; Fri, 8 May 2026 14:23:28 +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=1778250208; cv=none; b=AxKuR2qvNti/bm5WHlj/fscBTe66MXZcDvh3GO4nL/EOI45fo4pB7PAIG7JFzq4Xln7Rz82hqafKKo5gF1AQzbnOxylxC81uOw/PEPAWNW5yJlk8K4xfdk6QobD0Rm34EwgdQvmsxO7SU+zHIYbHIf0dG73bAxBna3VPkGKu5lc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250208; c=relaxed/simple; bh=2c/RZJ7ZU7ZXzPOU8K3Nvh7KG61W2ce/1L/HCPa7HM8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P7CvXY9HJpaqwOmAyKY41QHlbk2+/+FLYRVQFKeMOU2LWj1sWlJ1QsFgEL8SbtwV7zYaBPEJRk58AIEAzKf1ppcRcCvGgZ7TvEFg4MM9++hYep3gljLs/TvaNh1jSXgZ64T03TlS16gJkWmkgBYf/VRVSjLLkH6jFkJUJb/Pk6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=a0GknNwv; 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="a0GknNwv" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D3AD3C2BCB0; Fri, 8 May 2026 14:23:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778250208; bh=2c/RZJ7ZU7ZXzPOU8K3Nvh7KG61W2ce/1L/HCPa7HM8=; h=From:To:Cc:Subject:Date:Reply-To:From; b=a0GknNwvD2Wb7hoYIJI/GagbndY6c8mbtO5olLFqFkvGesre2r4KiwI6BTiy7KHFU Zi9ta77jCnoZ+RQm7eSrL3biGX1JR/W4z9IE+ikEagE7v5B/E3uQaef7pI1ENcBevV FiltkbuU4KO1xrNkRENP9VNjtqG7MSSYNS03stz0= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43356: iio: imu: adis: Fix NULL pointer dereference in adis_init Date: Fri, 8 May 2026 16:21:25 +0200 Message-ID: <2026050824-CVE-2026-43356-4e9c@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=2777; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Y6vEpYVqG/4GL3sHpZEg+U3fIgacQjNCI07V/7VEMi0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/P6YYPgi38V4Y2KK3L7M9SX/u6nPuW+6zL1RpYVJ65 C+yzL65I5aFQZCJQVZMkeXLNp6j+ysOKXoZ2p6GmcPKBDKEgYtTACay8z/DguNPr62L4NknkW4v pB8jU7UlZN/cAoYFh3vWNX0RMWG92R+6U0lalDFMbL4cAA== 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: imu: adis: Fix NULL pointer dereference in adis_init The adis_init() function dereferences adis->ops to check if the individual function pointers (write, read, reset) are NULL, but does not first check if adis->ops itself is NULL. Drivers like adis16480, adis16490, adis16545 and others do not set custom ops and rely on adis_init() assigning the defaults. Since struct adis is zero-initialized by devm_iio_device_alloc(), adis->ops is NULL when adis_init() is called, causing a NULL pointer dereference: Unable to handle kernel NULL pointer dereference at virtual address 0000000000000000 pc : adis_init+0xc0/0x118 Call trace: adis_init+0xc0/0x118 adis16480_probe+0xe0/0x670 Fix this by checking if adis->ops is NULL before dereferencing it, falling through to assign the default ops in that case. The Linux kernel CVE team has assigned CVE-2026-43356 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 3b29bcee8f6f703a5952b85fc2ffcbcfb0862db4 and fixed in 6.18.19 with commit ba19dd366528b961430f5195c2e382420703074f Issue introduced in 6.15 with commit 3b29bcee8f6f703a5952b85fc2ffcbcfb0862db4 and fixed in 6.19.9 with commit 1a48f94c63a078e7b6a2e59a637fc0858dc6510c Issue introduced in 6.15 with commit 3b29bcee8f6f703a5952b85fc2ffcbcfb0862db4 and fixed in 7.0 with commit 9990cd4f8827bd1ae3fb6eb7407630d8d463c430 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-43356 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/imu/adis.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/ba19dd366528b961430f5195c2e382420703074f https://git.kernel.org/stable/c/1a48f94c63a078e7b6a2e59a637fc0858dc6510c https://git.kernel.org/stable/c/9990cd4f8827bd1ae3fb6eb7407630d8d463c430