{"id":"CVE-2026-139142","state":"PUBLISHED","title":"net: bcmgenet: recover from a failed resume","description":"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.","publishedAt":"2026-11-30T13:31:58.179Z","updatedAt":"2026-11-30T13:31:58.179Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"c14988edf9ca6145284ab6b080f67ce3d29ebe00","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"52b7ccc85407f65679a223d8e5ed1df78fabb8cc","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"e8a57faa093037a2f253354ffe4ee1dbcb47dcd0","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"357902cbc81465b71de69db5616d06a2f2cba244","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"1c1f51c3ee9ccf86462e36548291ed44fecd5355","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/genet/bcmgenet.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","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/broadcom/genet/bcmgenet.c"]}],"references":["https://git.kernel.org/stable/c/c14988edf9ca6145284ab6b080f67ce3d29ebe00","https://git.kernel.org/stable/c/52b7ccc85407f65679a223d8e5ed1df78fabb8cc","https://git.kernel.org/stable/c/e8a57faa093037a2f253354ffe4ee1dbcb47dcd0","https://git.kernel.org/stable/c/357902cbc81465b71de69db5616d06a2f2cba244","https://git.kernel.org/stable/c/1c1f51c3ee9ccf86462e36548291ed44fecd5355"],"weaknesses":[],"ingestedAt":"2026-11-30T13:44:05.999Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139142.json","commit":"8c2c22940a0de21d18737df980299c0488d5dc73","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139142","state":"PUBLISHED","datePublished":"2026-11-30T13:31:58.179Z","dateUpdated":"2026-11-30T13:31:58.179Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.916Z"},"containers":{"cna":{"title":"net: bcmgenet: recover from a failed resume","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"c14988edf9ca6145284ab6b080f67ce3d29ebe00","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"52b7ccc85407f65679a223d8e5ed1df78fabb8cc","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"e8a57faa093037a2f253354ffe4ee1dbcb47dcd0","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"357902cbc81465b71de69db5616d06a2f2cba244","versionType":"git"},{"version":"b6e978e50444a063f066f058d134173de877b968","status":"affected","lessThan":"1c1f51c3ee9ccf86462e36548291ed44fecd5355","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/broadcom/genet/bcmgenet.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.17","status":"affected"},{"version":"0","status":"unaffected","lessThan":"3.17","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/broadcom/genet/bcmgenet.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/c14988edf9ca6145284ab6b080f67ce3d29ebe00"},{"url":"https://git.kernel.org/stable/c/52b7ccc85407f65679a223d8e5ed1df78fabb8cc"},{"url":"https://git.kernel.org/stable/c/e8a57faa093037a2f253354ffe4ee1dbcb47dcd0"},{"url":"https://git.kernel.org/stable/c/357902cbc81465b71de69db5616d06a2f2cba244"},{"url":"https://git.kernel.org/stable/c/1c1f51c3ee9ccf86462e36548291ed44fecd5355"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:31:58.179Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.6.163"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.12.119"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"6.18.65"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.3.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.17","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}