# CVE-2023-54262: net/mlx5e: Don't clone flow post action attributes second time

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

- **Severity:** HIGH 8.8
- **CVSS:** 8.8 (v3.1, CNA) `CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Adjacent network; Attack complexity: Low; Privileges required: None; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.40% (percentile 25, 2026-11-26)
- **Published:** 2025-12-30T12:15:55.556Z
- **Modified:** 2026-10-15T22:17:56.957Z

## Who should check

- Anyone running Linux \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< c382b693ffcb1f1ebf60d76ab9dedfe9ea13eedf; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< e9fce818fe003b6c527f25517b9ac08eb4661b5d
- Anyone running Linux 5.18

## Description

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

net/mlx5e: Don't clone flow post action attributes second time

The code already clones post action attributes in
mlx5e\_clone\_flow\_attr\_for\_post\_act(). Creating another copy in
mlx5e\_tc\_post\_act\_add() is a erroneous leftover from original
implementation. Instead, assign handle-\>attribute to post\_attr provided by
the caller. Note that cloning the attribute second time is not just
wasteful but also causes issues like second copy not being properly updated
in neigh update code which leads to following use-after-free:

Feb 21 09:02:00 c-237-177-40-045 kernel: BUG: KASAN: use-after-free in mlx5\_cmd\_set\_fte+0x200d/0x24c0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_report+0xbb/0x1a0
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_save\_stack+0x1e/0x40
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_set\_track+0x21/0x30
Feb 21 09:02:00 c-237-177-40-045 kernel:  \_\_kasan\_kmalloc+0x7a/0x90
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_save\_stack+0x1e/0x40
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_set\_track+0x21/0x30
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_save\_free\_info+0x2a/0x40
Feb 21 09:02:00 c-237-177-40-045 kernel:  \_\_\_\_kasan\_slab\_free+0x11a/0x1b0
Feb 21 09:02:00 c-237-177-40-045 kernel: page dumped because: kasan: bad access detected
Feb 21 09:02:00 c-237-177-40-045 kernel: mlx5\_core 0000:08:00.0: mlx5\_cmd\_out\_err:803:(pid 8833): SET\_FLOW\_TABLE\_ENTRY(0x936) op\_mod(0x0) failed, status bad resource state(0x9), syndrome (0xf2ff71), err(-22)
Feb 21 09:02:00 c-237-177-40-045 kernel: mlx5\_core 0000:08:00.0 enp8s0f0: Failed to add post action rule
Feb 21 09:02:00 c-237-177-40-045 kernel: mlx5\_core 0000:08:00.0: mlx5e\_tc\_encap\_flows\_add:190:(pid 8833): Failed to update flow post acts, -22
Feb 21 09:02:00 c-237-177-40-045 kernel: Call Trace:
Feb 21 09:02:00 c-237-177-40-045 kernel:  \<TASK\>
Feb 21 09:02:00 c-237-177-40-045 kernel:  dump\_stack\_lvl+0x57/0x7d
Feb 21 09:02:00 c-237-177-40-045 kernel:  print\_report+0x170/0x471
Feb 21 09:02:00 c-237-177-40-045 kernel:  ? mlx5\_cmd\_set\_fte+0x200d/0x24c0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_report+0xbb/0x1a0
Feb 21 09:02:00 c-237-177-40-045 kernel:  ? mlx5\_cmd\_set\_fte+0x200d/0x24c0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5\_cmd\_set\_fte+0x200d/0x24c0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  ? \_\_module\_address.part.0+0x62/0x200
Feb 21 09:02:00 c-237-177-40-045 kernel:  ? mlx5\_cmd\_stub\_create\_flow\_table+0xd0/0xd0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  ? \_\_raw\_spin\_lock\_init+0x3b/0x110
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5\_cmd\_create\_fte+0x80/0xb0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  add\_rule\_fg+0xe80/0x19c0 \[mlx5\_core\]
--
Feb 21 09:02:00 c-237-177-40-045 kernel: Allocated by task 13476:
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_save\_stack+0x1e/0x40
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_set\_track+0x21/0x30
Feb 21 09:02:00 c-237-177-40-045 kernel:  \_\_kasan\_kmalloc+0x7a/0x90
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5\_packet\_reformat\_alloc+0x7b/0x230 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5e\_tc\_tun\_create\_header\_ipv4+0x977/0xf10 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5e\_attach\_encap+0x15b4/0x1e10 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  post\_process\_attr+0x305/0xa30 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5e\_tc\_add\_fdb\_flow+0x4c0/0xcf0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  \_\_mlx5e\_add\_fdb\_flow+0x7cf/0xe90 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5e\_configure\_flower+0xcaa/0x4b90 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5e\_rep\_setup\_tc\_cls\_flower+0x99/0x1b0 \[mlx5\_core\]
Feb 21 09:02:00 c-237-177-40-045 kernel:  mlx5e\_rep\_setup\_tc\_cb+0x133/0x1e0 \[mlx5\_core\]
--
Feb 21 09:02:00 c-237-177-40-045 kernel: Freed by task 8833:
Feb 21 09:02:00 c-237-177-40-045 kernel:  kasan\_save\_s
---truncated---

## Affected and fixed versions

- Linux: \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< c382b693ffcb1f1ebf60d76ab9dedfe9ea13eedf; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< e9fce818fe003b6c527f25517b9ac08eb4661b5d (cvelist)
- Linux: 5.18 (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-54262. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54262.md
Affected: Linux >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < c382b693ffcb1f1ebf60d76ab9dedfe9ea13eedf; >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < 8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8; >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < 2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e; >= 8300f225268be9ee2c0daf5…
Fixed in: Linux 8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8, Linux 2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e

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

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

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

High: CVSS 8.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< c382b693ffcb1f1ebf60d76ab9dedfe9ea13eedf; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< e9fce818fe003b6c527f25517b9ac08eb4661b5d; Linux 5.18.

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

Yes. Fixed in Linux 8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8, Linux 2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e. No fix listed yet: follow the vendor advisory.

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

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/c382b693ffcb1f1ebf60d76ab9dedfe9ea13eedf>
- other: <https://git.kernel.org/stable/c/8fd1dac646e6b08d03e3f1ad3c5b34255b1e08e8>
- other: <https://git.kernel.org/stable/c/2d57a514f9ab7d2d40f49b02d93edfcec8c78a9e>
- other: <https://git.kernel.org/stable/c/e9fce818fe003b6c527f25517b9ac08eb4661b5d>

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

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