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

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Nov 30, 2026

Read the record on cve.org

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

ProductVersions
Linux Linux0de38d9f1dba2336f84799824af08263fc407dd1 to before 4e9ec23592e793458e8cb34ccb90f9ad23b29425 Affected0de38d9f1dba2336f84799824af08263fc407dd1 to before bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1 Affected0de38d9f1dba2336f84799824af08263fc407dd1 to before a886f04e84e0f96f362f14d8a6cf4cd882e00479 Affected0de38d9f1dba2336f84799824af08263fc407dd1 to before 9150b7787824c9e1d3435fc9be7ed5ca6a270e2f Affected0de38d9f1dba2336f84799824af08263fc407dd1 to before 4e15e0a941ce901d51b5f203713fa90feee9c4d3 Affected
Linux Linux6.6 Affectedbefore 6.6 Not Affected6.6.163 through 6.6.* Not Affected6.12.119 through 6.12.* Not Affected6.18.65 through 6.18.* Not Affected7.3.6 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.