Skip to content
OpenAdvisories
Unscored CVE-2021-47246 EUVD-2021-33894GHSA-c655-qwvw-wfqm

net/mlx5e: Fix page reclaim for dead peer hairpin

Published May 21, 2024 · Updated May 11, 2026 · Assigned by Linux

Vendor: Linux Product: Linux Package: linux Package: linux Package: linux-allwinner-5.19 Package: linux-aws Package: linux-aws-5.0 Package: linux-aws-5.11 Package: linux-aws-5.13 Package: linux-aws-5.19 Package: linux-aws-5.3 Package: linux-aws-5.4 Package: linux-aws-5.8 Package: linux-aws-6.2 Package: linux-aws-fips Package: linux-azure Package: linux-azure-5.11 Package: linux-azure-5.13 Package: linux-azure-5.19 Package: linux-azure-5.3 Package: linux-azure-5.4 Package: linux-azure-5.8 Package: linux-azure-6.2 Package: linux-azure-edge Package: linux-azure-fde Package: linux-azure-fde-5.19 Package: linux-azure-fde-6.2 Package: linux-azure-fips Package: linux-bluefield Package: linux-fips Package: linux-gcp Package: linux-gcp-5.11 Package: linux-gcp-5.13 Package: linux-gcp-5.19 Package: linux-gcp-5.3 Package: linux-gcp-5.4 Package: linux-gcp-5.8 Package: linux-gcp-6.2 Package: linux-gcp-fips Package: linux-gke Package: linux-gke-4.15 Package: linux-gke-5.15 Package: linux-gke-5.4 Package: linux-gkeop Package: linux-gkeop-5.4 Package: linux-hwe Package: linux-hwe-5.11 Package: linux-hwe-5.13 Package: linux-hwe-5.19 Package: linux-hwe-5.4 Package: linux-hwe-5.8 Package: linux-hwe-6.2 Package: linux-hwe-edge Package: linux-intel-5.13 Package: linux-intel-iot-realtime Package: linux-kvm Package: linux-lowlatency-hwe-5.19 Package: linux-lowlatency-hwe-6.2 Package: linux-nvidia-6.2 Package: linux-oem Package: linux-oem-5.10 Package: linux-oem-5.13 Package: linux-oem-5.14 Package: linux-oem-5.17 Package: linux-oem-5.6 Package: linux-oem-6.0 Package: linux-oem-6.1 Package: linux-oracle Package: linux-oracle-5.0 Package: linux-oracle-5.11 Package: linux-oracle-5.13 Package: linux-oracle-5.3 Package: linux-oracle-5.4 Package: linux-oracle-5.8 Package: linux-raspi Package: linux-raspi-5.4 Package: linux-raspi-realtime Package: linux-raspi2 Package: linux-realtime Package: linux-riscv Package: linux-riscv-5.11 Package: linux-riscv-5.19 Package: linux-riscv-5.8 Package: linux-starfive-5.19 Package: linux-starfive-6.2 Package: linux-vmware Platform: Linux Ecosystem: Debian Ecosystem: Ubuntu

Description

In the Linux kernel, the following vulnerability has been resolved:

net/mlx5e: Fix page reclaim for dead peer hairpin

When adding a hairpin flow, a firmware-side send queue is created for
the peer net device, which claims some host memory pages for its
internal ring buffer. If the peer net device is removed/unbound before
the hairpin flow is deleted, then the send queue is not destroyed which
leads to a stack trace on pci device remove:

