7.5high
net/mlx5e: Fix "scheduling while atomic" in IPsec MAC address query
- Severity
- 7.5high CVSS:3.1 by Linux
- Exploit likelihood
- 0.41% (higher than 37% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix "scheduling while atomic" in IPsec MAC address query Fix a "scheduling while atomic" bug in mlx5e_ipsec_init_macs() by replacing mlx5_query_mac_address() with ether_addr_copy() to get the local MAC address directly from netdev->dev_addr. The issue occurs because mlx5_query_mac_address() queries the hardware which involves mlx5_cmd_exec() that can sleep, but it is called from the mlx5e_ipsec_handle_event workqueue which runs in atomic context. The MAC address is already available in netdev->dev_addr, so no need to query hardware. This avoids the sleeping call and resolves the bug. Call trace: BUG: scheduling while atomic: kworker/u112:2/69344/0x00000200 __schedule+0x7ab/0xa20 schedule+0x1c/0xb0 schedule_timeout+0x6e/0xf0 __wait_for_common+0x91/0x1b0 cmd_exec+0xa85/0xff0 [mlx5_core] mlx5_cmd_exec+0x1f/0x50 [mlx5_core] mlx5_query_nic_vport_mac_address+0x7b/0xd0 [mlx5_core] mlx5_query_mac_address+0x19/0x30 [mlx5_core] mlx5e_ipsec_init_macs+0xc1/0x720 [mlx5_core] mlx5e_ipsec_build_accel_xfrm_attrs+0x422/0x670 [mlx5_core] mlx5e_ipsec_handle_event+0x2b9/0x460 [mlx5_core] process_one_work+0x178/0x2e0 worker_thread+0x2ea/0x430
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from cee137a634318bfbda18ee5af45d300153b57fa5 before 5efde07521309274f26727860774614cbc187242, from cee137a634318bfbda18ee5af45d300153b57fa5 before e1407fb7c337373dfaaae2445d828b0b9ae26a29, from cee137a634318bfbda18ee5af45d300153b57fa5 before 57957bc7f1865778ec9b1618e15515feb6df7eb4, from cee137a634318bfbda18ee5af45d300153b57fa5 before 546de94e41e92e1f7dc6213615fb7c794d05db98, from cee137a634318bfbda18ee5af45d300153b57fa5 before 859380694f434597407632c29f30fdb5e763e6cc, 6.2 Not affected: before 6.2, from 6.6.160 up to 6.6.*, from 6.12.75 up to 6.12.*, from 6.18.16 up to 6.18.*, from 6.19.6 up to 6.19.*, from 7.0 up to * | CVE List |
| linux linux_kernel | from 6.2 before 6.12.75, from 6.13 before 6.18.16, from 6.19 before 6.19.6, 7.0 | NVD |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix "scheduling while atomic" in IPsec MAC address query Fix a "scheduling while atomic" bug in mlx5e_ipsec_init_macs() by replacing mlx5_query_mac_address() with ether_addr_copy() to get the local MAC address directly from netdev->dev_addr. The issue occurs because mlx5_query_mac_address() queries the hardware which involves mlx5_cmd_exec() that can sleep, but it is called from the mlx5e_ipsec_handle_event workqueue which runs in atomic context. The MAC address is already available in netdev->dev_addr, so no need to query hardware. This avoids the sleeping call and resolves the bug. Call trace: BUG: scheduling while atomic: kworker/u112:2/69344/0x00000200 __schedule+0x7ab/0xa20 schedule+0x1c/0xb0 schedule_timeout+0x6e/0xf0 __wait_for_common+0x91/0x1b0 cmd_exec+0xa85/0xff0 [mlx5_core] mlx5_cmd_exec+0x1f/0x50 [mlx5_core] mlx5_query_nic_vport_mac_address+0x7b/0xd0 [mlx5_core] mlx5_query_mac_address+0x19/0x30 [mlx5_core] mlx5e_ipsec_init_macs+0xc1/0x720 [mlx5_core] mlx5e_ipsec_build_accel_xfrm_attrs+0x422/0x670 [mlx5_core] mlx5e_ipsec_handle_event+0x2b9/0x460 [mlx5_core] process_one_work+0x178/0x2e0 worker_thread+0x2ea/0x430
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: net/mlx5e: Corrección de ’scheduling while atomic’ en la consulta de dirección MAC de IPsec Se 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. El 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. La 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. Rastreo de llamadas: ERROR: ’scheduling while atomic’: kworker/u112:2/69344/0x 00000200 __schedule+0x7ab/0xa20 schedule+0x1c/0xb0 schedule_timeout+0x6e/0xf0 __wait_for_common+0x91/0x1b0 cmd_exec+0xa85/0xff0 [mlx5_core] mlx5_cmd_exec+0x1f/0x50 [mlx5_core] mlx5_query_nic_vport_mac_address+0x7b/0xd0 [mlx5_core] mlx5_query_mac_address+0x19/0x30 [mlx5_core] mlx5e_ipsec_init_macs+0xc1/0x720 [mlx5_core] mlx5e_ipsec_build_accel_xfrm_attrs+0x422/0x670 [mlx5_core] mlx5e_ipsec_handle_event+0x2b9/0x460 [mlx5_core] process_one_work+0x178/0x2e0 worker_thread+0x2ea/0x430
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-43199 changed 2026-10-21 | CVE Terms of Use |
| NVD | CVE-2026-43199 changed 2026-11-11 | Public domain |