{"api_version":"1","generated_at":"2026-12-01T15:25:29+00:00","cve":"CVE-2026-139142","urls":{"html":"https://cve.report/CVE-2026-139142","api":"https://cve.report/api/cve/CVE-2026-139142.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139142","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139142"},"summary":{"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.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:31","updated_at":"2026-11-30 14:18:31"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/e8a57faa093037a2f253354ffe4ee1dbcb47dcd0","name":"https://git.kernel.org/stable/c/e8a57faa093037a2f253354ffe4ee1dbcb47dcd0","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/357902cbc81465b71de69db5616d06a2f2cba244","name":"https://git.kernel.org/stable/c/357902cbc81465b71de69db5616d06a2f2cba244","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/52b7ccc85407f65679a223d8e5ed1df78fabb8cc","name":"https://git.kernel.org/stable/c/52b7ccc85407f65679a223d8e5ed1df78fabb8cc","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/1c1f51c3ee9ccf86462e36548291ed44fecd5355","name":"https://git.kernel.org/stable/c/1c1f51c3ee9ccf86462e36548291ed44fecd5355","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c14988edf9ca6145284ab6b080f67ce3d29ebe00","name":"https://git.kernel.org/stable/c/c14988edf9ca6145284ab6b080f67ce3d29ebe00","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139142","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139142","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6e978e50444a063f066f058d134173de877b968 c14988edf9ca6145284ab6b080f67ce3d29ebe00 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6e978e50444a063f066f058d134173de877b968 52b7ccc85407f65679a223d8e5ed1df78fabb8cc git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6e978e50444a063f066f058d134173de877b968 e8a57faa093037a2f253354ffe4ee1dbcb47dcd0 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6e978e50444a063f066f058d134173de877b968 357902cbc81465b71de69db5616d06a2f2cba244 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b6e978e50444a063f066f058d134173de877b968 1c1f51c3ee9ccf86462e36548291ed44fecd5355 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 3.17","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 3.17 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/net/ethernet/broadcom/genet/bcmgenet.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"c14988edf9ca6145284ab6b080f67ce3d29ebe00","status":"affected","version":"b6e978e50444a063f066f058d134173de877b968","versionType":"git"},{"lessThan":"52b7ccc85407f65679a223d8e5ed1df78fabb8cc","status":"affected","version":"b6e978e50444a063f066f058d134173de877b968","versionType":"git"},{"lessThan":"e8a57faa093037a2f253354ffe4ee1dbcb47dcd0","status":"affected","version":"b6e978e50444a063f066f058d134173de877b968","versionType":"git"},{"lessThan":"357902cbc81465b71de69db5616d06a2f2cba244","status":"affected","version":"b6e978e50444a063f066f058d134173de877b968","versionType":"git"},{"lessThan":"1c1f51c3ee9ccf86462e36548291ed44fecd5355","status":"affected","version":"b6e978e50444a063f066f058d134173de877b968","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/net/ethernet/broadcom/genet/bcmgenet.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"3.17"},{"lessThan":"3.17","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"3.17","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"3.17","vulnerable":true}],"negate":false,"operator":"OR"}]}],"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."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:31:58.179Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"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"}],"title":"net: bcmgenet: recover from a failed resume","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139142","datePublished":"2026-11-30T13:31:58.179Z","dateReserved":"2026-11-30T13:22:15.916Z","dateUpdated":"2026-11-30T13:31:58.179Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:31","lastModifiedDate":"2026-11-30 14:18:31","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139142","Ordinal":"1","Title":"net: bcmgenet: recover from a failed resume","CVE":"CVE-2026-139142","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139142","Ordinal":"1","NoteData":"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.","Type":"Description","Title":"net: bcmgenet: recover from a failed resume"}]}}}