# CVE-2023-54148: net/mlx5e: Move representor neigh cleanup to profile cleanup\_tx

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-26)
- **Published:** 2025-12-24T13:07:00.260Z
- **Modified:** 2026-06-17T06:46:53.350Z

## Who should check

- Anyone running Linux \>= b17294e7aa8c39dbb9c3e28e2d1983c88b94b387, \< d628ba98eb1637acce44001e04c718d8dbb1f7ce; \>= 2be5bd42a5bba1a05daedc86cf0e248210009669, \< 36697c592cd0809e626df01b3644c23ac522a4d0; \>= 2be5bd42a5bba1a05daedc86cf0e248210009669, \< d03b6e6f31820b84f7449cca022047f36c42bc3f; 10cbfecc0f99f579fb170feee866c9efaab7ee47; \>= 6.1.31, \< 6.1.45; \>= 6.3.5, \< 6.4
- Anyone running Linux 6.4

## Description

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

net/mlx5e: Move representor neigh cleanup to profile cleanup\_tx

For IP tunnel encapsulation in ECMP (Equal-Cost Multipath) mode, as
the flow is duplicated to the peer eswitch, the related neighbour
information on the peer uplink representor is created as well.

In the cited commit, eswitch devcom unpair is moved to uplink unload
API, specifically the profile-\>cleanup\_tx. If there is a encap rule
offloaded in ECMP mode, when one eswitch does unpair (because of
unloading the driver, for instance), and the peer rule from the peer
eswitch is going to be deleted, the use-after-free error is triggered
while accessing neigh info, as it is already cleaned up in uplink's
profile-\>disable, which is before its profile-\>cleanup\_tx.

To fix this issue, move the neigh cleanup to profile's cleanup\_tx
callback, and after mlx5e\_cleanup\_uplink\_rep\_tx is called. The neigh
init is moved to init\_tx for symmeter.

\[ 2453.376299\] BUG: KASAN: slab-use-after-free in mlx5e\_rep\_neigh\_entry\_release+0x109/0x3a0 \[mlx5\_core\]
\[ 2453.379125\] Read of size 4 at addr ffff888127af9008 by task modprobe/2496

