# CVE-2023-52487: net/mlx5e: Fix peer flow lists handling

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.30% (percentile 16, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-02-29T15:52:07.507Z
- **Modified:** 2026-06-17T06:42:50.393Z

## Who should check

- Anyone running Linux \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< 74cec142f89bf85c6c99c5db957da9f663f9f16f; \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< e24d6f5a7f2d95a98a46257a5a5a5381d572894f; \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< d76fdd31f953ac5046555171620f2562715e9b71
- Anyone running Linux 6.5

## Description

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

net/mlx5e: Fix peer flow lists handling

The cited change refactored mlx5e\_tc\_del\_fdb\_peer\_flow() to only clear DUP
flag when list of peer flows has become empty. However, if any concurrent
user holds a reference to a peer flow (for example, the neighbor update
workqueue task is updating peer flow's parent encap entry concurrently),
then the flow will not be removed from the peer list and, consecutively,
DUP flag will remain set. Since mlx5e\_tc\_del\_fdb\_peers\_flow() calls
mlx5e\_tc\_del\_fdb\_peer\_flow() for every possible peer index the algorithm
will try to remove the flow from eswitch instances that it has never peered
with causing either NULL pointer dereference when trying to remove the flow
peer list head of peer\_index that was never initialized or a warning if the
list debug config is enabled\[0\].

Fix the issue by always removing the peer flow from the list even when not
releasing the last reference to it.

\[0\]:

\[ 3102.985806\] ------------\[ cut here \]------------
\[ 3102.986223\] list\_del corruption, ffff888139110698-\>next is NULL
\[ 3102.986757\] WARNING: CPU: 2 PID: 22109 at lib/list\_debug.c:53 \_\_list\_del\_entry\_valid\_or\_report+0x4f/0xc0
\[ 3102.987561\] Modules linked in: act\_ct nf\_flow\_table bonding act\_tunnel\_key act\_mirred act\_skbedit vxlan cls\_matchall nfnetlink\_cttimeout act\_gact cls\_flower sch\_ingress mlx5\_vdpa vringh vhost\_iotlb vdpa openvswitch nsh xt\_MASQUERADE nf\_conntrack\_netlink nfnetlink iptable\_nat xt\_addrtype xt\_conntrack nf\_nat br\_netfilter rpcsec\_gss\_krb5 auth\_rpcg
ss oid\_registry overlay rpcrdma rdma\_ucm ib\_iser libiscsi scsi\_transport\_iscsi ib\_umad rdma\_cm ib\_ipoib iw\_cm ib\_cm mlx5\_ib ib\_uverbs ib\_core mlx5\_core \[last unloaded: bonding\]
\[ 3102.991113\] CPU: 2 PID: 22109 Comm: revalidator28 Not tainted 6.6.0-rc6+ \#3
\[ 3102.991695\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
\[ 3102.992605\] RIP: 0010:\_\_list\_del\_entry\_valid\_or\_report+0x4f/0xc0
\[ 3102.993122\] Code: 39 c2 74 56 48 8b 32 48 39 fe 75 62 48 8b 51 08 48 39 f2 75 73 b8 01 00 00 00 c3 48 89 fe 48 c7 c7 48 fd 0a 82 e8 41 0b ad ff \<0f\> 0b 31 c0 c3 48 89 fe 48 c7 c7 70 fd 0a 82 e8 2d 0b ad ff 0f 0b
\[ 3102.994615\] RSP: 0018:ffff8881383e7710 EFLAGS: 00010286
\[ 3102.995078\] RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
\[ 3102.995670\] RDX: 0000000000000001 RSI: ffff88885f89b640 RDI: ffff88885f89b640
\[ 3102.997188\] DEL flow 00000000be367878 on port 0
\[ 3102.998594\] RBP: dead000000000122 R08: 0000000000000000 R09: c0000000ffffdfff
\[ 3102.999604\] R10: 0000000000000008 R11: ffff8881383e7598 R12: dead000000000100
\[ 3103.000198\] R13: 0000000000000002 R14: ffff888139110000 R15: ffff888101901240
\[ 3103.000790\] FS:  00007f424cde4700(0000) GS:ffff88885f880000(0000) knlGS:0000000000000000
\[ 3103.001486\] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
\[ 3103.001986\] CR2: 00007fd42e8dcb70 CR3: 000000011e68a003 CR4: 0000000000370ea0
\[ 3103.002596\] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
\[ 3103.003190\] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
\[ 3103.003787\] Call Trace:
\[ 3103.004055\]  \<TASK\>
\[ 3103.004297\]  ? \_\_warn+0x7d/0x130
\[ 3103.004623\]  ? \_\_list\_del\_entry\_valid\_or\_report+0x4f/0xc0
\[ 3103.005094\]  ? report\_bug+0xf1/0x1c0
\[ 3103.005439\]  ? console\_unlock+0x4a/0xd0
\[ 3103.005806\]  ? handle\_bug+0x3f/0x70
\[ 3103.006149\]  ? exc\_invalid\_op+0x13/0x60
\[ 3103.006531\]  ? asm\_exc\_invalid\_op+0x16/0x20
\[ 3103.007430\]  ? \_\_list\_del\_entry\_valid\_or\_report+0x4f/0xc0
\[ 3103.007910\]  mlx5e\_tc\_del\_fdb\_peers\_flow+0xcf/0x240 \[mlx5\_core\]
\[ 3103.008463\]  mlx5e\_tc\_del\_flow+0x46/0x270 \[mlx5\_core\]
\[ 3103.008944\]  mlx5e\_flow\_put+0x26/0x50 \[mlx5\_core\]
\[ 3103.009401\]  mlx5e\_delete\_flower+0x25f/0x380 \[mlx5\_core\]
\[ 3103.009901\]  tc\_setup\_cb\_destroy+0xab/0x180
\[ 3103.010292\]  fl\_hw\_destroy\_filter+0x99/0xc0 \[cls\_flower\]
\[ 3103.010779\]  \_\_fl\_delete+0x2d4/0x2f0 \[cls\_flower\]
\[ 3103.0
---truncated---

## Affected and fixed versions

- Linux: \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< 74cec142f89bf85c6c99c5db957da9f663f9f16f; \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< e24d6f5a7f2d95a98a46257a5a5a5381d572894f; \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< d76fdd31f953ac5046555171620f2562715e9b71 (cvelist)
- Linux: 6.5 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52487. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52487.md
Affected: Linux >= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, < 74cec142f89bf85c6c99c5db957da9f663f9f16f; >= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, < e24d6f5a7f2d95a98a46257a5a5a5381d572894f; >= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, < d76fdd31f953ac5046555171620f2562715e9b71; Linux 6.5
Fixed in: Linux 74cec142f89bf85c6c99c5db957da9f663f9f16f

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2023-52487 being exploited?

There is no confirmed exploitation: CVE-2023-52487 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2023-52487?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2023-52487?

Linux \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< 74cec142f89bf85c6c99c5db957da9f663f9f16f; \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< e24d6f5a7f2d95a98a46257a5a5a5381d572894f; \>= 9be6c21fdcf8a7ec48262bb76f78c17ac2761ac6, \< d76fdd31f953ac5046555171620f2562715e9b71; Linux 6.5.

### Is there a fix for CVE-2023-52487?

Yes. Fixed in Linux 74cec142f89bf85c6c99c5db957da9f663f9f16f. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2023-52487?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/74cec142f89bf85c6c99c5db957da9f663f9f16f>
- patch: <https://git.kernel.org/stable/c/e24d6f5a7f2d95a98a46257a5a5a5381d572894f>
- patch: <https://git.kernel.org/stable/c/d76fdd31f953ac5046555171620f2562715e9b71>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2023-52487>

HTML: <https://flawdb.com/CVE-2023-52487> · JSON: <https://flawdb.com/api/v1/entries/CVE-2023-52487>
