# CVE-2024-41047: linux: In the Linux kernel, the following vulnerability has been resolved:  i40e: Fix XDP program unloading while removing t...

CVE-2024-41047 is fixed in 40 products on 1 platform, first by DEBIAN-CVE-2024-41047, released July 29, 2024. It is not reported as exploited. Patch Radar priority: Routine.

- Web page: https://patchblox.com/security/cve/CVE-2024-41047
- Priority: Routine
- CVSS: 5.5 (medium)
- EPSS: 0.0027
- CISA KEV: not listed
- Exploited (vendor report): no
- Publicly disclosed: no
- Published: Jul 29, 2024

## Description

In the Linux kernel, the following vulnerability has been resolved:  i40e: Fix XDP program unloading while removing the driver  The commit 6533e558c650 ("i40e: Fix reset path while removing the driver") introduced a new PF state "__I40E_IN_REMOVE" to block modifying the XDP program while the driver is being removed. Unfortunately, such a change is useful only if the ".ndo_bpf()" callback was called out of the rmmod context because unloading the existing XDP program is also a part of driver removing procedure. In other words, from the rmmod context the driver is expected to unload the XDP program without reporting any errors. Otherwise, the kernel warning with callstack is printed out to dmesg.  Example failing scenario:  1. Load the i40e driver.  2. Load the XDP program.  3. Unload the i40e driver (using "rmmod" command).  The example kernel warning log:  [  +0.004646] WARNING: CPU: 94 PID: 10395 at net/core/dev.c:9290 unregister_netdevice_many_notify+0x7a9/0x870 [...] [  +0.010959] RIP: 0010:unregister_netdevice_many_notify+0x7a9/0x870 [...] [  +0.002726] Call Trace: [  +0.002457]  <TASK> [  +0.002119]  ? __warn+0x80/0x120 [  +0.003245]  ? unregister_netdevice_many_notify+0x7a9/0x870 [  +0.005586]  ? report_bug+0x164/0x190 [  +0.003678]  ? handle_bug+0x3c/0x80 [  +0.003503]  ? exc_invalid_op+0x17/0x70 [  +0.003846]  ? asm_exc_invalid_op+0x1a/0x20 [  +0.004200]  ? unregister_netdevice_many_notify+0x7a9/0x870 [  +0.005579]  ? unregister_netdevice_many_notify+0x3cc/0x870 [  +0.005586]  unregister_netdevice_queue+0xf7/0x140 [  +0.004806]  unregister_netdev+0x1c/0x30 [  +0.003933]  i40e_vsi_release+0x87/0x2f0 [i40e] [  +0.004604]  i40e_remove+0x1a1/0x420 [i40e] [  +0.004220]  pci_device_remove+0x3f/0xb0 [  +0.003943]  device_release_driver_internal+0x19f/0x200 [  +0.005243]  driver_detach+0x48/0x90 [  +0.003586]  bus_remove_driver+0x6d/0xf0 [  +0.003939]  pci_unregister_driver+0x2e/0xb0 [  +0.004278]  i40e_exit_module+0x10/0x5f0 [i40e] [  +0.004570]  __do_sys_delete_module.isra.0+0x197/0x310 [  +0.005153]  do_syscall_64+0x85/0x170 [  +0.003684]  ? syscall_exit_to_user_mode+0x69/0x220 [  +0.004886]  ? do_syscall_64+0x95/0x170 [  +0.003851]  ? exc_page_fault+0x7e/0x180 [  +0.003932]  entry_SYSCALL_64_after_hwframe+0x71/0x79 [  +0.005064] RIP: 0033:0x7f59dc9347cb [  +0.003648] Code: 73 01 c3 48 8b 0d 65 16 0c 00 f7 d8 64 89 01 48 83 c8 ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa b8 b0 00 00 00 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 8b 0d 35 16 0c 00 f7 d8 64 89 01 48 [  +0.018753] RSP: 002b:00007ffffac99048 EFLAGS: 00000206 ORIG_RAX: 00000000000000b0 [  +0.007577] RAX: ffffffffffffffda RBX: 0000559b9bb2f6e0 RCX: 00007f59dc9347cb [  +0.007140] RDX: 0000000000000000 RSI: 0000000000000800 RDI: 0000559b9bb2f748 [  +0.007146] RBP: 00007ffffac99070 R08: 1999999999999999 R09: 0000000000000000 [  +0.007133] R10: 00007f59dc9a5ac0 R11: 0000000000000206 R12: 0000000000000000 [  +0.007141] R13: 00007ffffac992d8 R14: 0000559b9bb2f6e0 R15: 0000000000000000 [  +0.007151]  </TASK> [  +0.002204] ---[ end trace 0000000000000000 ]---  Fix this by checking if the XDP program is being loaded or unloaded. Then, block only loading a new program while "__I40E_IN_REMOVE" is set. Also, move testing "__I40E_IN_REMOVE" flag to the beginning of XDP_SETUP callback to avoid unnecessary operations and checks.

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | bpftool ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | dtb-aarch64 opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-64kb opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-64kb sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-azure opensuse-leap 15.6 | 6.4.0-150600.8.17.2 | [SUSE-SU-2024:3984-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3984-1.md) | Nov 13, 2024 |
| Linux | kernel-azure sles 15.6 | 6.4.0-150600.8.17.2 | [SUSE-SU-2024:3984-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3984-1.md) | Nov 13, 2024 |
| Linux | kernel-coco sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | [SUSE-SU-2024:4387-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4387-1.md) | Dec 19, 2024 |
| Linux | kernel-coco_debug sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | [SUSE-SU-2024:4387-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4387-1.md) | Dec 19, 2024 |
| Linux | kernel-debug opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-default opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-default sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-default-base opensuse-leap 15.6 | 6.4.0-150600.23.30.1.150600.12.12.6 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-default-base sles 15.6 | 6.4.0-150600.23.30.1.150600.12.12.6 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-docs opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-docs sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-kvmsmall opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-livepatch-SLE15-SP6-RT_Update_5 sles 15.6 | 1-150600.1.3.1 | [SUSE-SU-2024:3986-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3986-1.md) | Nov 13, 2024 |
| Linux | kernel-livepatch-SLE15-SP6_Update_6 sles 15.6 | 1-150600.13.3.5 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-obs-build opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-obs-build sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-obs-qa opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-rt opensuse-leap 15.6 | 6.4.0-150600.10.17.1 | [SUSE-SU-2024:3986-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3986-1.md) | Nov 13, 2024 |
| Linux | kernel-rt_debug opensuse-leap 15.6 | 6.4.0-150600.10.17.1 | [SUSE-SU-2024:3986-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3986-1.md) | Nov 13, 2024 |
| Linux | kernel-source opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-source sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-source-azure opensuse-leap 15.6 | 6.4.0-150600.8.17.1 | [SUSE-SU-2024:3984-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3984-1.md) | Nov 13, 2024 |
| Linux | kernel-source-azure sles 15.6 | 6.4.0-150600.8.17.1 | [SUSE-SU-2024:3984-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3984-1.md) | Nov 13, 2024 |
| Linux | kernel-source-coco sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | [SUSE-SU-2024:4387-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4387-1.md) | Dec 19, 2024 |
| Linux | kernel-source-rt opensuse-leap 15.6 | 6.4.0-150600.10.17.1 | [SUSE-SU-2024:3986-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3986-1.md) | Nov 13, 2024 |
| Linux | kernel-syms opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-syms sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-syms-azure opensuse-leap 15.6 | 6.4.0-150600.8.17.1 | [SUSE-SU-2024:3984-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3984-1.md) | Nov 13, 2024 |
| Linux | kernel-syms-azure sles 15.6 | 6.4.0-150600.8.17.1 | [SUSE-SU-2024:3984-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3984-1.md) | Nov 13, 2024 |
| Linux | kernel-syms-coco sles 15.6 | 6.4.0-15061.9.coco15sp6.1 | [SUSE-SU-2024:4387-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4387-1.md) | Dec 19, 2024 |
| Linux | kernel-syms-rt opensuse-leap 15.6 | 6.4.0-150600.10.17.1 | [SUSE-SU-2024:3986-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-3986-1.md) | Nov 13, 2024 |
| Linux | kernel-uek ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-container ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-container ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-container-debug ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-container-debug ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-core ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-core ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-core ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-core ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-devel ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-devel ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-modules ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-modules ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-modules-extra ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-debug-modules-extra ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-devel ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-devel ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-doc ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-doc ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-modules ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-modules ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-modules-extra ol 8 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-uek-modules-extra ol 9 | 0:5.15.0-210.163.7.el9uek | [ELSA-2024-12618](https://patchblox.com/security/data/fix/linux/elsa-2024-12618.md) | Sep 12, 2024 |
| Linux | kernel-zfcpdump opensuse-leap 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | kernel-zfcpdump sles 15.6 | 6.4.0-150600.23.30.1 | [SUSE-SU-2024:4318-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4318-1.md) | Dec 13, 2024 |
| Linux | linux Debian 12.15 (bookworm) | 6.1.106-1 | [DEBIAN-CVE-2024-41047](https://patchblox.com/security/data/fix/linux/debian-cve-2024-41047.md) | Jul 29, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.9.10-1 | [DEBIAN-CVE-2024-41047](https://patchblox.com/security/data/fix/linux/debian-cve-2024-41047.md) | Jul 29, 2024 |
| Linux | linux Debian 14 | 6.9.10-1 | [DEBIAN-CVE-2024-41047](https://patchblox.com/security/data/fix/linux/debian-cve-2024-41047.md) | Jul 29, 2024 |

---

Data as of 2026-11-09T13:31:49Z UTC. Source: Patchblox Patch Radar (https://patchblox.com/security/patch-radar). Patchblox finds out-of-date software on Windows, macOS and Linux and updates it through release rings: https://patchblox.com/demo

Free to use with attribution: show "Data: Patchblox Patch Radar" with a link to https://patchblox.com/security/patch-radar. Terms, including what needs a written agreement: https://patchblox.com/security/patch-radar/use-the-data

Product names, logos and trademarks shown on Patch Radar belong to their respective owners. They are used only to identify the software each security fix applies to and to help readers find their platform. Their use does not imply any affiliation with, or endorsement by, those owners, and Patchblox is not affiliated with any of them.
