{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139222","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-11-30T13:22:15.921Z","datePublished":"2026-11-30T13:32:44.193Z","dateUpdated":"2026-12-01T05:41:54.976Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-12-01T05:41:54.976Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nionic: fix port_info use-after-free on firmware recovery\n\nionic_port_init() allocates port_info when the pointer is NULL, but its\nerror path frees it without checking whether this call allocated it.\nBefore commit ddc5911b9bd2 (\"ionic: call ionic_port_init after\nfw-upgrade\") the function returned early when the buffer already\nexisted, so the two were symmetric.\n\nSince then a failed PORT_INIT on either recovery path - fw_up or\nreset_done - frees a buffer an earlier init owns, while the netdev is\nregistered and the ethtool ops are reading it.\n\nFree only what this call allocated."}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"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.\nAC: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.\nPR: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.\nUI: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.\nS: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.\nC: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.\nI: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.\nA: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."}]}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/pensando/ionic/ionic_main.c"],"versions":[{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"3aecc8090f6af7e6445c19db9abaa50f66b609a0","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"d84b9db696f80aa3ce83159856cfec6842c7c410","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"321edbee9d7b64398bb11fccf46fa9cb0b637e41","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"248f5c923663039f5fdebabf818f80bf20ad4d42","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"4c1870b25621ce76ed2c45dfd820ada1df703881","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"fff691dbd53867aeb0b3da2da35592f1dbc6b306","status":"affected","versionType":"git"},{"version":"ddc5911b9bd228dd69de976a4545292420f45e73","lessThan":"d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/pensando/ionic/ionic_main.c"],"versions":[{"version":"5.7","status":"affected"},{"version":"0","lessThan":"5.7","status":"unaffected","versionType":"semver"},{"version":"5.10.275","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.226","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.193","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.163","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.119","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.65","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"7.3.6","lessThanOrEqual":"7.3.*","status":"unaffected","versionType":"semver"},{"version":"7.4-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.10.275"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"5.15.226"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.1.193"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.7","versionEndExcluding":"7.4-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/3aecc8090f6af7e6445c19db9abaa50f66b609a0"},{"url":"https://git.kernel.org/stable/c/d84b9db696f80aa3ce83159856cfec6842c7c410"},{"url":"https://git.kernel.org/stable/c/321edbee9d7b64398bb11fccf46fa9cb0b637e41"},{"url":"https://git.kernel.org/stable/c/248f5c923663039f5fdebabf818f80bf20ad4d42"},{"url":"https://git.kernel.org/stable/c/44ff46df5d0f2c41ac44bb8e658ea71ea7a6cd04"},{"url":"https://git.kernel.org/stable/c/4c1870b25621ce76ed2c45dfd820ada1df703881"},{"url":"https://git.kernel.org/stable/c/fff691dbd53867aeb0b3da2da35592f1dbc6b306"},{"url":"https://git.kernel.org/stable/c/d90d1a768b3b022c52beafb3a4701ee2ee3d2b5e"}],"title":"ionic: fix port_info use-after-free on firmware recovery","x_generator":{"engine":"bippy-1.2.0"}}}}