{"id":"CVE-2026-43199","state":"PUBLISHED","title":"net/mlx5e: Fix \"scheduling while atomic\" in IPsec MAC address query","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix \"scheduling while atomic\" in IPsec MAC address query\n\nFix a \"scheduling while atomic\" bug in mlx5e_ipsec_init_macs() by\nreplacing mlx5_query_mac_address() with ether_addr_copy() to get the\nlocal MAC address directly from netdev->dev_addr.\n\nThe issue occurs because mlx5_query_mac_address() queries the hardware\nwhich involves mlx5_cmd_exec() that can sleep, but it is called from\nthe mlx5e_ipsec_handle_event workqueue which runs in atomic context.\n\nThe MAC address is already available in netdev->dev_addr, so no need\nto query hardware. This avoids the sleeping call and resolves the bug.\n\nCall trace:\n  BUG: scheduling while atomic: kworker/u112:2/69344/0x00000200\n  __schedule+0x7ab/0xa20\n  schedule+0x1c/0xb0\n  schedule_timeout+0x6e/0xf0\n  __wait_for_common+0x91/0x1b0\n  cmd_exec+0xa85/0xff0 [mlx5_core]\n  mlx5_cmd_exec+0x1f/0x50 [mlx5_core]\n  mlx5_query_nic_vport_mac_address+0x7b/0xd0 [mlx5_core]\n  mlx5_query_mac_address+0x19/0x30 [mlx5_core]\n  mlx5e_ipsec_init_macs+0xc1/0x720 [mlx5_core]\n  mlx5e_ipsec_build_accel_xfrm_attrs+0x422/0x670 [mlx5_core]\n  mlx5e_ipsec_handle_event+0x2b9/0x460 [mlx5_core]\n  process_one_work+0x178/0x2e0\n  worker_thread+0x2ea/0x430","publishedAt":"2026-05-06T11:28:06.232Z","updatedAt":"2026-10-21T12:40:17.684Z","severity":{"score":7.5,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"5efde07521309274f26727860774614cbc187242","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"e1407fb7c337373dfaaae2445d828b0b9ae26a29","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"57957bc7f1865778ec9b1618e15515feb6df7eb4","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"546de94e41e92e1f7dc6213615fb7c794d05db98","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"859380694f434597407632c29f30fdb5e763e6cc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","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/mellanox/mlx5/core/en_accel/ipsec.c"]}],"references":["https://git.kernel.org/stable/c/5efde07521309274f26727860774614cbc187242","https://git.kernel.org/stable/c/e1407fb7c337373dfaaae2445d828b0b9ae26a29","https://git.kernel.org/stable/c/57957bc7f1865778ec9b1618e15515feb6df7eb4","https://git.kernel.org/stable/c/546de94e41e92e1f7dc6213615fb7c794d05db98","https://git.kernel.org/stable/c/859380694f434597407632c29f30fdb5e763e6cc"],"weaknesses":["CWE-362"],"ingestedAt":"2026-10-29T20:11:57.932Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/43xxx/CVE-2026-43199.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-43199","state":"PUBLISHED","datePublished":"2026-05-06T11:28:06.232Z","dateUpdated":"2026-10-21T12:40:17.684Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-05-01T14:12:55.992Z"},"containers":{"cna":{"title":"net/mlx5e: Fix \"scheduling while atomic\" in IPsec MAC address query","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mlx5e: Fix \"scheduling while atomic\" in IPsec MAC address query\n\nFix a \"scheduling while atomic\" bug in mlx5e_ipsec_init_macs() by\nreplacing mlx5_query_mac_address() with ether_addr_copy() to get the\nlocal MAC address directly from netdev->dev_addr.\n\nThe issue occurs because mlx5_query_mac_address() queries the hardware\nwhich involves mlx5_cmd_exec() that can sleep, but it is called from\nthe mlx5e_ipsec_handle_event workqueue which runs in atomic context.\n\nThe MAC address is already available in netdev->dev_addr, so no need\nto query hardware. This avoids the sleeping call and resolves the bug.\n\nCall trace:\n  BUG: scheduling while atomic: kworker/u112:2/69344/0x00000200\n  __schedule+0x7ab/0xa20\n  schedule+0x1c/0xb0\n  schedule_timeout+0x6e/0xf0\n  __wait_for_common+0x91/0x1b0\n  cmd_exec+0xa85/0xff0 [mlx5_core]\n  mlx5_cmd_exec+0x1f/0x50 [mlx5_core]\n  mlx5_query_nic_vport_mac_address+0x7b/0xd0 [mlx5_core]\n  mlx5_query_mac_address+0x19/0x30 [mlx5_core]\n  mlx5e_ipsec_init_macs+0xc1/0x720 [mlx5_core]\n  mlx5e_ipsec_build_accel_xfrm_attrs+0x422/0x670 [mlx5_core]\n  mlx5e_ipsec_handle_event+0x2b9/0x460 [mlx5_core]\n  process_one_work+0x178/0x2e0\n  worker_thread+0x2ea/0x430"}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"5efde07521309274f26727860774614cbc187242","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"e1407fb7c337373dfaaae2445d828b0b9ae26a29","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"57957bc7f1865778ec9b1618e15515feb6df7eb4","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"546de94e41e92e1f7dc6213615fb7c794d05db98","versionType":"git"},{"version":"cee137a634318bfbda18ee5af45d300153b57fa5","status":"affected","lessThan":"859380694f434597407632c29f30fdb5e763e6cc","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.2","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.2","versionType":"semver"},{"version":"6.6.160","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.75","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.16","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"6.19.6","status":"unaffected","lessThanOrEqual":"6.19.*","versionType":"semver"},{"version":"7.0","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/mellanox/mlx5/core/en_accel/ipsec.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/5efde07521309274f26727860774614cbc187242"},{"url":"https://git.kernel.org/stable/c/e1407fb7c337373dfaaae2445d828b0b9ae26a29"},{"url":"https://git.kernel.org/stable/c/57957bc7f1865778ec9b1618e15515feb6df7eb4"},{"url":"https://git.kernel.org/stable/c/546de94e41e92e1f7dc6213615fb7c794d05db98"},{"url":"https://git.kernel.org/stable/c/859380694f434597407632c29f30fdb5e763e6cc"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","baseScore":7.5,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:N - The vulnerable path runs in mlx5 IPsec packet offload event handling, which can be driven by traffic on an exposed IPsec tunnel. A remote peer can cause the NIC ESN object-change event without local execution on the target.\nAC:L - There is no attacker-controlled race to win; once a packet-offload tunnel SA with ESN is present, the event path deterministically reaches the atomic-sleep bug. Traffic volume/sequence advancement is attacker-influenced.\nPR:N - The SA setup is a normal deployment precondition for the affected IPsec offload service, not a privilege the attacker must hold on the target. The packet sender needs no local account or target-side administrative capability.\nUI:N - No victim user action is needed after the susceptible IPsec offload configuration exists. The trigger is packet/event driven.\nS:U - The impact is within the kernel and the mlx5/IPsec networking subsystem on the same host. It does not cross a VM, IOMMU, or other separate security authority boundary.\nC:N - The bug is a sleeping firmware MAC query while holding a spinlock, not an out-of-bounds access, UAF, or information disclosure primitive. No kernel memory is exposed.\nI:N - The vulnerable call does not corrupt memory or provide an attacker-controlled write. It only performs a blocking command from atomic context.\nA:H - The kernel reports BUG: scheduling while atomic and the scheduler path can panic via panic-on-warn or destabilize the worker/kernel state. The trigger can be repeated, making denial of service high impact."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-10-21T12:40:17.684Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.6.160"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.12.75"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.18.16"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"6.19.6"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.2","versionEndExcluding":"7.0"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2026-43199","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"yes"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2026-10-16T15:15:41.077140Z"}}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-362","lang":"en","type":"CWE","description":"CWE-362 Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')"}]}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-10-19T19:16:23.966Z"}}]}}}