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

net: enetc: fix potential divide-by-zero when num_vsi is zero

For i.MX94 series, all the standalone ENETCs do not support SR-IOV, so
pf->caps.num_vsi is zero. This leads to a divide-by-zero in
enetc4_default_rings_allocation() when distributing rings among PF and
VFs.

Division by zero is undefined behavior in C. On ARM64, the UDIV/SDIV
instructions silently return zero rather than raising an exception, so
the issue does not cause a visible crash. However, relying on this
behavior is incorrect and poses a cross-platform compatibility risk.

Add an explicit check for num_vsi == 0 and return early after the PF's
rings have been configured.
Published: 2026-08-28
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

In the Linux kernel, a divide‑by‑zero error can occur during ENETC ring allocation on i.MX94 devices when the number of virtual functions (num_vsi) is zero, which is the case for standalone ENETCs that do not support SR‑IOV. The erroneous arithmetic performed by the ARM64 UDIV/SDIV instructions produces a silent zero result rather than raising an exception, so the issue does not crash the kernel but introduces undefined behavior and a potential cross‑platform compatibility risk. The patch adds an explicit check for a zero value and early‑returns to prevent the division, thereby restoring correct ring configuration.

Affected Systems

Linux kernel running on i.MX94 series ARM64 hardware. The vulnerability is tied to the enetc driver in the kernel; any kernel version prior to the commit that introduced the null‑check is affected. No specific release numbers are listed, so all distributions that ship with a kernel older than this patch and run on i.MX94 devices are potentially impacted.

Risk and Exploitability

The CVSS score is not provided, and the EPSS score is unavailable, indicating no publicly reported exploits. Because the divide‑by‑zero path simply returns zero on ARM64, the defect does not trigger a crash or immediate denial of service, but it can lead to unpredictable ring allocation and kernel instability. The risk is therefore considered low to moderate, primarily due to the undefined behavior and lack of an attack surface outside the kernel. No known vulnerabilities have been linked to this weakness and it is not currently listed in the CISA KEV catalog.

Generated by OpenCVE AI on August 28, 2026 at 09:38 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel update that includes the enetc divide‑by‑zero fix
  • Backport or apply the specific commit patching enetc4_default_rings_allocation() if an updated kernel is unavailable
  • Disable SR‑IOV configuration on i.MX94 ENETC devices, as they do not support it and the driver paths are no longer needed
  • Monitor system stability and ring allocation counts after applying the fix or disabling SR‑IOV

Generated by OpenCVE AI on August 28, 2026 at 09:38 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 10:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-369

Fri, 28 Aug 2026 07:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: enetc: fix potential divide-by-zero when num_vsi is zero For i.MX94 series, all the standalone ENETCs do not support SR-IOV, so pf->caps.num_vsi is zero. This leads to a divide-by-zero in enetc4_default_rings_allocation() when distributing rings among PF and VFs. Division by zero is undefined behavior in C. On ARM64, the UDIV/SDIV instructions silently return zero rather than raising an exception, so the issue does not cause a visible crash. However, relying on this behavior is incorrect and poses a cross-platform compatibility risk. Add an explicit check for num_vsi == 0 and return early after the PF's rings have been configured.
Title net: enetc: fix potential divide-by-zero when num_vsi is zero
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-08-28T06:48:33.340Z

Reserved: 2026-08-26T14:34:25.773Z

Link: CVE-2026-80610

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-28T08:16:44.987

Modified: 2026-08-28T08:16:44.987

Link: CVE-2026-80610

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-28T10:00:06Z

Weaknesses