CVE-2026-139222

ionic: fix port_info use-after-free on firmware recovery

Published Nov 30, 2026 CVSS 3.1 · 7 High EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

ionic: fix port_info use-after-free on firmware recovery

ionic_port_init() allocates port_info when the pointer is NULL, but its
error path frees it without checking whether this call allocated it.
Before commit ddc5911b9bd2 ("ionic: call ionic_port_init after
fw-upgrade") the function returned early when the buffer already
existed, so the two were symmetric.

Since then a failed PORT_INIT on either recovery path - fw_up or
reset_done - frees a buffer an earlier init owns, while the netdev is
registered and the ethtool ops are reading it.

Free only what this call allocated.

Analysis

AI-generated

Technical impact

The ionic driver in the Linux kernel contains a use‑after‑free flaw that is triggered during firmware recovery or reset operations. When ionic_port_init allocates a buffer that is later freed without checking whether the allocation succeeded, the code can prematurely free memory still referenced by the registered network device and the ethtool operations. This results in kernel memory corruption that can cause a kernel panic, service disruption, or, in a worst‑case scenario, allow an attacker to execute code in kernel mode.

Affected Systems

The flaw exists in any Linux kernel release that includes the ionic driver before the patch commit that removes the premature free. All distributions shipping an unpatched ionic driver with firmware upgrade or reset support are potentially vulnerable. No specific vendor or version list was provided, so the risk applies broadly to all affected kernels.

Risk and Exploitability

The vulnerability is a kernel‑level use‑after‑free (CWE‑416). Exploit requires local access to trigger a firmware recovery or reset path. The resulting memory corruption can lead to a kernel panic or privilege escalation if the attacker can exploit the corruption. EPSS is unavailable and the issue is not listed in the CISA KEV catalog, yet its kernel‑level nature warrants immediate attention; the chance of exploitation in typical environments remains uncertain but potentially high for systems that allow firmware upgrades or resets.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to a release that contains the ionic driver use‑after‑free fix – apply the commit that removes the free on failed PORT_INIT or use a distribution update such as the latest point release of Ubuntu, RHEL, or other major distributions.
  • If an immediate kernel upgrade is not feasible, disable the ionic driver or block firmware recovery and reset executions that invoke the vulnerable function; this may involve unloading the module, disabling firmware upgrade interfaces, or applying a kernel parameter that prevents recovery.
  • Continuously monitor kernel logs and system stability for signs of ionic‑related crashes or ethtool errors, and apply the patch as soon as an updated kernel becomes available.

Generated by OpenCVE AI on December 1, 2026 at 10:26 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Metrics cvssV3_1

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

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ionic: fix port_info use-after-free on firmware recovery ionic_port_init() allocates port_info when the pointer is NULL, but its error path frees it without checking whether this call allocated it. Before commit ddc5911b9bd2 ("ionic: call ionic_port_init after fw-upgrade") the function returned early when the buffer already existed, so the two were symmetric. Since then a failed PORT_INIT on either recovery path - fw_up or reset_done - frees a buffer an earlier init owns, while the netdev is registered and the ethtool ops are reading it. Free only what this call allocated.
Title ionic: fix port_info use-after-free on firmware recovery
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

No weakness.

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Dec 1, 2026, 5:41 AM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Dec 1, 2026, 6:17 AM