CVE-2026-98146: accel/amdxdna: Remove __counted_by from struct amdxdna_cmd_chain

Published Sep 25, 2026
·
Updated

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

accel/amdxdna: Remove countedby from struct amdxdnacmdchain

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

Remove countedby to avoid relying on the userspace-controlled commandcount for the flexible array bounds check.

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Remove the __counted_by(command_count) annotation from struct amdxdna_cmd_chain to avoid relying on the userspace-controlled command_count for flexible-array bounds checking.

Event History

Sep 25, 2026
CVE Published
via MITRE·10:36 AM
Data Sourced
via MITRE·10:36 AM
Description

Frequently Asked Questions

1

Who can trigger the kernel panic?

A userspace actor able to modify the shared AMDXDNA_BO_SHARE memory containing an amdxdna_cmd_chain can change command_count concurrently. Setting command_count to zero can cause the generated flexible-array bounds check to fail and panic the kernel.

2

What condition makes this issue possible?

The command_count field is userspace-controlled because the structure resides in shared AMDXDNA_BO_SHARE memory. The removed __counted_by(command_count) annotation caused kernel bounds checking to rely on that mutable field.

3

What is the remediation?

Apply a Linux kernel update containing the change that removes __counted_by from struct amdxdna_cmd_chain. The provided stable-kernel references identify commits carrying the fix.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203