CVE-2026-98390: x86/amd_node: Avoid divide by zero on virtualized systems

Published Oct 14, 2026
·
Updated

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

x86/amdnode: Avoid divide by zero on virtualized systems

On a virtualized system, the number of nodes does not have a relationship to the number of roots. A Xen PVH dom0 can calculate rootspernode as 0, which crashes with a divide by zero in:

if (count++ % rootspernode)

because the underlying topology code on Xen ends up making numnodes 2 and numroots 1 and the integer division result is 0.

The issue is seen with Xen, but it could affect other systems.

Set rootspernode to 1 in this case. Print a firmware bug when this is performed for non-virtualized systems.

[ bp: Massage commit message. ]

Affected Software

1 affected component
Linux Linux kernel

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Configuration

    Set roots_per_node to 1 when the virtualized topology calculation would otherwise produce 0, preventing division by zero.

    Linux kernel x86/amd_node roots_per_node = 1

Event History

Oct 14, 2026
CVE Published
via MITRE·01:25 PM
Data Sourced
via MITRE·01:25 PM
Description

Frequently Asked Questions

1

Which environments are most likely to be exposed to this crash?

The issue has been observed on Xen PVH dom0 systems, where topology reporting can produce two nodes and one root. Other virtualized systems may also be affected when the reported node and root counts result in roots_per_node being zero.

2

What condition triggers the divide-by-zero fault?

The fault occurs when topology calculation divides the number of roots by the number of nodes and the integer result is zero, then uses that value as the modulus divisor. The described Xen case has num_nodes set to 2 and num_roots set to 1.

3

What behavior does the fix introduce for affected topology values?

The fix sets roots_per_node to 1 when the calculated value would be zero, preventing the modulus operation from dividing by zero. On non-virtualized systems, this fallback also emits a firmware-bug message.

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