{"id":"CVE-2026-90098","state":"PUBLISHED","title":"net: sparx5: fix sleep in atomic context in MAC table access","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5: fix sleep in atomic context in MAC table access\n\nsparx5_set_rx_mode() runs with netif_addr_lock_bh held and iterates\ndev->mc via __dev_mc_sync(), which per address calls sparx5_mc_sync() /\nsparx5_mc_unsync() -> sparx5_mact_learn() / sparx5_mact_forget().  These\ntake sparx5->lock, a mutex, and then poll the MAC access command\nregister with readx_poll_timeout(). A mutex may block, which is not\nallowed from atomic context.\n\nConvert the driver to the new .ndo_set_rx_mode_async callback introduced\nin commit 3554b4345d85 (\"net: introduce ndo_set_rx_mode_async and\nnetdev_rx_mode_work\"). The async callback is invoked from process\ncontext, so the mutex and sleeping completion poll can remain.\n\nObserved with CONFIG_PROVE_LOCKING, CONFIG_DEBUG_SPINLOCK,\nCONFIG_DEBUG_MUTEXES and CONFIG_DEBUG_ATOMIC_SLEEP enabled:\n\n  BUG: sleeping function called from invalid context at kernel/locking/mutex.c:591\n  in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 217, name: ip\n  preempt_count: 201, expected: 0\n  Call trace:\n   __might_resched+0x144/0x248\n   __might_sleep+0x48/0x7c\n   __mutex_lock+0x74/0x850\n   mutex_lock_nested+0x24/0x30\n   sparx5_mact_learn+0x78/0x100\n   sparx5_mc_sync+0x40/0x54\n   __hw_addr_sync_dev+0xc4/0x170\n   sparx5_set_rx_mode+0x4c/0x58\n   __dev_set_rx_mode+0x64/0xa4\n   __dev_open+0x1ec/0x26c","publishedAt":"2026-09-17T16:06:10.203Z","updatedAt":"2026-10-19T08:57:56.415Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d6fce5141929697a27f029c633433d487f6f62cb","status":"affected","lessThan":"648d196ccc03ae3b04402ae71ffa44959a85e88f","versionType":"git"},{"version":"d6fce5141929697a27f029c633433d487f6f62cb","status":"affected","lessThan":"b62793a7baeea9cf20209c9fd2e333311aaf3b8d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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/microchip/sparx5/sparx5_netdev.c"]}],"references":["https://git.kernel.org/stable/c/648d196ccc03ae3b04402ae71ffa44959a85e88f","https://git.kernel.org/stable/c/b62793a7baeea9cf20209c9fd2e333311aaf3b8d"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:34.582Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/90xxx/CVE-2026-90098.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-90098","state":"PUBLISHED","datePublished":"2026-09-17T16:06:10.203Z","dateUpdated":"2026-10-19T08:57:56.415Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-09-11T19:38:34.786Z"},"containers":{"cna":{"title":"net: sparx5: fix sleep in atomic context in MAC table access","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet: sparx5: fix sleep in atomic context in MAC table access\n\nsparx5_set_rx_mode() runs with netif_addr_lock_bh held and iterates\ndev->mc via __dev_mc_sync(), which per address calls sparx5_mc_sync() /\nsparx5_mc_unsync() -> sparx5_mact_learn() / sparx5_mact_forget().  These\ntake sparx5->lock, a mutex, and then poll the MAC access command\nregister with readx_poll_timeout(). A mutex may block, which is not\nallowed from atomic context.\n\nConvert the driver to the new .ndo_set_rx_mode_async callback introduced\nin commit 3554b4345d85 (\"net: introduce ndo_set_rx_mode_async and\nnetdev_rx_mode_work\"). The async callback is invoked from process\ncontext, so the mutex and sleeping completion poll can remain.\n\nObserved with CONFIG_PROVE_LOCKING, CONFIG_DEBUG_SPINLOCK,\nCONFIG_DEBUG_MUTEXES and CONFIG_DEBUG_ATOMIC_SLEEP enabled:\n\n  BUG: sleeping function called from invalid context at kernel/locking/mutex.c:591\n  in_atomic(): 1, irqs_disabled(): 0, non_block: 0, pid: 217, name: ip\n  preempt_count: 201, expected: 0\n  Call trace:\n   __might_resched+0x144/0x248\n   __might_sleep+0x48/0x7c\n   __mutex_lock+0x74/0x850\n   mutex_lock_nested+0x24/0x30\n   sparx5_mact_learn+0x78/0x100\n   sparx5_mc_sync+0x40/0x54\n   __hw_addr_sync_dev+0xc4/0x170\n   sparx5_set_rx_mode+0x4c/0x58\n   __dev_set_rx_mode+0x64/0xa4\n   __dev_open+0x1ec/0x26c"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"d6fce5141929697a27f029c633433d487f6f62cb","status":"affected","lessThan":"648d196ccc03ae3b04402ae71ffa44959a85e88f","versionType":"git"},{"version":"d6fce5141929697a27f029c633433d487f6f62cb","status":"affected","lessThan":"b62793a7baeea9cf20209c9fd2e333311aaf3b8d","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/microchip/sparx5/sparx5_netdev.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"7.2.6","status":"unaffected","lessThanOrEqual":"7.2.*","versionType":"semver"},{"version":"7.3","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/microchip/sparx5/sparx5_netdev.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/648d196ccc03ae3b04402ae71ffa44959a85e88f"},{"url":"https://git.kernel.org/stable/c/b62793a7baeea9cf20209c9fd2e333311aaf3b8d"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-19T08:57:56.415Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.2.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"7.3"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}