CVE-2026-139222
published high CVSS 3.1 · 7.0ionic: fix port_info use-after-free on firmware recovery
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxddc5911b9bd228dd69de976a4545292420f45e73 to < 3aecc8090f6af7e6445c19db9abaa50f66b609a0 · ddc5911b9bd228dd69de976a4545292420f45e73 to < d84b9db696f80aa3ce83159856cfec6842c7c410 · ddc5911b9bd228dd69de976a4545292420f45e73 to < 321edbee9d7b64398bb11fccf46fa9cb0b637e41 · ddc5911b9bd228dd69de976a4545292420f45e73 to < 248f5c923663039f5fdebabf818f80bf20ad4d42 · ddc5911b9bd228dd69de976a4545292420f45e73 to < 44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04 · ddc5911b9bd228dd69de976a4545292420f45e73 to < 4c1870b25621ce76ed2c45dfd820ada1df703881 · ddc5911b9bd228dd69de976a4545292420f45e73 to < fff691dbd53867aeb0b3da2da35592f1dbc6b306 · ddc5911b9bd228dd69de976a4545292420f45e73 to < d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux5.7 (affected) · 0 to < 5.7 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.6 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 7.0 / 10
- Severity
- high
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:L - The free happens in ionic_port_init(), called from ionic_lif_handle_fw_up() (heartbeat deferred work) or ionic_reset_done()→ionic_setup_one(), when the IONIC_CMD_PORT_INIT devcmd fails. No network peer supplies data. The only attacker-reachable code that reads port_info is the local SIOCETHTOOL ops: ionic_get_stats, ionic_get_link_ksettings and ionic_get_pauseparam. AC:H - The trigger is a firmware-side PORT_INIT failure (-ENXIO fw down, 5 s DEVCMD_TIMEOUT or a fw error status) during recovery, which nobody can force. Both paths also set FW_RESET and detach the netdev before the free, so a CPU reader must already be inside an ethtool op and stay there for the whole recovery. PR:L - dev_ethtool() lets ETHTOOL_GSTATS, GLINKSETTINGS and GPAUSEPARAM through without CAP_NET_ADMIN, so any unprivileged local user can run ionic_sw_stats_get_values(), which keeps &port_info->stats across its copy loop. Root actions (devlink flash, a sysfs reset) only start a recovery and cannot force PORT_INIT to fail. UI:N - No victim action is needed. The reader is the attacker's own ethtool call, and the free comes from the driver's own watchdog or PCI reset handling. S:U - The freed DMA-coherent page and the readers of it are both inside the host kernel's ionic driver, so no security boundary is crossed. C:H - Under dma-direct or iommu=pt, ionic_sw_stats_get_values() keeps copying the port stats (about 89 u64 values) from the freed page into the ethtool -S buffer returned to user space. That exposes whatever kernel data has reused the page. I:H - The pre-fix error path calls dma_free_coherent() without first sending PORT_RESET. It still sends PORT_STATE UP, and fw_up leaves bus mastering on. If PORT_INIT completes late after a timeout, the NIC keeps DMA-writing port status and stats to port_info_pa, which corrupts whatever reuses the page. A:H - With IOMMU DMA, iommu_dma_alloc_remap() vmaps the buffer and the free unmaps it, so a reader still holding the stale pointer oopses. ionic_get_link_ksettings() also re-reads idev->port_info after its NULL check, so it can dereference the NULL left by the error path.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | ddc5911b9bd228dd69de976a4545292420f45e73 to < 3aecc8090f6af7e6445c19db9abaa50f66b609a0 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < d84b9db696f80aa3ce83159856cfec6842c7c410 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < 321edbee9d7b64398bb11fccf46fa9cb0b637e41 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < 248f5c923663039f5fdebabf818f80bf20ad4d42 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < 44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < 4c1870b25621ce76ed2c45dfd820ada1df703881 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < fff691dbd53867aeb0b3da2da35592f1dbc6b306 (affected · git)ddc5911b9bd228dd69de976a4545292420f45e73 to < d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 5.7 (affected)0 to < 5.7 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.6 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/248f5c923663039f5fdebabf818f80bf20ad4d42
- https://git.kernel.org/stable/c/321edbee9d7b64398bb11fccf46fa9cb0b637e41
- https://git.kernel.org/stable/c/3aecc8090f6af7e6445c19db9abaa50f66b609a0
- https://git.kernel.org/stable/c/44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04
- https://git.kernel.org/stable/c/4c1870b25621ce76ed2c45dfd820ada1df703881
- https://git.kernel.org/stable/c/d84b9db696f80aa3ce83159856cfec6842c7c410
- https://git.kernel.org/stable/c/d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e
- https://git.kernel.org/stable/c/fff691dbd53867aeb0b3da2da35592f1dbc6b306
Provider assertions
1Linux · cna
ionic: fix port_info use-after-free on firmware recovery
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 0534a1c883287f27a134b45c10197a647ab0fbdba2173bbb452ad99b0521e3b8
- Ingested
- 01 Dec 2026, 05:47:22 UTC
- Source record
- Official CVE record