{"id":"CVE-2026-43199","aliases":["CVE-2026-43199"],"related":[],"kind":"vulnerability","state":"published","title":"net/mlx5e: Fix \"scheduling while atomic\" in IPsec MAC address query","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nnet/mlx5e: Corrección de ’scheduling while atomic’ en la consulta de dirección MAC de IPsec\n\nSe corrige un error de ’scheduling while atomic’ en mlx5e_ipsec_init_macs() reemplazando mlx5_query_mac_address() con ether_addr_copy() para obtener la dirección MAC local directamente de netdev  ->  dev_addr.\n\nEl problema ocurre porque mlx5_query_mac_address() consulta el hardware, lo que implica mlx5_cmd_exec() que puede suspenderse, pero es llamada desde la workqueue mlx5e_ipsec_handle_event que se ejecuta en contexto atómico.\n\nLa dirección MAC ya está disponible en netdev  ->  dev_addr, por lo que no es necesario consultar el hardware. Esto evita la llamada de suspensión y resuelve el error.\n\nRastreo de llamadas:\n  ERROR: ’scheduling while atomic’: kworker/u112:2/69344/0x 00000200\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","source":"nvd"}],"published":"2026-05-06T11:28:06.232Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-362"],"affected":[{"ranges":[{"type":"git","introduced":"cee137a634318bfbda18ee5af45d300153b57fa5","fixed":"5efde07521309274f26727860774614cbc187242","status":"affected"},{"type":"git","introduced":"cee137a634318bfbda18ee5af45d300153b57fa5","fixed":"e1407fb7c337373dfaaae2445d828b0b9ae26a29","status":"affected"},{"type":"git","introduced":"cee137a634318bfbda18ee5af45d300153b57fa5","fixed":"57957bc7f1865778ec9b1618e15515feb6df7eb4","status":"affected"},{"type":"git","introduced":"cee137a634318bfbda18ee5af45d300153b57fa5","fixed":"546de94e41e92e1f7dc6213615fb7c794d05db98","status":"affected"},{"type":"git","introduced":"cee137a634318bfbda18ee5af45d300153b57fa5","fixed":"859380694f434597407632c29f30fdb5e763e6cc","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.2","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.2","status":"unaffected"},{"type":"semver","introduced":"6.6.160","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.75","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"6.2","fixed":"6.12.75"},{"status":"affected","introduced":"6.13","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5efde07521309274f26727860774614cbc187242","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1407fb7c337373dfaaae2445d828b0b9ae26a29","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/57957bc7f1865778ec9b1618e15515feb6df7eb4","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/546de94e41e92e1f7dc6213615fb7c794d05db98","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/859380694f434597407632c29f30fdb5e763e6cc","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-10-16T15:15:41.077Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43199","url":"https://www.cve.org/CVERecord?id=CVE-2026-43199","licence":"CVE Terms of Use","modified":"2026-10-21T12:40:17.684Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43199","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43199","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.725Z","epss":{"score":0.00415,"percentile":0.37865,"date":"2026-12-01T12:00:22.000Z"}}