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 D304A405C20 for ; Wed, 27 May 2026 13:00:12 +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=1779886813; cv=none; b=ml7T5A+5vam524NMDsUEvmth5x8ZyzccDoklPdok8Dg/yHGKK5NzI2iFHdAbD42Il6s6HxubZ/eA7+pecBy11TjvybsQL3SvT8rh/W/x39lcsM/Di/sQPRwcP/y9LnDxTNPuUgWUKc0t8JViZ0U1rcJkzcl8+qQ7QUbXcv+mf+E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1779886813; c=relaxed/simple; bh=Bdh5PjEQ3sdIzsl+C8B0/6wlGI7B2Uo9CWQWwHlzcbs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=EpkPwDXoxj8g3eak9Kpqqphc1XeHeRPgi1QFRlESRjOSqaIInLJqnfzphZ1dPeohxzf/BuvoRpV7POPcq4RuE5dHwEXsWWZMBSdiKbI52y3phH3ztt8thNuT6ypQZ82d1d2xukCbrHBRViNQyEBY6bY7ZosTEeKVPFSLrEA62gY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ygETg/h3; 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="ygETg/h3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C40101F00A3A; Wed, 27 May 2026 13:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1779886812; bh=TjntKBM74aUDVIxF6U4BlFT8rCvs3qa01/FB5732UDA=; h=From:To:Cc:Subject:Date:Reply-To; b=ygETg/h37Avs/AmdQ86mQ4xW0HR9ljymaS/J2ZuhpGD4w3snRrsdJLx66sQDqahV7 GS2jEQ1+bSfCNeOEWe5Y1nhcLRTMVSA4/mL3vcNzbLyaImYkWwfdS0IAbOYNKSjbRH rkXExfmcEsofq+EvXK5SNWj4DTnn/I2G1HPTgRUA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-45996: spi: imx: fix use-after-free on unbind Date: Wed, 27 May 2026 14:58:47 +0200 Message-ID: <2026052741-CVE-2026-45996-8dc5@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=2715; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=+pjKUFo4eCgvj/+iirlq/6xs/O/oblK0aA3gW5g+S9s=; b=kA0DAAIRMUfUDdst+ykByyZiAGoW6oHICsxTvYF4KVpyaZUAqLbuKtxymql6RCpwdL0WdVzBk IhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmoW6oEACgkQMUfUDdst+yng4wCfXCOv /gOltSjQoExoRXVfeQH6bGMAoI/fKUtdTUVmWBhO/IoCR/cGnxrr 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: spi: imx: fix use-after-free on unbind The SPI subsystem frees the controller and any subsystem allocated driver data as part of deregistration (unless the allocation is device managed). Take another reference before deregistering the controller so that the driver data is not freed until the driver is done with it. The Linux kernel CVE team has assigned CVE-2026-45996 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 307c897db762d1e0feee9477276b08f6deca4a5b and fixed in 6.6.140 with commit f99165ef067723221472ce1aff632bc74f562643 Issue introduced in 5.19 with commit 307c897db762d1e0feee9477276b08f6deca4a5b and fixed in 6.12.86 with commit 385a330083f8dd47c15b02e9a83aef9234a37003 Issue introduced in 5.19 with commit 307c897db762d1e0feee9477276b08f6deca4a5b and fixed in 6.18.27 with commit 132e47030b0b5e398e0da6c59df5a5dae9b52cff Issue introduced in 5.19 with commit 307c897db762d1e0feee9477276b08f6deca4a5b and fixed in 7.0.4 with commit aa9025a498036b6012769f7af36d421385386c17 Issue introduced in 5.19 with commit 307c897db762d1e0feee9477276b08f6deca4a5b and fixed in 7.1-rc1 with commit 1c78c2002380a1fe31bfb01a3d5f29809e55a096 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-45996 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/spi/spi-imx.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/f99165ef067723221472ce1aff632bc74f562643 https://git.kernel.org/stable/c/385a330083f8dd47c15b02e9a83aef9234a37003 https://git.kernel.org/stable/c/132e47030b0b5e398e0da6c59df5a5dae9b52cff https://git.kernel.org/stable/c/aa9025a498036b6012769f7af36d421385386c17 https://git.kernel.org/stable/c/1c78c2002380a1fe31bfb01a3d5f29809e55a096