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.
Published: 2026-10-06
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: Potential double free leading to memory corruption
Action: Apply patch
AI Analysis

Impact

The bug causes the Linux kernel's dmaengine pxa driver to double count hardware descriptors. The descriptor counter is first set by kzalloc_flex and subsequently incremented again by a loop, making the total count double. As a result, pxad_free_desc() iterates over more entries than were actually allocated, freeing entries that never existed. This unintended double‑free can corrupt the kernel heap, crash the system, or be leveraged by an attacker with local kernel access to achieve privilege escalation or denial of service.

Affected Systems

Linux kernels that include the dmaengine pxa driver and lack the recent commit. All releases prior to the fix are affected; the exact version span is not specified but any kernel that has not been updated to the patched source is vulnerable.

Risk and Exploitability

The CVSS score of 7.8 indicates a high severity vulnerability. The EPSS score of <1% indicates a very low exploitation probability. The vulnerability is not listed in the CISA KEV catalog, suggesting no confirmed active exploitation. The likely attack vector is local; an attacker must trigger dmaengine operations that use the pxa driver or otherwise cause kernel code paths that allocate and free descriptors. Because the flaw manifests as a memory corruption race due to double counting of descriptors, exploitation would require local code execution or the ability to influence DMA requests. The risk to remote attackers is low, but the local impact remains significant until a kernel update is applied.

Generated by OpenCVE AI on October 11, 2026 at 06:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a version containing the dmaengine: pxa descriptor counter fix.
  • If an upgrade cannot be applied immediately, disable or avoid using the pxa DMA engine on the affected systems until the patch is installed.
  • Implement monitoring of system logs for DMA‑related errors or crashes that could indicate exploitation attempts.

Generated by OpenCVE AI on October 11, 2026 at 06:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 11 Oct 2026 05:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415

Sun, 11 Oct 2026 00:30:00 +0000


Wed, 07 Oct 2026 07:00:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.8, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}


Tue, 06 Oct 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415

Tue, 06 Oct 2026 17:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Tue, 06 Oct 2026 14:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Tue, 06 Oct 2026 09:00:00 +0000

Type Values Removed Values Added
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.
Title dmaengine: pxa: fix double counting of the hw descriptors
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-19T09:17:34.749Z

Reserved: 2026-09-25T10:25:14.340Z

Link: CVE-2026-98324

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-06T09:18:24.573

Modified: 2026-10-19T10:18:34.593

Link: CVE-2026-98324

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-06T00:00:00Z

Links: CVE-2026-98324 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-11T06:30:13Z

Weaknesses