# CVE-2024-50296: linux: In the Linux kernel, the following vulnerability has been resolved:  net: hns3: fix kernel crash when uninstalling dr...

CVE-2024-50296 is fixed in 41 products on 1 platform, first by DEBIAN-CVE-2024-50296, released November 19, 2024. It is not reported as exploited. Patch Radar priority: Routine.

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

## Description

In the Linux kernel, the following vulnerability has been resolved:  net: hns3: fix kernel crash when uninstalling driver  When the driver is uninstalled and the VF is disabled concurrently, a kernel crash occurs. The reason is that the two actions call function pci_disable_sriov(). The num_VFs is checked to determine whether to release the corresponding resources. During the second calling, num_VFs is not 0 and the resource release function is called. However, the corresponding resource has been released during the first invoking. Therefore, the problem occurs:  [15277.839633][T50670] Unable to handle kernel NULL pointer dereference at virtual address 0000000000000020 ... [15278.131557][T50670] Call trace: [15278.134686][T50670]  klist_put+0x28/0x12c [15278.138682][T50670]  klist_del+0x14/0x20 [15278.142592][T50670]  device_del+0xbc/0x3c0 [15278.146676][T50670]  pci_remove_bus_device+0x84/0x120 [15278.151714][T50670]  pci_stop_and_remove_bus_device+0x6c/0x80 [15278.157447][T50670]  pci_iov_remove_virtfn+0xb4/0x12c [15278.162485][T50670]  sriov_disable+0x50/0x11c [15278.166829][T50670]  pci_disable_sriov+0x24/0x30 [15278.171433][T50670]  hnae3_unregister_ae_algo_prepare+0x60/0x90 [hnae3] [15278.178039][T50670]  hclge_exit+0x28/0xd0 [hclge] [15278.182730][T50670]  __se_sys_delete_module.isra.0+0x164/0x230 [15278.188550][T50670]  __arm64_sys_delete_module+0x1c/0x30 [15278.193848][T50670]  invoke_syscall+0x50/0x11c [15278.198278][T50670]  el0_svc_common.constprop.0+0x158/0x164 [15278.203837][T50670]  do_el0_svc+0x34/0xcc [15278.207834][T50670]  el0_svc+0x20/0x30  For details, see the following figure.       rmmod hclge              disable VFs ---------------------------------------------------- hclge_exit()            sriov_numvfs_store()   ...                     device_lock()   pci_disable_sriov()     hns3_pci_sriov_configure()                             pci_disable_sriov()                               sriov_disable()     sriov_disable()             if !num_VFs :       if !num_VFs :               return;         return;                 sriov_del_vfs()       sriov_del_vfs()             ...         ...                       klist_put()         klist_put()               ...         ...                     num_VFs = 0;       num_VFs = 0;        device_unlock();  In this patch, when driver is removing, we get the device_lock() to protect num_VFs, just like sriov_numvfs_store().

## Where it's fixed

| Platform | Product | Fixed in | Fix | Released |
|---|---|---|---|---|
| Linux | bpftool ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | bpftool ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| 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.20.1 | [SUSE-SU-2024:4316-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4316-1.md) | Dec 13, 2024 |
| Linux | kernel-azure sles 15.6 | 6.4.0-150600.8.20.1 | [SUSE-SU-2024:4316-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4316-1.md) | Dec 13, 2024 |
| Linux | kernel-coco sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-coco_debug sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| 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_6 sles 15.6 | 1-150600.1.3.1 | [SUSE-SU-2024:4314-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4314-1.md) | Dec 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.20.1 | [SUSE-SU-2024:4314-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4314-1.md) | Dec 13, 2024 |
| Linux | kernel-rt_debug opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | [SUSE-SU-2024:4314-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4314-1.md) | Dec 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.20.1 | [SUSE-SU-2024:4316-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4316-1.md) | Dec 13, 2024 |
| Linux | kernel-source-azure sles 15.6 | 6.4.0-150600.8.20.1 | [SUSE-SU-2024:4316-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4316-1.md) | Dec 13, 2024 |
| Linux | kernel-source-coco sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-source-rt opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | [SUSE-SU-2024:4314-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4314-1.md) | Dec 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.20.1 | [SUSE-SU-2024:4316-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4316-1.md) | Dec 13, 2024 |
| Linux | kernel-syms-azure sles 15.6 | 6.4.0-150600.8.20.1 | [SUSE-SU-2024:4316-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4316-1.md) | Dec 13, 2024 |
| Linux | kernel-syms-coco sles 15.6 | 6.4.0-15061.12.coco15sp6.1 | [SUSE-SU-2025:0289-1](https://patchblox.com/security/data/fix/linux/suse-su-2025-0289-1.md) | Jan 29, 2025 |
| Linux | kernel-syms-rt opensuse-leap 15.6 | 6.4.0-150600.10.20.1 | [SUSE-SU-2024:4314-1](https://patchblox.com/security/data/fix/linux/suse-su-2024-4314-1.md) | Dec 13, 2024 |
| Linux | kernel-uek ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container-debug ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-container-debug ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-core ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-core ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-core ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-core ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-devel ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-devel ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules-extra ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-debug-modules-extra ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-devel ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-devel ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-doc ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-doc ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules-extra ol 8 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-modules-extra ol 9 | 0:5.15.0-305.176.4.el9uek | [ELSA-2025-20095](https://patchblox.com/security/data/fix/linux/elsa-2025-20095.md) | Feb 9, 2025 |
| Linux | kernel-uek-tools ol 8 | 0:5.4.17-2136.340.4.1.el7uek | [ELSA-2025-20100](https://patchblox.com/security/data/fix/linux/elsa-2025-20100.md) | Feb 12, 2025 |
| 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.119-1 | [DEBIAN-CVE-2024-50296](https://patchblox.com/security/data/fix/linux/debian-cve-2024-50296.md) | Nov 19, 2024 |
| Linux | linux Debian 13.5 (trixie) | 6.11.9-1 | [DEBIAN-CVE-2024-50296](https://patchblox.com/security/data/fix/linux/debian-cve-2024-50296.md) | Nov 19, 2024 |
| Linux | linux Debian 14 | 6.11.9-1 | [DEBIAN-CVE-2024-50296](https://patchblox.com/security/data/fix/linux/debian-cve-2024-50296.md) | Nov 19, 2024 |

---

Data as of 2026-11-08T06:59:42Z 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.
