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 4C9993D6CD9 for ; Fri, 28 Aug 2026 06:54:24 +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=1787900065; cv=none; b=qAL2jBynewRweTzujMFlxenAXpE1u/GZiGY9FL9c/3Hzf5pRo2lmcTFbNDH9wM778JyaqcX+E4ooxSOcm05eT4QWH8g1cfrhBWk/Ri5aj1E6hyM/3Su+3QOMcW1+dfapF6gGtZjhdXRmj2raabn1z8OqV0GCxibRdGMusSmSngw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787900065; c=relaxed/simple; bh=8n+D+zdHA1B0Pwo/V1LaOAuQMA0BFIc4hcjvj5pEM8I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=GFOpuc8BvZs1v8OTzQT/MMMpOsOyl9SqqOX7pFuTbARlGXyz5DTx7UnXml2hbzWd5QTnp4U06QQ4N6ebSMljmiwDFQaU3syAFPZxTKr7XxPhq2DcDVC9gWEpQqXDsAzcOrmHkzhmx1UqcDSIsgk1x1yMw3RtwRzlfh1sV5uhifc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tVRvj19r; 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="tVRvj19r" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A77751F000E9; Fri, 28 Aug 2026 06:54:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1787900064; bh=fXtRWcXHzwj0T6y0iIoMZvTsFiQPWhCRcb97s1ZUGCo=; h=From:To:Cc:Subject:Date:Reply-To; b=tVRvj19rqE9XwNR++iviE7B29PmxP/QTmGXsHzZjM9X2LKQ8spwGi5uccGat1RYuE Acpj9EjkT1yShhZnHfyD9L9zvRoH/+es6qIVgxkVwbZpVDWfG3WpdaeovVfWMw9vXw JeHAqVlpltaLbapHymqd1HX/tFl3t6JuxAkWu3HQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-80698: dmaengine: idxd: fix double free of wq, engine, and group structs Date: Fri, 28 Aug 2026 08:53:21 +0200 Message-ID: <2026082805-CVE-2026-80698-673b@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=3326; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=MUh+y0sx8eJEqCkO3iS9SxwYjZmZLaWNicv7dUHmVmk=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkTDQLfsR4wnFcq2T/tdUjcbvVkrfUyBmoeZvOeK+YWO wb7KyzoiGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIns8GWYp/hlrtClG9uXidY+ 7lu7f3PEM98f2gwLup4n+PgGmrs+2JCfpR38OOiY4Ze1AA== 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: dmaengine: idxd: fix double free of wq, engine, and group structs The release callbacks for wq, engine, and group devices (idxd_conf_wq_release, idxd_conf_engine_release, idxd_conf_group_release) each call kfree() on the enclosing struct. The setup error paths and cleanup functions also call kfree() explicitly after put_device(), producing a double free whenever put_device() drops the reference count to zero and fires the release. In the setup functions, device_initialize() is called before device_add(), so the reference count is exactly 1 at the error sites. put_device() unconditionally fires the release, which frees the struct; the subsequent explicit kfree() then operates on freed memory. For idxd_setup_wqs(), the wq release callback also owns opcap_bmap and wqcfg. The error unwind additionally freed those fields explicitly before calling put_device(), causing further double frees on both. Remove the redundant explicit kfree() calls from all setup error paths and cleanup functions for wq, engine, and group structs, delegating sole ownership of those allocations to the release callbacks. The Linux kernel CVE team has assigned CVE-2026-80698 to this issue. Affected and fixed versions =========================== Issue introduced in 5.13 with commit 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 and fixed in 7.1.8 with commit c93a9f652b7373ac8ee5bfcc18a9af76959b6c6c Issue introduced in 5.13 with commit 7c5dd23e57c14cf7177b8a5e0fd08916e0c60005 and fixed in 7.2 with commit ec2d428b2e32dd157de8f86a86dd85c5b2c8f45c Issue introduced in 5.11.22 with commit 394e179f51fce06d6bb8ca5af8fa53f33c718cf4 Issue introduced in 5.12.5 with commit b09ad63775f58a8de3e228f59fb9543bfd964c9c Issue introduced in 5.11.22 with commit 26c219e7522c494f7865a928c81ced84cc7db3ae Issue introduced in 5.12.5 with commit 35ea8721d9e6e74c6847cf4d6c27e883b00b0331 Issue introduced in 5.11.22 with commit e6f86fe368cdc14764833a6e8bb59f7a85a40e06 Issue introduced in 5.12.5 with commit 1c28fd5f94d8996f7dd3805bd6a16ed46a5d0886 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-80698 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/dma/idxd/init.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/c93a9f652b7373ac8ee5bfcc18a9af76959b6c6c https://git.kernel.org/stable/c/ec2d428b2e32dd157de8f86a86dd85c5b2c8f45c