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 56E443C345B for ; Fri, 1 May 2026 14:18: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=1777645108; cv=none; b=AEWHr1VYXg6CDL6DqDg1tSQcZFH7MDkEmy8jfiEyzfRU3LujyJaQ6603328WTPUZ6w7euKoAWRFsdvZuZnUHJ+8mLCFCT0TojPxG2cxX9K5AbAbgPw/poSCezmCr6+AVnIxht39DLdt9wvCybOUvQ5SKirV5+yI9i3OzHfR6EN0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645108; c=relaxed/simple; bh=gyHsT+bYr8/3zQNee+42x/QrUEouETQ7h9L4gytkM6Y=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DMg7FXdCssoB+VC2MG9swRuNyDpyEAmil90Icaj/F5NHDCqA6SRPeJbwVOpDk9iEhtgghubqWnriXtexNiLNthZ4PpC9ma+BKfU49oxDURKK/UN9bcwQQNqvjmzAtm3wjs8R8hnteAESy2IxH6N1ogj8L6PUGCQpWExuKwNbHsw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=JNB71AVO; 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="JNB71AVO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id BBA94C2BCB9; Fri, 1 May 2026 14:18:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645108; bh=gyHsT+bYr8/3zQNee+42x/QrUEouETQ7h9L4gytkM6Y=; h=From:To:Cc:Subject:Date:Reply-To:From; b=JNB71AVOEFqRXTWGyAW0LFzsrPBS4SbuiKolACyZ0snzYE8RMdBzlBmcbM6F/Xe3k 1MeyxZv+BHhwkTlTfV4pYK92lHUg/VnskRXKEBn/6FHuoG0Jmp2BtGPJfhjwwHet2Z sw+YHub7ReokeSfgM8/zu5AwIWwjD2vYOx6wDMy4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31761: iio: gyro: mpu3050: Move iio_device_register() to correct location Date: Fri, 1 May 2026 16:15:12 +0200 Message-ID: <2026050145-CVE-2026-31761-6af9@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=3362; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yrtgZrco+8knUgpW3tL0HCvKcrOnuhv0qrPh+HJA1f0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftoYqXTJW5j+bvuP/HL1+sz+BntYL37xtznlg6n6a5 5CI82bWjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZjI/0KGBcduff8XmMLwKL9z n/R9l1fhGRLmXgwLdh6XCpHoDtqbIc4QM+uPHX/V58jZAA== 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: gyro: mpu3050: Move iio_device_register() to correct location iio_device_register() should be at the end of the probe function to prevent race conditions. Place iio_device_register() at the end of the probe function and place iio_device_unregister() accordingly. The Linux kernel CVE team has assigned CVE-2026-31761 to this issue. Affected and fixed versions =========================== Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 5.10.253 with commit 22487ef85f6dd9499ddf49b85a08afc50a3f1992 Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 5.15.203 with commit caec338f91469f0a70b68165185afa3abc994545 Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.1.168 with commit 051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7 Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.6.134 with commit 2a4537653d200fda2a8516083459f8ff6194f8fc Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.12.81 with commit 92f18aa86302fe83e0726a1191015f427d4ff056 Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.18.22 with commit cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 6.19.12 with commit 59a317f8215674c8330817770497301bfb2c1b99 Issue introduced in 4.10 with commit 3904b28efb2c780c23dcddfb87e07fe0230661e5 and fixed in 7.0 with commit 4c05799449108fb0e0a6bd30e65fffc71e60db4d 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-31761 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/gyro/mpu3050-core.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/22487ef85f6dd9499ddf49b85a08afc50a3f1992 https://git.kernel.org/stable/c/caec338f91469f0a70b68165185afa3abc994545 https://git.kernel.org/stable/c/051ca43b0e0e4b66bfd349cd53ccf231ad1d69b7 https://git.kernel.org/stable/c/2a4537653d200fda2a8516083459f8ff6194f8fc https://git.kernel.org/stable/c/92f18aa86302fe83e0726a1191015f427d4ff056 https://git.kernel.org/stable/c/cc3de12a5612ee25df7fb549cb7b3e4cc8bfaf9c https://git.kernel.org/stable/c/59a317f8215674c8330817770497301bfb2c1b99 https://git.kernel.org/stable/c/4c05799449108fb0e0a6bd30e65fffc71e60db4d