CVE-2026-139221

ionic: free port_info when probe fails after the port is set up

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

ionic: free port_info when probe fails after the port is set up

ionic_probe() allocates the port_info DMA buffer via ionic_setup_one()
-> ionic_port_init(). If probe then fails anywhere after that, it
unwinds through err_out_pci, which never calls ionic_port_reset();
ionic_dev_teardown() and ionic_clear_pci() do not touch port_info, and
so the buffer is leaked. The call was lost when the setup code was
moved into ionic_setup_one().

Since ionic_remove() already frees the port_info DMA buffer with
ionic_port_reset(), call that on the probe error path too. Every path
to err_out_pci runs after ionic_setup_one() succeeded, so the BARs are
still mapped and the firmware gets a PORT_RESET before the buffer is
freed, the same order as in ionic_remove().

Analysis

AI-generated

Technical impact

During the Linux kernel’s ionic driver initialization, a DMA buffer named port_info is allocated through ionic_setup_one(). If the probe process later fails, the error handling path bypasses the function that would normally free this buffer. As a result the buffer remains allocated while the device’s BARs are still mapped and the firmware receives a port reset only after the buffer is freed in ionic_remove(). The leak persists until system memory is exhausted or the kernel forces a device reset, which can cause later allocations to fail and lead to a denial‑of‑service condition.

Affected Systems

All Linux kernel builds that include the ionic networking driver are potentially affected. The vulnerability is identified by the Linux kernel CNA and applies broadly to Linux:Linux. No specific version ranges are listed in the CNA data; however, any kernel revision that contains the vulnerable code paths is at risk until patched.

Risk and Exploitability

The CVSS score is not provided and EPSS data is unavailable, indicating a moderate baseline risk. The issue is not currently listed in CISA’s KEV catalog, suggesting that no widespread exploitation has been observed. Attackers would need local privilege to trigger the device probe failure repeatedly, which could eventually exhaust kernel memory. The vulnerability surface is limited to the device probe path, so its exploitation requires physical or administrative access and does not enable remote code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release that contains the patch adding ionic_port_reset() to the probe error path
  • If a patch is not yet available, manually apply a kernel-side code change that invokes ionic_port_reset() when the probe error path is taken
  • Regularly monitor system memory usage for signs of DMA buffer leaks and verify that the device reset sequence frees all allocated resources

Generated by OpenCVE AI on November 30, 2026 at 20:52 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-401
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: ionic: free port_info when probe fails after the port is set up ionic_probe() allocates the port_info DMA buffer via ionic_setup_one() -> ionic_port_init(). If probe then fails anywhere after that, it unwinds through err_out_pci, which never calls ionic_port_reset(); ionic_dev_teardown() and ionic_clear_pci() do not touch port_info, and so the buffer is leaked. The call was lost when the setup code was moved into ionic_setup_one(). Since ionic_remove() already frees the port_info DMA buffer with ionic_port_reset(), call that on the probe error path too. Every path to err_out_pci runs after ionic_setup_one() succeeded, so the BARs are still mapped and the firmware gets a PORT_RESET before the buffer is freed, the same order as in ionic_remove().
Title ionic: free port_info when probe fails after the port is set up
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:32 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM