# CVE-2026-139221: ionic: free port_info when probe fails after the port is set up

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:32:43.374Z
- Modified: 2026-11-30T14:18:42.413Z
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from 0de38d9f1dba2336f84799824af08263fc407dd1 before 4e9ec23592e793458e8cb34ccb90f9ad23b29425; from 0de38d9f1dba2336f84799824af08263fc407dd1 before bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1; from 0de38d9f1dba2336f84799824af08263fc407dd1 before a886f04e84e0f96f362f14d8a6cf4cd882e00479; from 0de38d9f1dba2336f84799824af08263fc407dd1 before 9150b7787824c9e1d3435fc9be7ed5ca6a270e2f; from 0de38d9f1dba2336f84799824af08263fc407dd1 before 4e15e0a941ce901d51b5f203713fa90feee9c4d3; 6.6 (not affected: before 6.6; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/4e9ec23592e793458e8cb34ccb90f9ad23b29425>
- <https://git.kernel.org/stable/c/bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1>
- <https://git.kernel.org/stable/c/a886f04e84e0f96f362f14d8a6cf4cd882e00479>
- <https://git.kernel.org/stable/c/9150b7787824c9e1d3435fc9be7ed5ca6a270e2f>
- <https://git.kernel.org/stable/c/4e15e0a941ce901d51b5f203713fa90feee9c4d3>

## Sources

- CVE List: [CVE-2026-139221](https://www.cve.org/CVERecord?id=CVE-2026-139221), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139221](https://nvd.nist.gov/vuln/detail/CVE-2026-139221), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139221 · Whole record: https://cve.day/CVE-2026-139221.json · Rebuilt by cve.day 2026-11-30T14:32:40.113Z
