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 22F2C39FCCC for ; Sun, 19 Jul 2026 14:59:50 +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=1784473192; cv=none; b=SKiJwGJS/ODfzetCIhuOwh9Mq/dFlJ5ofN1W82E48AOmDkpP5nriaA9R6lWwt9EqvaTYFR7LK9tSXI7lOg8m86UMP106SIHU0KHRCyvl1sxDCxfFO72ygziXXWK7cwjNn0bZgrOSgd1Sk6CWoxy+4QHiyQ4qt29XTEDUFOqtC3I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784473192; c=relaxed/simple; bh=X4J4SdG7U6D7ND9vpkFMmrE2j/gbPD3Mh2Jc/ExKbHs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=PAoNCNSK/3noKWfLFkFXq34xB1VOAAv+oL59f3qNdN4GM9g6ZMTi24S6X5Aphu7W5wN0tPkiCT+kLrTC/iKwY+4XaB9W1aaVNL5GSmtmFgC+KoAyLhvqHoop8ueI5q7nDZHakVzyP+Sd7XGEeBQeP3CZLcZ5+uCdu2CBMSzFxmQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=X/IdsNiq; 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="X/IdsNiq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5400F1F000E9; Sun, 19 Jul 2026 14:59:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784473190; bh=AT4TFrdTSR6Qgs+Osjcr2KQOVCmofLQX+jJ2y18EHis=; h=From:To:Cc:Subject:Date:Reply-To; b=X/IdsNiqTUZCL+1df2nVYg7c5e1W46Qm512mU0Ucuz7GxzXMW9gxpuWXTvKlRvTX8 Wb32swKE30ESq7KtRw7HEPyNWcd/VaW7mzU6BMlNyhzMIV+Y5yIoxHdx/QnwVmbDeK AbPVU4pMwjPyAY9o9NGsRdEAUs9XpLjt4uphh8h8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63929: iio: buffer: Fix DMA fence leak in iio_buffer_enqueue_dmabuf() Date: Sun, 19 Jul 2026 16:56:29 +0200 Message-ID: <2026071950-CVE-2026-63929-42fb@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=3359; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=X7yfxZ0FOE6RkdA/8ISKwqHZKgSIIYD/fN9c7vCGZ74=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxT8vaGxfxl1Y8t7v1046dUzBj8tzYuvy9/l8fO3nwv JXuOF7QEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABN5XMGwYJ/FvtRsz8uxt592 P4mcU5wmlSC3jGF+1gXNV9JnF948P/eEYP69Hd9ir9o1AgA= 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: Fix DMA fence leak in iio_buffer_enqueue_dmabuf() iio_buffer_enqueue_dmabuf() allocates a struct iio_dma_fence (104 bytes, kmalloc-128) via kmalloc_obj()+dma_fence_init(), which sets the initial kref to 1. It then calls dma_resv_add_fence() which takes a second reference (kref=2), and stores a raw pointer in block->fence. On the success path the function returns without calling dma_fence_put() to release the initial reference, so every buffer enqueue permanently leaks one kmalloc-128 allocation. The iio_buffer_cleanup() work item only releases the temporary reference taken during completion signalling by iio_buffer_signal_dmabuf_done(); the initial reference from dma_fence_init() is never released. With four iio_rwdev instances at 240kHz and 512 samples per buffer, this produces ~1875 kmalloc-128 allocations per second matching the observed slab growth exactly. A test with ftrace confirmed that the dma_fence_destroy event was never triggered. Fix by calling dma_fence_put() after dma_resv_add_fence(), transferring ownership of the fence to the DMA reservation object. The DMA fence then gets properly discarded after being signalled. The Linux kernel CVE team has assigned CVE-2026-63929 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f and fixed in 6.12.93 with commit 9678aeed8b77d495a417dd057d479f3733094019 Issue introduced in 6.11 with commit 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f and fixed in 6.18.35 with commit 3412a95afaa5d3262008dfc34f3c7be33d8151dc Issue introduced in 6.11 with commit 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f and fixed in 7.0.12 with commit 96cdeaba6a008503455b78a9641c05c2a886a7ec Issue introduced in 6.11 with commit 3e26d9f08fbe0b73e951a5e810fdb7a332b7e37f and fixed in 7.1 with commit a093999355084bdbfe6e97f1dd232e58a1525f0b 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-63929 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/industrialio-buffer.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/9678aeed8b77d495a417dd057d479f3733094019 https://git.kernel.org/stable/c/3412a95afaa5d3262008dfc34f3c7be33d8151dc https://git.kernel.org/stable/c/96cdeaba6a008503455b78a9641c05c2a886a7ec https://git.kernel.org/stable/c/a093999355084bdbfe6e97f1dd232e58a1525f0b