# CVE-2023-54074: net/mlx5e: Use correct encap attribute during invalidation

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-12-24T12:23:16.920Z
- **Modified:** 2026-08-05T09:16:58.648Z

## Who should check

- Anyone running Linux \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 00959a1bad58e4b6c14a2729f84d354255073609; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< b8b4292fdd8818ab43b943b6717811651f51e39f; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< be071cdb167fc3e25fe81922166b3d499d23e8ac
- Anyone running Linux 5.18

## Description

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

net/mlx5e: Use correct encap attribute during invalidation

With introduction of post action infrastructure most of the users of encap
attribute had been modified in order to obtain the correct attribute by
calling mlx5e\_tc\_get\_encap\_attr() helper instead of assuming encap action
is always on default attribute. However, the cited commit didn't modify
mlx5e\_invalidate\_encap() which prevents it from destroying correct modify
header action which leads to a warning \[0\]. Fix the issue by using correct
attribute.

\[0\]:

Feb 21 09:47:35 c-237-177-40-045 kernel: WARNING: CPU: 17 PID: 654 at drivers/net/ethernet/mellanox/mlx5/core/en\_tc.c:684 mlx5e\_tc\_attach\_mod\_hdr+0x1cc/0x230 \[mlx5\_core\]
Feb 21 09:47:35 c-237-177-40-045 kernel: RIP: 0010:mlx5e\_tc\_attach\_mod\_hdr+0x1cc/0x230 \[mlx5\_core\]
Feb 21 09:47:35 c-237-177-40-045 kernel: Call Trace:
Feb 21 09:47:35 c-237-177-40-045 kernel:  \<TASK\>
Feb 21 09:47:35 c-237-177-40-045 kernel:  mlx5e\_tc\_fib\_event\_work+0x8e3/0x1f60 \[mlx5\_core\]
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? mlx5e\_take\_all\_encap\_flows+0xe0/0xe0 \[mlx5\_core\]
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? lock\_downgrade+0x6d0/0x6d0
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? lockdep\_hardirqs\_on\_prepare+0x273/0x3f0
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? lockdep\_hardirqs\_on\_prepare+0x273/0x3f0
Feb 21 09:47:35 c-237-177-40-045 kernel:  process\_one\_work+0x7c2/0x1310
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? lockdep\_hardirqs\_on\_prepare+0x3f0/0x3f0
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? pwq\_dec\_nr\_in\_flight+0x230/0x230
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? rwlock\_bug.part.0+0x90/0x90
Feb 21 09:47:35 c-237-177-40-045 kernel:  worker\_thread+0x59d/0xec0
Feb 21 09:47:35 c-237-177-40-045 kernel:  ? \_\_kthread\_parkme+0xd9/0x1d0

## Affected and fixed versions

- Linux: \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 00959a1bad58e4b6c14a2729f84d354255073609; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< b8b4292fdd8818ab43b943b6717811651f51e39f; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< be071cdb167fc3e25fe81922166b3d499d23e8ac (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-54074. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54074.md
Affected: Linux >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < 00959a1bad58e4b6c14a2729f84d354255073609; >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < b8b4292fdd8818ab43b943b6717811651f51e39f; >= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, < be071cdb167fc3e25fe81922166b3d499d23e8ac; Linux 5.18
Fixed in: Linux 00959a1bad58e4b6c14a2729f84d354255073609

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

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

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

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

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

Linux \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< 00959a1bad58e4b6c14a2729f84d354255073609; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< b8b4292fdd8818ab43b943b6717811651f51e39f; \>= 8300f225268be9ee2c0daf5a3f23929fcdcbf213, \< be071cdb167fc3e25fe81922166b3d499d23e8ac; Linux 5.18.

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

Yes. Fixed in Linux 00959a1bad58e4b6c14a2729f84d354255073609. No fix listed yet: follow the vendor advisory.

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

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/00959a1bad58e4b6c14a2729f84d354255073609>
- other: <https://git.kernel.org/stable/c/b8b4292fdd8818ab43b943b6717811651f51e39f>
- other: <https://git.kernel.org/stable/c/be071cdb167fc3e25fe81922166b3d499d23e8ac>

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

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