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 ACB2639FCCC for ; Sun, 19 Jul 2026 14:59:53 +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=1784473194; cv=none; b=P91nhJLfV4FPJDRQVDctiTwQueZSibrH7RKTQd7xxfHMaigMFJBvXC9eafrsueEJYCX+D9oTgj3Yf8i4C6YovuhO3CoZ1McOLjuTmXqiPE9ZvjtyMiU4nqckOjoKrCVk9MwrMR5mDVzpkCKSrcJYV9rwmouWrldOLh6k92A4Hi8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473194; c=relaxed/simple; bh=u6v2NPfWmjlqB646CgsPatYZnyh+xsla/Zxk1YupRk4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sNRe9XTcDkPiN6t7zEom094grMxADPt7DiX/NjKYqeakBbXgLhqhID1v+d8HES1Hh0MzL1jOBSTaCwaZY6HHxc3yrIONWSGVJPz06R8PLFXhUjfla7QphH9Mql1852Om0ft7HMjH36oSZlNZAM+4L9Pub33DMWUYm4t/cOIGHiU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HrqBlFg/; 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="HrqBlFg/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D0DA1F000E9; Sun, 19 Jul 2026 14:59:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473193; bh=KtqfPo2CIVLB8tm8r6/ILqAf0gUp+hqhJn4mk2QGZFo=; h=From:To:Cc:Subject:Date:Reply-To; b=HrqBlFg/suer9d1Tx5wob7gVU7iERovT8jebX0OWXdNeanTeisKOVBByCzQ3i1WBQ xLdrAy5xUcR3XnQm/Imp8flJ47sC3RX1NmwHxgBD0ajeQddOsVNn95toDs9FEMBW+6 NpdK8Ho7JawAPR970jrr7G82FUXkAz67SmkH5QCA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63930: iio: buffer: hw-consumer: fix use-after-free in error path Date: Sun, 19 Jul 2026 16:56:30 +0200 Message-ID: <2026071950-CVE-2026-63930-6bca@gregkh> X-Mailer: git-send-email 2.55.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=3553; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xSA92kmDvs7Px/oKyATCQibKd+97HiZdyutNqobcBAo=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT8skpr4+JGV27aPeXeVtBwI4D9wWM//w5rjy7+fRp pZ/3q843hHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATWZLOsGB7/mbtjMCA5SEt cbVNq4Rrrm2S8GCYxTzx84PS84LVG991sr/4e22r5CE/ZQA= 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: buffer: hw-consumer: fix use-after-free in error path In the err_put_buffers cleanup path of iio_hw_consumer_alloc(), the code was using list_for_each_entry() to iterate through buffers while calling iio_buffer_put() which can free the current buffer if refcount drops to 0. The list_for_each_entry() loop macro then evaluates buf->head.next to continue iteration, accessing the freed buffer. Fix this by using list_for_each_entry_safe(). The Linux kernel CVE team has assigned CVE-2026-63930 to this issue. Affected and fixed versions =========================== Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 5.10.259 with commit b71893c57730809c222766e5718bb33610f11963 Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 5.15.210 with commit 2ff615fc455acda5425c4900160cbe11cfea4449 Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 6.1.176 with commit d2759d49860b9a39b5cde2fb88e4b822ddf5f58f Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 6.6.143 with commit 29783e6b6ec0b7152a15e53a063f17537e81177d Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 6.12.93 with commit e965627f0d442bfcae3f496c90cb653fb0917a61 Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 6.18.35 with commit a3763ae33476328cf8d661742deb9daec78eac96 Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 7.0.12 with commit 9319c94f63ed10723afd738d79f5617daba87cc8 Issue introduced in 4.16 with commit 48b66f8f936f369bb1a43c12aedbfeb2975baf4c and fixed in 7.1 with commit 6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4 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-63930 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/buffer/industrialio-hw-consumer.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/b71893c57730809c222766e5718bb33610f11963 https://git.kernel.org/stable/c/2ff615fc455acda5425c4900160cbe11cfea4449 https://git.kernel.org/stable/c/d2759d49860b9a39b5cde2fb88e4b822ddf5f58f https://git.kernel.org/stable/c/29783e6b6ec0b7152a15e53a063f17537e81177d https://git.kernel.org/stable/c/e965627f0d442bfcae3f496c90cb653fb0917a61 https://git.kernel.org/stable/c/a3763ae33476328cf8d661742deb9daec78eac96 https://git.kernel.org/stable/c/9319c94f63ed10723afd738d79f5617daba87cc8 https://git.kernel.org/stable/c/6f5ed4f2c7c83f33344e0ba179f72a12e5dad4a4