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 A05E83E2742 for ; Tue, 6 Oct 2026 10:28:55 +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=1791282536; cv=none; b=K4bqe0eCBmDcxbbwq8QtJhmZfPotbmKXOEcERvEmPckjS/mTbzSd2G+b+L8RFXlohsHhMOf9/CIezi5TLd2ezazpAFxagV+9qhiDiZ6uKQaAFYxDcB9R2dhjiO4nFJ6yadl1n6SRHqRXES9eHfzQelqgoAFQ5ZlqJ+jjd5FnBKg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1791282536; c=relaxed/simple; bh=fhlqEq8R5O1UEYmioxGQoQGKEtwMwFpihWRlPBJ4UEY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=QmMLYnPjrb7ZkYkoqJc+VRv2+OdeqEIq41TOHMCxzCZZSASKcAB9HRq3YXvgOT+oV48kbPN8KhgBo7IlUul21qB9IBMdhzlsLLBNgWyvnAFFAHD9ogqMkrEku5PzryHRdC6wEYsnizSpLUcleJBD32ry2pRvDAJ5EhmhFaM8PR0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=WVDbHkOY; 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="WVDbHkOY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C60871F00893; Tue, 6 Oct 2026 10:28:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1791282535; bh=ItUlC/Q5EmkXFjvb+nsOImqjBI09kj8qhjWv2mqxy4Y=; h=From:To:Cc:Subject:Date:Reply-To; b=WVDbHkOYEJhRcHMiBC/sE99SfZEx5GMY4fUmwUaPCr5W75fwzhSS6dT/DsknCZK17 A7zhyhsiZwFAVMx4j6V4YZ6BBYgoCm2Mzd/b37Ns1kU81DD8jsp9G9+5AlSlk9wQEn m+rzw/OQWqa5YfJd1YF91dzXJ7m0rmNLrIEK+Mvc= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98324: dmaengine: pxa: fix double counting of the hw descriptors Date: Tue, 6 Oct 2026 10:47:05 +0200 Message-ID: <2026100614-CVE-2026-98324-ae81@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=2453; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=6pGxXWbqcs7tn7JypnYHD4QaHhJvXGfXpv5Bstej758=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlHtkrZ8x76166d90AgKed8cWpn0025D9fEnu9q8DcQa izRVLLriGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4NTIsmPhxjuLJX3OcPTxS ma655pcu2bHqDsOCxpddc17IGR19pnEuiD1B8dAxxjodAA== 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: pxa: fix double counting of the hw descriptors pxad_alloc_desc() was converted from kzalloc(struct_size(sw_desc, hw_desc, nb_hw_desc), GFP_NOWAIT) to kzalloc_flex(), which sets the __counted_by() counter sw_desc->nb_desc itself - but only where the compiler has __builtin_counted_by_ref(), so from gcc 15.1 or clang 22.1 on. The loop below it still increments nb_desc, which makes it come out doubled there and correct elsewhere. nb_desc is what pxad_free_desc() iterates over and what set_updater_desc() indexes from, so set it explicitly and drop the increment. The error path has to lower it to the number of descriptors allocated so far, otherwise pxad_free_desc() would free entries that were never allocated. The Linux kernel CVE team has assigned CVE-2026-98324 to this issue. Affected and fixed versions =========================== Issue introduced in 7.0 with commit 69050f8d6d075dc01af7a5f2f550a8067510366f and fixed in 7.2.8 with commit 1de93785f32b450e9eae1e4fcfb7d03eb49eb27e Issue introduced in 7.0 with commit 69050f8d6d075dc01af7a5f2f550a8067510366f and fixed in 7.3-rc4 with commit f6504be006aa4bb4bd26285f410a885c17920d65 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-98324 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/pxa_dma.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/1de93785f32b450e9eae1e4fcfb7d03eb49eb27e https://git.kernel.org/stable/c/f6504be006aa4bb4bd26285f410a885c17920d65