[ 748.005230] mlx5_core 0000:08:00.2: wait_func:1094:(pid 12985): MANAGE_PAGES(0x108) timeout. Will cause a leak of a command resource
[ 748.005231] mlx5_core 0000:08:00.2: reclaim_pages:514:(pid 12985): failed reclaiming pages: err -110
[ 748.001835] mlx5_core 0000:08:00.2: mlx5_reclaim_root_pages:653:(pid 12985): failed reclaiming pages (-110) for func id 0x0
[ 748.002171] ------------[ cut here ]------------
[ 748.001177] FW pages counter is 4 after reclaiming all pages
[ 748.001186] WARNING: CPU: 1 PID: 12985 at drivers/net/ethernet/mellanox/mlx5/core/pagealloc.c:685 mlx5_reclaim_startup_pages+0x34b/0x460 [mlx5_core] [ +0.002771] Modules linked in: cls_flower mlx5_ib mlx5_core ptp pps_core act_mirred sch_ingress openvswitch nsh xt_conntrack xt_MASQUERADE nf_conntrack_netlink nfnetlink xt_addrtype iptable_nat nf_nat nf_conntrack nf_defrag_ipv6 nf_defrag_ipv4 br_netfilter rpcrdma rdma_ucm ib_iser libiscsi scsi_transport_iscsi rdma_cm ib_umad ib_ipoib iw_cm ib_cm ib_uverbs ib_core overlay fuse [last unloaded: pps_core]
[ 748.007225] CPU: 1 PID: 12985 Comm: tee Not tainted 5.12.0+ #1
[ 748.001376] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
[ 748.002315] RIP: 0010:mlx5_reclaim_startup_pages+0x34b/0x460 [mlx5_core]
[ 748.001679] Code: 28 00 00 00 0f 85 22 01 00 00 48 81 c4 b0 00 00 00 31 c0 5b 5d 41 5c 41 5d 41 5e 41 5f c3 48 c7 c7 40 cc 19 a1 e8 9f 71 0e e2 <0f> 0b e9 30 ff ff ff 48 c7 c7 a0 cc 19 a1 e8 8c 71 0e e2 0f 0b e9
[ 748.003781] RSP: 0018:ffff88815220faf8 EFLAGS: 00010286
[ 748.001149] RAX: 0000000000000000 RBX: ffff8881b4900280 RCX: 0000000000000000
[ 748.001445] RDX: 0000000000000027 RSI: 0000000000000004 RDI: ffffed102a441f51
[ 748.001614] RBP: 00000000000032b9 R08: 0000000000000001 R09: ffffed1054a15ee8
[ 748.001446] R10: ffff8882a50af73b R11: ffffed1054a15ee7 R12: fffffbfff07c1e30
[ 748.001447] R13: dffffc0000000000 R14: ffff8881b492cba8 R15: 0000000000000000
[ 748.001429] FS: 00007f58bd08b580(0000) GS:ffff8882a5080000(0000) knlGS:0000000000000000
[ 748.001695] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 748.001309] CR2: 000055a026351740 CR3: 00000001d3b48006 CR4: 0000000000370ea0
[ 748.001506] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[ 748.001483] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[ 748.001654] Call Trace:
[ 748.000576] ? mlx5_satisfy_startup_pages+0x290/0x290 [mlx5_core]
[ 748.001416] ? mlx5_cmd_teardown_hca+0xa2/0xd0 [mlx5_core]
[ 748.001354] ? mlx5_cmd_init_hca+0x280/0x280 [mlx5_core]
[ 748.001203] mlx5_function_teardown+0x30/0x60 [mlx5_core]
[ 748.001275] mlx5_uninit_one+0xa7/0xc0 [mlx5_core]
[ 748.001200] remove_one+0x5f/0xc0 [mlx5_core]
[ 748.001075] pci_device_remove+0x9f/0x1d0
[ 748.000833] device_release_driver_internal+0x1e0/0x490
[ 748.001207] unbind_store+0x19f/0x200
[ 748.000942] ? sysfs_file_ops+0x170/0x170
[ 748.001000] kernfs_fop_write_iter+0x2bc/0x450
[ 748.000970] new_sync_write+0x373/0x610
[ 748.001124] ? new_sync_read+0x600/0x600
[ 748.001057] ? lock_acquire+0x4d6/0x700
[ 748.000908] ? lockdep_hardirqs_on_prepare+0x400/0x400
[ 748.001126] ? fd_install+0x1c9/0x4d0
[ 748.000951] vfs_write+0x4d0/0x800
[ 748.000804] ksys_write+0xf9/0x1d0
[ 748.000868] ? __x64_sys_read+0xb0/0xb0
[ 748.000811] ? filp_open+0x50/0x50
[ 748.000919] ? syscall_enter_from_user_mode+0x1d/0x50
[ 748.001223] do_syscall_64+0x3f/0x80
[ 748.000892] entry_SYSCALL_64_after_hwframe+0x44/0xae
[ 748.00
---truncated---

Affected products

VendorProductAffectedFixed
Linux Linux 4.19 5.4.128

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 5.10.46-1 —
Debian 13 linux 5.10.46-1 —
Debian 12 linux 5.10.46-1 —
ReleasePackageFixed inAdvisory
Ubuntu 24.04 LTS linux-raspi-realtime No fix yet —
Ubuntu 22.04 LTS linux-riscv +22 No fix yet —
Ubuntu 20.04 LTS linux 5.4.0-81.91 —
Ubuntu 20.04 LTS linux-aws 5.4.0-1055.58 —
Ubuntu 20.04 LTS linux-azure 5.4.0-1056.58 —
Ubuntu 20.04 LTS linux-bluefield 5.4.0-1019.22 —
Ubuntu 20.04 LTS linux-gcp 5.4.0-1051.55 —
Ubuntu 20.04 LTS linux-gke +26 No fix yet —
Ubuntu 20.04 LTS linux-gkeop 5.4.0-1022.23 —
Ubuntu 20.04 LTS linux-kvm 5.4.0-1045.47 —
Ubuntu 20.04 LTS linux-oracle 5.4.0-1053.57 —
Ubuntu 20.04 LTS linux-raspi 5.4.0-1042.46 —
Ubuntu 18.04 LTS linux-aws-5.4 5.4.0-1055.58~18.04.1 —
Ubuntu 18.04 LTS linux-azure-5.4 5.4.0-1056.58~18.04.1 —
Ubuntu 18.04 LTS linux-gcp +14 No fix yet —
Ubuntu 18.04 LTS linux-gcp-5.4 5.4.0-1051.55~18.04.1 —
Ubuntu 18.04 LTS linux-hwe-5.4 5.4.0-81.91~18.04.1 —
Ubuntu 18.04 LTS linux-oracle-5.4 5.4.0-1053.57~18.04.1 —
Ubuntu 18.04 LTS linux-raspi-5.4 5.4.0-1042.46~18.04.3 —
Ubuntu 16.04 LTS linux-hwe-edge No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro FIPS 20.04 LTS linux-fips +3 No fix yet —
Ubuntu Pro FIPS-updates 20.04 LTS linux-aws-fips 5.4.0-1069.73+fips2 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-azure-fips 5.4.0-1073.76+fips1 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-fips 5.4.0-1032.37 —
Ubuntu Pro FIPS-updates 20.04 LTS linux-gcp-fips 5.4.0-1067.71~20.04.1 —
ReleasePackageFixed inAdvisory
SLES 15 SP3 kernel-64kb +7 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SLES 15 SP3 kernel-default-base 5.3.18-150300.59.164.1.150300.18.96.1 SUSE-SU-2024:2185-1
SLES 15 SP2 kernel-default-base 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SLES 15 SP2 kernel-docs +5 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SLES 12 SP5 kernel-azure +2 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SLES 12 SP5 kernel-docs +4 4.12.14-122.219.1 SUSE-SU-2024:2184-1
Show 12 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 15 SP3 kernel-default-base 5.3.18-150300.59.164.1.150300.18.96.1 SUSE-SU-2024:2185-1
SLES for SAP 15 SP3 kernel-docs +5 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SLES for SAP 15 SP2 kernel-default-base 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SLES for SAP 15 SP2 kernel-docs +5 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SLES for SAP 12 SP5 kernel-azure +2 4.12.14-16.188.1 SUSE-SU-2024:1979-1
SLES for SAP 12 SP5 kernel-syms +2 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SLE Real Time 12 SP5 kernel-rt +3 4.12.14-10.188.1 SUSE-SU-2024:1983-1
SLE Micro 5.2 kernel-default 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SLE Micro 5.2 kernel-default-base 5.3.18-150300.59.164.1.150300.18.96.1 SUSE-SU-2024:2185-1
SLE Micro 5.2 kernel-rt +1 5.3.18-150300.172.1 SUSE-SU-2025:01995-1, SUSE-SU-2024:2010-1
SLE Micro 5.1 kernel-default 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SLE Micro 5.1 kernel-default-base 5.3.18-150300.59.164.1.150300.18.96.1 SUSE-SU-2024:2185-1
SLE Micro 5.1 kernel-rt +1 5.3.18-150300.172.1 SUSE-SU-2025:01995-1, SUSE-SU-2024:2010-1
SLE Live Patching 15 SP3 kernel-default 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SLE Live Patching 15 SP3 kernel-livepatch-SLE15-SP3_Update_45 1-150300.7.3.1 SUSE-SU-2024:2185-1
SLE Live Patching 15 SP2 kernel-default 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SLE Live Patching 15 SP2 kernel-livepatch-SLE15-SP2_Update_49 1-150200.5.3.1 SUSE-SU-2024:2183-1
SLE Live Patching 12 SP5 kernel-default 4.12.14-122.219.1 SUSE-SU-2024:2184-1
SLE Live Patching 12 SP5 kgraft-patch-SLE12-SP5_Update_57 1-8.3.1 SUSE-SU-2024:2184-1
SLE HPC 15 SP3 kernel-64kb +6 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SLE HPC 15 SP3 kernel-default-base 5.3.18-150300.59.164.1.150300.18.96.1 SUSE-SU-2024:2185-1
SLE HPC 15 SP2 kernel-default-base 5.3.18-150200.24.194.1.150200.9.99.1 SUSE-SU-2024:2183-1
SLE HPC 15 SP2 kernel-docs +5 5.3.18-150200.24.194.1 SUSE-SU-2024:2183-1
SUSE Enterprise Storage 7.1 kernel-64kb +6 5.3.18-150300.59.164.1 SUSE-SU-2024:2185-1
SUSE Enterprise Storage 7.1 kernel-default-base 5.3.18-150300.59.164.1.150300.18.96.1 SUSE-SU-2024:2185-1

Advisories 7

References