Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-139222

published high CVSS 3.1 · 7.0

ionic: fix port_info use-after-free on firmware recovery

Published
30 Nov 2026, 13:32:44 UTC
Updated
01 Dec 2026, 05:41:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

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.

Affected vendor and product assertions
VendorProductVersion statusSource
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

0

No weakness assertions.

References

8

Provider assertions

1

Linux · 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

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected