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 9ED6B426ED3 for ; Wed, 4 Feb 2026 16:19:33 +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=1770221973; cv=none; b=tUMtWAaEBf2h1jGBD64JSvU7T3cj//1kNdLXqttGRTBkhTsfjsgmNcufo1jo7qs8pGOpQT4KlhRPg7ibnvChMUAa9mBEfiVcJ8LySjbUftE1tAw59/ATCGMWJVs1vVSZUiDBEGTRZy+YKurBV4k8T5fiSDxJ7m6fkZ70zRq0epg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770221973; c=relaxed/simple; bh=QTVFREhPRhlN4jrc7X6J8QnFzXkBDVdZZ4gkrLc1hrU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q51xsHaUTf7LW9nxP669XCa8C1GSg11TrKiZstmapVl44jJ7YyORURKfFk5xEBt2HjhHS+Ju6asCTS6optr/27c9HjcHARAwJmW/d1EPd8N/wpfyZu6yv/d0+5M/qQz1e6rxydvNHbPfAzwdh2AzO9l8FSlGewjpQKg5rl2smq0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=e19iQTRQ; 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="e19iQTRQ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AD1E0C19425; Wed, 4 Feb 2026 16:19:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1770221973; bh=QTVFREhPRhlN4jrc7X6J8QnFzXkBDVdZZ4gkrLc1hrU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=e19iQTRQlm4Smxcqx5pdbRwDo0GvsrTQr2pZP24y3FGFesexYcY1JasnS/WBixs88 LwTojVF/JYfWh1xFYOCmPWYOrSnfMpuf/GB2iUtykkFGlTNDgSuTGC/4JSn+RjjKNm ztSlnK8fsrjDJvt5s8FBtwIh3sPYJUN7eIr7rShg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-71199: iio: adc: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver Date: Wed, 4 Feb 2026 17:14:14 +0100 Message-ID: <2026020412-CVE-2025-71199-9a60@gregkh> X-Mailer: git-send-email 2.53.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=3115; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=aY70jEx4hzK8S5Xr1upvAR+Op4DZQ7JOwu+xRpdOGUc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnNBaF/1G/mnm6uysr525AgM2fbhavdv52e6Wv0C3eke GlO3+7cEcPCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPxsmFYsMResav+yUbB+QyX ou6+Zm3OPhrezTBjS+qkOmbuqDkHTBx5HU0jbv5nVAYA 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: at91-sama5d2_adc: Fix potential use-after-free in sama5d2_adc driver at91_adc_interrupt can call at91_adc_touch_data_handler function to start the work by schedule_work(&st->touch_st.workq). If we remove the module which will call at91_adc_remove to make cleanup, it will free indio_dev through iio_device_unregister but quite a bit later. While the work mentioned above will be used. The sequence of operations that may lead to a UAF bug is as follows: CPU0 CPU1 | at91_adc_workq_handler at91_adc_remove | iio_device_unregister(indio_dev) | //free indio_dev a bit later | | iio_push_to_buffers(indio_dev) | //use indio_dev Fix it by ensuring that the work is canceled before proceeding with the cleanup in at91_adc_remove. The Linux kernel CVE team has assigned CVE-2025-71199 to this issue. Affected and fixed versions =========================== Issue introduced in 4.19 with commit 23ec2774f1cc168b1f32a2e0ed2709cb473bb94e and fixed in 6.6.122 with commit 9795fe80976f8c31cafda7d44edfc0f532d1f7c4 Issue introduced in 4.19 with commit 23ec2774f1cc168b1f32a2e0ed2709cb473bb94e and fixed in 6.12.68 with commit d7b6fc224c7f5d6d8adcb18037138d3cfe2bbdfe Issue introduced in 4.19 with commit 23ec2774f1cc168b1f32a2e0ed2709cb473bb94e and fixed in 6.18.8 with commit d890234a91570542c228a20f132ce74f9fedd904 Issue introduced in 4.19 with commit 23ec2774f1cc168b1f32a2e0ed2709cb473bb94e and fixed in 6.19-rc7 with commit dbdb442218cd9d613adeab31a88ac973f22c4873 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-2025-71199 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/at91-sama5d2_adc.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/9795fe80976f8c31cafda7d44edfc0f532d1f7c4 https://git.kernel.org/stable/c/d7b6fc224c7f5d6d8adcb18037138d3cfe2bbdfe https://git.kernel.org/stable/c/d890234a91570542c228a20f132ce74f9fedd904 https://git.kernel.org/stable/c/dbdb442218cd9d613adeab31a88ac973f22c4873