{"id":"CVE-2026-139237","aliases":["CVE-2026-139237"],"related":[],"kind":"vulnerability","state":"published","title":"ibmveth: release the pool kobjects when probe fails","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"}],"published":"2026-11-30T13:32:53.444Z","modified":"2026-11-30T14:18:45.750Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","fixed":"83513a8be4d0f77a73d1022840b58238798b5f55","status":"affected"},{"type":"git","introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","fixed":"495edc8d67e858b9e3691db76df1528a457bc630","status":"affected"},{"type":"git","introduced":"860f242eb5340d0b0cfe243cb86b2a98f92e8b91","fixed":"fd052c6823b31eb45f824660567ab3f2da2d5195","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/83513a8be4d0f77a73d1022840b58238798b5f55","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/495edc8d67e858b9e3691db76df1528a457bc630","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fd052c6823b31eb45f824660567ab3f2da2d5195","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139237","url":"https://www.cve.org/CVERecord?id=CVE-2026-139237","licence":"CVE Terms of Use","modified":"2026-11-30T13:32:53.444Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139237","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139237","licence":"Public domain","modified":"2026-11-30T14:18:45.750Z"}],"updatedAt":"2026-11-30T14:33:09.646Z","epss":{"score":0.00198,"percentile":0.10122,"date":"2026-12-01T12:00:22.000Z"}}