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: 5.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service (Kernel Panic)
Action: Patch
AI Analysis

Impact

The vulnerability arises in the Linux kernel’s AMD XDNA acceleration driver. A flexible array in struct amdxdna_cmd_chain is guarded by a __counted_by(attribute) that relies on a user‑controllable command_count field. Because the structure resides in a shared memory area (AMDXDNA_BO_SHARE) writable by user space, an attacker can set command_count to zero while the kernel later accesses the array. The generated bounds check then fails, causing the kernel to panic and the system to crash, which is a denial‑of‑service failure mode.

Affected Systems

Any Linux kernel that builds the accel/amdxdna driver and contains the vulnerable struct before the repository change. This includes all kernel versions that have not incorporated commit 52f3e086, regardless of distribution or patchlevel. Systems that expose the AMD XDNA firmware interface via shared memory are susceptible.

Risk and Exploitability

The CVSS score of 5.5 classifies the flaw with medium severity. The EPSS score is less than 1 %, and the vulnerability is not listed in the CISA KEV catalog, indicating a low publicly known exploitation likelihood. Based on the description, it is inferred that the attacker must be able to write to the shared memory used by the AMD XDNA driver, which typically requires local or administrative privileges. Thus the likely attack vector is local interaction with the driver or firmware interface, and the vulnerability does not appear to be exploitable from a remote context. The potential impact remains a kernel panic and a complete denial of service for the affected system.

Generated by OpenCVE AI on October 1, 2026 at 04:49 UTC.

Remediation

No solution or workaround provided in the CVE record.

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 October 1, 2026 at 04:49 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 21 Oct 2026 20:00:00 +0000

Type Values Removed Values Added
Weaknesses NVD-CWE-noinfo
CPEs cpe:2.3:o:linux:linux_kernel:7.3:rc1:*:*:*:*:*:*

Wed, 30 Sep 2026 14:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-129

Wed, 30 Sep 2026 06:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-129

Wed, 30 Sep 2026 05:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-129

Tue, 29 Sep 2026 13:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-367
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate


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-10-19T09:14:39.513Z

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

Link: CVE-2026-98146

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Undergoing Analysis

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

Modified: 2026-10-21T19:51:53.460

Link: CVE-2026-98146

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-09-25T00:00:00Z

Links: CVE-2026-98146 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-01T05:00:14Z

Weaknesses