CVE-2026-139222
ionic: fix port_info use-after-free on firmware recovery
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.
INFO
Published Date :
Nov. 30, 2026, 2:18 p.m.
Last Modified :
Dec. 1, 2026, 6:17 a.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 416baaa9-dc9f-4396-8d5f-8c081fb06d67 |
Solution
- Review and apply the patch for the ionic driver.
- Ensure memory is freed only when allocated.
- Verify correct memory management in error paths.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-139222.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-139222 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-139222
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-139222 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-139222 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Dec. 01, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 30, 2026
Action Type Old Value New Value 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. Added Affected New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/139xxx/CVE-2026-139222.json">CVE-2026-139222</a> Added Reference https://git.kernel.org/stable/c/248f5c923663039f5fdebabf818f80bf20ad4d42 Added Reference https://git.kernel.org/stable/c/321edbee9d7b64398bb11fccf46fa9cb0b637e41 Added Reference https://git.kernel.org/stable/c/3aecc8090f6af7e6445c19db9abaa50f66b609a0 Added Reference https://git.kernel.org/stable/c/44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04 Added Reference https://git.kernel.org/stable/c/4c1870b25621ce76ed2c45dfd820ada1df703881 Added Reference https://git.kernel.org/stable/c/d84b9db696f80aa3ce83159856cfec6842c7c410 Added Reference https://git.kernel.org/stable/c/d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e Added Reference https://git.kernel.org/stable/c/fff691dbd53867aeb0b3da2da35592f1dbc6b306