{"id":"CVE-2026-139237","state":"PUBLISHED","title":"ibmveth: release the pool kobjects when probe fails","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: release the pool kobjects when probe fails\n\nIf register_netdev() fails in ibmveth_probe(), for example with -EINTR\nwhen the binding task is killed, probe frees the netdev but leaves the\npool%d kobjects embedded in it registered in sysfs. Reading\n/sys/devices/vio/<unit>/pool0/num is then a use-after-free, and the\nnext probe cannot add pool0.\n\nPut the kobjects before freeing the netdev, as ibmveth_remove() does,\non this path and on the netif_set_real_num_tx_queues() one.\n\nThe kobjects also have no release(). With CONFIG_DEBUG_KOBJECT_RELEASE,\nkobject_put() defers their cleanup, including removing the sysfs files,\nto a work item, so free_netdev() can free them first, here and in\nremove(). Add a release() that signals a per-pool completion, and wait\nfor it in both places before free_netdev(). Without that config,\nrelease() runs from kobject_put() and the wait returns at once.\n\nFound in review of the ibmveth multi-queue RX series and confirmed by\ncode inspection; the release() part was raised by the Sashiko review of\nthe first version. Tested on a POWER10 LPAR with register_netdev()\nforced to fail with -EINTR by a test-only module parameter (not part of\nthis patch): no pool%d directories remain and the device binds again. No\nkernel selftests cover ibmveth.","publishedAt":"2026-11-30T13:32:53.444Z","updatedAt":"2026-11-30T13:32:53.444Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"83513a8be4d0f77a73d1022840b58238798b5f55","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"495edc8d67e858b9e3691db76df1528a457bc630","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"fd052c6823b31eb45f824660567ab3f2da2d5195","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c","drivers/net/ethernet/ibm/ibmveth.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.18","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/ibm/ibmveth.c","drivers/net/ethernet/ibm/ibmveth.h"]}],"references":["https://git.kernel.org/stable/c/83513a8be4d0f77a73d1022840b58238798b5f55","https://git.kernel.org/stable/c/495edc8d67e858b9e3691db76df1528a457bc630","https://git.kernel.org/stable/c/fd052c6823b31eb45f824660567ab3f2da2d5195"],"weaknesses":[],"ingestedAt":"2026-11-30T13:46:04.484Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139237.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139237","state":"PUBLISHED","datePublished":"2026-11-30T13:32:53.444Z","dateUpdated":"2026-11-30T13:32:53.444Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.922Z"},"containers":{"cna":{"title":"ibmveth: release the pool kobjects when probe fails","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nibmveth: release the pool kobjects when probe fails\n\nIf register_netdev() fails in ibmveth_probe(), for example with -EINTR\nwhen the binding task is killed, probe frees the netdev but leaves the\npool%d kobjects embedded in it registered in sysfs. Reading\n/sys/devices/vio/<unit>/pool0/num is then a use-after-free, and the\nnext probe cannot add pool0.\n\nPut the kobjects before freeing the netdev, as ibmveth_remove() does,\non this path and on the netif_set_real_num_tx_queues() one.\n\nThe kobjects also have no release(). With CONFIG_DEBUG_KOBJECT_RELEASE,\nkobject_put() defers their cleanup, including removing the sysfs files,\nto a work item, so free_netdev() can free them first, here and in\nremove(). Add a release() that signals a per-pool completion, and wait\nfor it in both places before free_netdev(). Without that config,\nrelease() runs from kobject_put() and the wait returns at once.\n\nFound in review of the ibmveth multi-queue RX series and confirmed by\ncode inspection; the release() part was raised by the Sashiko review of\nthe first version. Tested on a POWER10 LPAR with register_netdev()\nforced to fail with -EINTR by a test-only module parameter (not part of\nthis patch): no pool%d directories remain and the device binds again. No\nkernel selftests cover ibmveth."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"83513a8be4d0f77a73d1022840b58238798b5f55","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"495edc8d67e858b9e3691db76df1528a457bc630","versionType":"git"},{"version":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","status":"affected","lessThan":"fd052c6823b31eb45f824660567ab3f2da2d5195","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/ibm/ibmveth.c","drivers/net/ethernet/ibm/ibmveth.h"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"2.6.18","status":"affected"},{"version":"0","status":"unaffected","lessThan":"2.6.18","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/ibm/ibmveth.c","drivers/net/ethernet/ibm/ibmveth.h"]}],"references":[{"url":"https://git.kernel.org/stable/c/83513a8be4d0f77a73d1022840b58238798b5f55"},{"url":"https://git.kernel.org/stable/c/495edc8d67e858b9e3691db76df1528a457bc630"},{"url":"https://git.kernel.org/stable/c/fd052c6823b31eb45f824660567ab3f2da2d5195"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:32:53.444Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"2.6.18","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}