{"id":"CVE-2026-139142","summary":"net: bcmgenet: recover from a failed resume","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: bcmgenet: recover from a failed resume\n\nA resume that fails in bcmgenet_init_dma() returns with the interface\nstill IFF_UP and the datapath gone. The next ifdown runs the teardown\na second time and napi_disable() waits for a NAPI_STATE_SCHED bit that\nnothing will clear:\n\n  task:ip  state:D\n    usleep_range_state+0xec/0x158\n    napi_disable_locked+0x254/0x318\n    napi_disable+0x3c/0x68\n    bcmgenet_netif_stop+0x1c8/0x318\n    bcmgenet_close+0x24/0xd0\n    __dev_close_many+0x18c/0x310\n\nRTNL is held across the wait, so everything else blocks behind it.\n\nThe same resume gates the clock and detaches the device. Close releases\nthe clock a second time and ifup fails with -ENODEV. The hardware filters\nstay armed, so the next WoL suspend wakes on any frame. That suspend sets\nCMD_RX_EN for magic packet detection, so the WoL resume reuses rings that\nare gone.\n\nA failed resume should leave a state the ordinary paths can handle. Clear\nrx_cbs and tx_cbs as they are freed so they answer whether a datapath\nexists, and leave the clock alone so close and suspend release it once.\nThe WoL resume rebuilds instead, so stop the PHY first, phy_start() only\ntakes PHY_READY or PHY_HALTED.\n\nFlagged in a sashiko review and reproduced on a CM4 by forcing the resume\nallocation to fail.","modified":"2026-11-30T15:02:27.286779084Z","published":"2026-11-30T13:31:58.179Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139142.json","cna_assigner":"Linux"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1c1f51c3ee9ccf86462e36548291ed44fecd5355"},{"type":"WEB","url":"https://git.kernel.org/stable/c/357902cbc81465b71de69db5616d06a2f2cba244"},{"type":"WEB","url":"https://git.kernel.org/stable/c/52b7ccc85407f65679a223d8e5ed1df78fabb8cc"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c14988edf9ca6145284ab6b080f67ce3d29ebe00"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e8a57faa093037a2f253354ffe4ee1dbcb47dcd0"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139142.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139142"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"b6e978e50444a063f066f058d134173de877b968"},{"fixed":"c14988edf9ca6145284ab6b080f67ce3d29ebe00"},{"fixed":"52b7ccc85407f65679a223d8e5ed1df78fabb8cc"},{"fixed":"e8a57faa093037a2f253354ffe4ee1dbcb47dcd0"},{"fixed":"357902cbc81465b71de69db5616d06a2f2cba244"},{"fixed":"1c1f51c3ee9ccf86462e36548291ed44fecd5355"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139142.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.17.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139142.json"}}],"schema_version":"1.9.2"}