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.

Routine
CVSS
5.5
medium
Exploitation
None reported
No vendor assessment
CISA KEV
Not listed
Not in the Known Exploited Vulnerabilities catalog
EPSS
0.0025
17th percentile

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

ProductFixed inFixReleased
Linux
bpftool · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
bpftool · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
dtb-aarch64 · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-64kb · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-64kb · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-azure · opensuse-leap 15.6 6.4.0-150600.8.20.1 SUSE-SU-2024:4316-1 Dec 13, 2024
kernel-azure · sles 15.6 6.4.0-150600.8.20.1 SUSE-SU-2024:4316-1 Dec 13, 2024
kernel-coco · sles 15.6 6.4.0-15061.12.coco15sp6.1 SUSE-SU-2025:0289-1 Jan 29, 2025
kernel-coco_debug · sles 15.6 6.4.0-15061.12.coco15sp6.1 SUSE-SU-2025:0289-1 Jan 29, 2025
kernel-debug · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-default · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-default · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-default-base · opensuse-leap 15.6 6.4.0-150600.23.30.1.150600.12.12.6 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-default-base · sles 15.6 6.4.0-150600.23.30.1.150600.12.12.6 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-docs · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-docs · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-kvmsmall · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-livepatch-SLE15-SP6-RT_Update_6 · sles 15.6 1-150600.1.3.1 SUSE-SU-2024:4314-1 Dec 13, 2024
kernel-livepatch-SLE15-SP6_Update_6 · sles 15.6 1-150600.13.3.5 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-obs-build · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-obs-build · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-obs-qa · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-rt · opensuse-leap 15.6 6.4.0-150600.10.20.1 SUSE-SU-2024:4314-1 Dec 13, 2024
kernel-rt_debug · opensuse-leap 15.6 6.4.0-150600.10.20.1 SUSE-SU-2024:4314-1 Dec 13, 2024
kernel-source · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-source · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-source-azure · opensuse-leap 15.6 6.4.0-150600.8.20.1 SUSE-SU-2024:4316-1 Dec 13, 2024
kernel-source-azure · sles 15.6 6.4.0-150600.8.20.1 SUSE-SU-2024:4316-1 Dec 13, 2024
kernel-source-coco · sles 15.6 6.4.0-15061.12.coco15sp6.1 SUSE-SU-2025:0289-1 Jan 29, 2025
kernel-source-rt · opensuse-leap 15.6 6.4.0-150600.10.20.1 SUSE-SU-2024:4314-1 Dec 13, 2024
kernel-syms · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-syms · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-syms-azure · opensuse-leap 15.6 6.4.0-150600.8.20.1 SUSE-SU-2024:4316-1 Dec 13, 2024
kernel-syms-azure · sles 15.6 6.4.0-150600.8.20.1 SUSE-SU-2024:4316-1 Dec 13, 2024
kernel-syms-coco · sles 15.6 6.4.0-15061.12.coco15sp6.1 SUSE-SU-2025:0289-1 Jan 29, 2025
kernel-syms-rt · opensuse-leap 15.6 6.4.0-150600.10.20.1 SUSE-SU-2024:4314-1 Dec 13, 2024
kernel-uek · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-container · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-container · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-container-debug · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-container-debug · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-core · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-core · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-core · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-core · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-devel · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-devel · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-modules · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-modules · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-modules-extra · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-debug-modules-extra · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-devel · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-devel · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-doc · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-doc · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-modules · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-modules · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-modules-extra · ol 8 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-modules-extra · ol 9 0:5.15.0-305.176.4.el9uek ELSA-2025-20095 Feb 9, 2025
kernel-uek-tools · ol 8 0:5.4.17-2136.340.4.1.el7uek ELSA-2025-20100 Feb 12, 2025
kernel-zfcpdump · opensuse-leap 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
kernel-zfcpdump · sles 15.6 6.4.0-150600.23.30.1 SUSE-SU-2024:4318-1 Dec 13, 2024
linux · Debian 12.15 (bookworm) 6.1.119-1 DEBIAN-CVE-2024-50296 Nov 19, 2024
linux · Debian 13.5 (trixie) 6.11.9-1 DEBIAN-CVE-2024-50296 Nov 19, 2024
linux · Debian 14 6.11.9-1 DEBIAN-CVE-2024-50296 Nov 19, 2024

Patch Radar data is free to use with attribution. Terms and how to credit it.

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.