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 43DD43C1085 for ; Tue, 6 Oct 2026 08:48:18 +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=1791276500; cv=none; b=SgInGOiwRtU4HW2Eo1IoiOyGlPk1HdI42KxpowR08q3uGk+KCYlmbu3oercgyJyIOeRMrdm1mokiC+5TQWhSqSfTcOodvrPCTmqtDsGphhePgVmr/sdWRUGj/WGuJ4spT0mioRDsw2LqkGXZ+/FMdvk8MS6vHRJBvYWjqs1nqpk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791276500; c=relaxed/simple; bh=GO1C0rHTvTlU6hjldBYm7LMLUV8rkORLh221So46pBg=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=SwT1eayr65YkJ5Xk5dKNrHHddKwnXR+Qd0LQ/IRZAJhGlj1AdAs2MdPg6Or+HTn7skFkjvOF5Gp3OvexD+iyispNJEsh0rmTc9L+vPfPB4WvM0Vo7Acmrh4PYz3m8FcFSl2g/OtU1gitm1fLI1i6+Yc3uVTAeGpUM5bzQ98tnqI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oCEuD6fb; 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="oCEuD6fb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5036A1F000FF; Tue, 6 Oct 2026 08:48:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791276498; bh=+lbs1Lu2B+Zfa9EZGcv8r4laxl6VtT56BMDiY1GUY0A=; h=From:To:Cc:Subject:Date:Reply-To; b=oCEuD6fb1vTpkG5fD5wEMasQTXhrszKnsrRhYSfSw2Aj/5rWkwtczbEAJMPiZdS5c brojQIH0B0t+DGNpE85RNzPjDNFmc5TNh7NMxOYNTWH1laJXD2EdO33HKOFsdSkWaw OAyen8MXIlSNQud55VhJoj173iiEZ4F2tuIV1Np4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98218: i2c: atr: fix dangling adapter pointer on add failure Date: Tue, 6 Oct 2026 10:45:19 +0200 Message-ID: <2026100641-CVE-2026-98218-5592@gregkh> X-Mailer: git-send-email 2.56.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=2854; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2yOHDG/k74m+KsZZv0QPHcOhMrfbNrnbesnczT2+uGc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtvz0d4jJeiuzbYcie75smZfvop/tcR5bpGpP39O5z LH5UiJXRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwk/BnDgt6dW94cePqcl/to RdhzZ4H3rGvTUhgWXJRs+1P19+NHpe3Z001/d+T9u3B2NgA= 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: i2c: atr: fix dangling adapter pointer on add failure i2c_atr_add_adapter() stores atr->adapter[chan_id] before i2c_add_adapter() so that the I2C bus notifier can match child clients during registration. On failure the channel is freed but the slot was left pointing at freed memory, which can lead to use-after-free in i2c_atr_del_adapter() / cleanup and also block reuse with -EEXIST. Clear the slot on the i2c_add_adapter() error path before freeing chan. The Linux kernel CVE team has assigned CVE-2026-98218 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit a076a860acae77bbdcbd316541e5552e81fb1772 and fixed in 6.6.158 with commit 2f5e42edbd232bf705dc5d3a91e06344237e63bb Issue introduced in 6.6 with commit a076a860acae77bbdcbd316541e5552e81fb1772 and fixed in 6.12.112 with commit 1093835f6aef58a831298d93e0d93f244fa07b84 Issue introduced in 6.6 with commit a076a860acae77bbdcbd316541e5552e81fb1772 and fixed in 6.18.54 with commit eabf7a3d33cd9fad106d267d00cc842434de8e02 Issue introduced in 6.6 with commit a076a860acae77bbdcbd316541e5552e81fb1772 and fixed in 7.2.8 with commit a57d9592714506556e30188af72dd3bdb9f647b5 Issue introduced in 6.6 with commit a076a860acae77bbdcbd316541e5552e81fb1772 and fixed in 7.3-rc4 with commit ad34235808b63a70ca4989b7a2852923193d06ef 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-98218 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/i2c/i2c-atr.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/2f5e42edbd232bf705dc5d3a91e06344237e63bb https://git.kernel.org/stable/c/1093835f6aef58a831298d93e0d93f244fa07b84 https://git.kernel.org/stable/c/eabf7a3d33cd9fad106d267d00cc842434de8e02 https://git.kernel.org/stable/c/a57d9592714506556e30188af72dd3bdb9f647b5 https://git.kernel.org/stable/c/ad34235808b63a70ca4989b7a2852923193d06ef