\[ 2453.381542\] CPU: 7 PID: 2496 Comm: modprobe Tainted: G    B              6.4.0-rc7+ \#15
\[ 2453.383386\] Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
\[ 2453.384335\] Call Trace:
\[ 2453.384625\]  \<TASK\>
\[ 2453.384891\]  dump\_stack\_lvl+0x33/0x50
\[ 2453.385285\]  print\_report+0xc2/0x610
\[ 2453.385667\]  ? \_\_virt\_addr\_valid+0xb1/0x130
\[ 2453.386091\]  ? mlx5e\_rep\_neigh\_entry\_release+0x109/0x3a0 \[mlx5\_core\]
\[ 2453.386757\]  kasan\_report+0xae/0xe0
\[ 2453.387123\]  ? mlx5e\_rep\_neigh\_entry\_release+0x109/0x3a0 \[mlx5\_core\]
\[ 2453.387798\]  mlx5e\_rep\_neigh\_entry\_release+0x109/0x3a0 \[mlx5\_core\]
\[ 2453.388465\]  mlx5e\_rep\_encap\_entry\_detach+0xa6/0xe0 \[mlx5\_core\]
\[ 2453.389111\]  mlx5e\_encap\_dealloc+0xa7/0x100 \[mlx5\_core\]
\[ 2453.389706\]  mlx5e\_tc\_tun\_encap\_dests\_unset+0x61/0xb0 \[mlx5\_core\]
\[ 2453.390361\]  mlx5\_free\_flow\_attr\_actions+0x11e/0x340 \[mlx5\_core\]
\[ 2453.391015\]  ? complete\_all+0x43/0xd0
\[ 2453.391398\]  ? free\_flow\_post\_acts+0x38/0x120 \[mlx5\_core\]
\[ 2453.392004\]  mlx5e\_tc\_del\_fdb\_flow+0x4ae/0x690 \[mlx5\_core\]
\[ 2453.392618\]  mlx5e\_tc\_del\_fdb\_peers\_flow+0x308/0x370 \[mlx5\_core\]
\[ 2453.393276\]  mlx5e\_tc\_clean\_fdb\_peer\_flows+0xf5/0x140 \[mlx5\_core\]
\[ 2453.393925\]  mlx5\_esw\_offloads\_unpair+0x86/0x540 \[mlx5\_core\]
\[ 2453.394546\]  ? mlx5\_esw\_offloads\_set\_ns\_peer.isra.0+0x180/0x180 \[mlx5\_core\]
\[ 2453.395268\]  ? down\_write+0xaa/0x100
\[ 2453.395652\]  mlx5\_esw\_offloads\_devcom\_event+0x203/0x530 \[mlx5\_core\]
\[ 2453.396317\]  mlx5\_devcom\_send\_event+0xbb/0x190 \[mlx5\_core\]
\[ 2453.396917\]  mlx5\_esw\_offloads\_devcom\_cleanup+0xb0/0xd0 \[mlx5\_core\]
\[ 2453.397582\]  mlx5e\_tc\_esw\_cleanup+0x42/0x120 \[mlx5\_core\]
\[ 2453.398182\]  mlx5e\_rep\_tc\_cleanup+0x15/0x30 \[mlx5\_core\]
\[ 2453.398768\]  mlx5e\_cleanup\_rep\_tx+0x6c/0x80 \[mlx5\_core\]
\[ 2453.399367\]  mlx5e\_detach\_netdev+0xee/0x120 \[mlx5\_core\]
\[ 2453.399957\]  mlx5e\_netdev\_change\_profile+0x84/0x170 \[mlx5\_core\]
\[ 2453.400598\]  mlx5e\_vport\_rep\_unload+0xe0/0xf0 \[mlx5\_core\]
\[ 2453.403781\]  mlx5\_eswitch\_unregister\_vport\_reps+0x15e/0x190 \[mlx5\_core\]
\[ 2453.404479\]  ? mlx5\_eswitch\_register\_vport\_reps+0x200/0x200 \[mlx5\_core\]
\[ 2453.405170\]  ? up\_write+0x39/0x60
\[ 2453.405529\]  ? kernfs\_remove\_by\_name\_ns+0xb7/0xe0
\[ 2453.405985\]  auxiliary\_bus\_remove+0x2e/0x40
\[ 2453.406405\]  device\_release\_driver\_internal+0x243/0x2d0
\[ 2453.406900\]  ? kobject\_put+0x42/0x2d0
\[ 2453.407284\]  bus\_remove\_device+0x128/0x1d0
\[ 2453.407687\]  device\_del+0x240/0x550
\[ 2453.408053\]  ? waiting\_for\_supplier\_show+0xe0/0xe0
\[ 2453.408511\]  ? kobject\_put+0xfa/0x2d0
\[ 2453.408889\]  ? \_\_kmem\_cache\_free+0x14d/0x280
\[ 2453.409310\]  mlx5\_rescan\_drivers\_locked.part.0+0xcd/0x2b0 \[mlx5\_core\]
\[ 2453.409973\]  mlx5\_unregister\_device+0x40/0x50 \[mlx5\_core\]
\[ 2453.410561\]  mlx5\_uninit\_one+0x3d/0x110 \[mlx5\_core\]
\[ 2453.411111\]  remove\_one+0x89/0x130 \[mlx5\_core\]
\[ 24
---truncated---

## Affected and fixed versions

- Linux: \>= b17294e7aa8c39dbb9c3e28e2d1983c88b94b387, \< d628ba98eb1637acce44001e04c718d8dbb1f7ce; \>= 2be5bd42a5bba1a05daedc86cf0e248210009669, \< 36697c592cd0809e626df01b3644c23ac522a4d0; \>= 2be5bd42a5bba1a05daedc86cf0e248210009669, \< d03b6e6f31820b84f7449cca022047f36c42bc3f; 10cbfecc0f99f579fb170feee866c9efaab7ee47; \>= 6.1.31, \< 6.1.45; \>= 6.3.5, \< 6.4 (cvelist)
- Linux: 6.4 (cvelist)

## Mitigation

- Upgrade Linux to 6.4 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2023-54148.md
Affected: Linux >= b17294e7aa8c39dbb9c3e28e2d1983c88b94b387, < d628ba98eb1637acce44001e04c718d8dbb1f7ce; >= 2be5bd42a5bba1a05daedc86cf0e248210009669, < 36697c592cd0809e626df01b3644c23ac522a4d0; >= 2be5bd42a5bba1a05daedc86cf0e248210009669, < d03b6e6f31820b84f7449cca022047f36c42bc3f; 10cbfecc0f99f579fb170feee8…
Fixed in: Linux 36697c592cd0809e626df01b3644c23ac522a4d0, Linux 6.1.45, Linux 6.4

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-54148 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= b17294e7aa8c39dbb9c3e28e2d1983c88b94b387, \< d628ba98eb1637acce44001e04c718d8dbb1f7ce; \>= 2be5bd42a5bba1a05daedc86cf0e248210009669, \< 36697c592cd0809e626df01b3644c23ac522a4d0; \>= 2be5bd42a5bba1a05daedc86cf0e248210009669, \< d03b6e6f31820b84f7449cca022047f36c42bc3f; 10cbfecc0f99f579fb170feee866c9efaab7ee47; \>= 6.1.31, \< 6.1.45; \>= 6.3.5, \< 6.4; Linux 6.4.

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

Yes. Fixed in Linux 36697c592cd0809e626df01b3644c23ac522a4d0, Linux 6.1.45, Linux 6.4. Upgrade Linux to 6.4 or later.

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

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

- other: <https://git.kernel.org/stable/c/d628ba98eb1637acce44001e04c718d8dbb1f7ce>
- other: <https://git.kernel.org/stable/c/36697c592cd0809e626df01b3644c23ac522a4d0>
- other: <https://git.kernel.org/stable/c/d03b6e6f31820b84f7449cca022047f36c42bc3f>

## 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-54148>

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