Description
In the Linux kernel, the following vulnerability has been resolved:

accel/amdxdna: Remove __counted_by from struct amdxdna_cmd_chain

struct amdxdna_cmd_chain contains a flexible array annotated with
__counted_by(command_count). Since the structure is stored in shared
AMDXDNA_BO_SHARE memory, userspace can modify command_count concurrently.
If command_count is changed to zero, the bounds check generated from
__counted_by may fail and trigger a kernel panic.

Remove __counted_by to avoid relying on the userspace-controlled
command_count for the flexible array bounds check.
Published: 2026-09-25
Score: n/a
EPSS: n/a
KEV: No
Impact: Denial of Service (Kernel Panic)
Action: Immediate Patch
AI Analysis

Impact

The Linux kernel contains a component that interfaces with AMD XDNA hardware through shared memory structures. A flexible array inside struct amdxdna_cmd_chain is guarded by a __counted_by attribute that relies on a user‑supplied command_count field. Because the shared structure is writable from user space, an attacker can change command_count to zero while the kernel also reads the array. The attribute then generates a bounds check that fails, causing the kernel to panic. This results in a denial of service – the entire system crashes.

Affected Systems

Any Linux kernel installation that builds the accel/amdxdna driver and contains the vulnerable struct prior to the patch in commit 52f3e086. The problem exists in all kernel versions that have not applied the repository change. The fix was made in the upstream Linux kernel source; systems should refer to the latest stable release to verify the existence of the commit.

Risk and Exploitability

The vulnerability is classified as a kernel panic, a direct denial of service that typically requires local interaction with the affected driver or firmware interface. No publicly available exploits are known, EPSS data is not available, and the vulnerability is not listed in CISA KEV yet. Because the flaw depends on a user‑controlled buffer length, exploitation is likely limited to environments where the attacker can influence the shared memory area or driver state.

Generated by OpenCVE AI on September 25, 2026 at 13:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the kernel patch that removes the __counted_by annotation (commit 52f3e086…)
  • Reboot the system or reload the affected driver to ensure the updated code is active
  • If the AMD XDNA feature is not required, disable the corresponding driver or module to eliminate the vulnerable interface

Generated by OpenCVE AI on September 25, 2026 at 13:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 25 Sep 2026 13:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-129

Fri, 25 Sep 2026 10:45:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: accel/amdxdna: Remove __counted_by from struct amdxdna_cmd_chain struct amdxdna_cmd_chain contains a flexible array annotated with __counted_by(command_count). Since the structure is stored in shared AMDXDNA_BO_SHARE memory, userspace can modify command_count concurrently. If command_count is changed to zero, the bounds check generated from __counted_by may fail and trigger a kernel panic. Remove __counted_by to avoid relying on the userspace-controlled command_count for the flexible array bounds check.
Title accel/amdxdna: Remove __counted_by from struct amdxdna_cmd_chain
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-09-25T10:36:20.303Z

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

Link: CVE-2026-98146

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-25T11:17:46.147

Modified: 2026-09-25T11:17:46.147

Link: CVE-2026-98146

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-25T14:30:14Z

Weaknesses
  • CWE-129

    Improper Validation of Array Index