{"id":"CVE-2026-139221","state":"PUBLISHED","title":"ionic: free port_info when probe fails after the port is set up","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nionic: free port_info when probe fails after the port is set up\n\nionic_probe() allocates the port_info DMA buffer via ionic_setup_one()\n-> ionic_port_init(). If probe then fails anywhere after that, it\nunwinds through err_out_pci, which never calls ionic_port_reset();\nionic_dev_teardown() and ionic_clear_pci() do not touch port_info, and\nso the buffer is leaked. The call was lost when the setup code was\nmoved into ionic_setup_one().\n\nSince ionic_remove() already frees the port_info DMA buffer with\nionic_port_reset(), call that on the probe error path too. Every path\nto err_out_pci runs after ionic_setup_one() succeeded, so the BARs are\nstill mapped and the firmware gets a PORT_RESET before the buffer is\nfreed, the same order as in ionic_remove().","publishedAt":"2026-11-30T13:32:43.374Z","updatedAt":"2026-11-30T13:32:43.374Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"4e9ec23592e793458e8cb34ccb90f9ad23b29425","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"a886f04e84e0f96f362f14d8a6cf4cd882e00479","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"9150b7787824c9e1d3435fc9be7ed5ca6a270e2f","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"4e15e0a941ce901d51b5f203713fa90feee9c4d3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139221.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139221","state":"PUBLISHED","datePublished":"2026-11-30T13:32:43.374Z","dateUpdated":"2026-11-30T13:32:43.374Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.921Z"},"containers":{"cna":{"title":"ionic: free port_info when probe fails after the port is set up","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nionic: free port_info when probe fails after the port is set up\n\nionic_probe() allocates the port_info DMA buffer via ionic_setup_one()\n-> ionic_port_init(). If probe then fails anywhere after that, it\nunwinds through err_out_pci, which never calls ionic_port_reset();\nionic_dev_teardown() and ionic_clear_pci() do not touch port_info, and\nso the buffer is leaked. The call was lost when the setup code was\nmoved into ionic_setup_one().\n\nSince ionic_remove() already frees the port_info DMA buffer with\nionic_port_reset(), call that on the probe error path too. Every path\nto err_out_pci runs after ionic_setup_one() succeeded, so the BARs are\nstill mapped and the firmware gets a PORT_RESET before the buffer is\nfreed, the same order as in ionic_remove()."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"4e9ec23592e793458e8cb34ccb90f9ad23b29425","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"a886f04e84e0f96f362f14d8a6cf4cd882e00479","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"9150b7787824c9e1d3435fc9be7ed5ca6a270e2f","versionType":"git"},{"version":"0de38d9f1dba2336f84799824af08263fc407dd1","status":"affected","lessThan":"4e15e0a941ce901d51b5f203713fa90feee9c4d3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.6","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.6","versionType":"semver"},{"version":"6.6.163","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.119","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.65","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.6","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4e9ec23592e793458e8cb34ccb90f9ad23b29425"},{"url":"https://git.kernel.org/stable/c/bdeced2c6513fcc8aaab0f9e1ebe4d4c5fb297e1"},{"url":"https://git.kernel.org/stable/c/a886f04e84e0f96f362f14d8a6cf4cd882e00479"},{"url":"https://git.kernel.org/stable/c/9150b7787824c9e1d3435fc9be7ed5ca6a270e2f"},{"url":"https://git.kernel.org/stable/c/4e15e0a941ce901d51b5f203713fa90feee9c4d3"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:43.374Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}