# CVE-2023-54238: mlx5: fix skb leak while fifo resync and push

> 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.21% (percentile 7, 2026-11-26)
- **Published:** 2025-12-30T12:11:27.702Z
- **Modified:** 2026-10-15T22:17:56.340Z

## Who should check

- Anyone running Linux \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< 234cffda95e1049f58e8ec136ef105c633f0ed19; \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< 68504c66d08c70fb92799722e25a932d311d74fd; \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< e435941b1da1a0be4ff8a7ae425774c76a5ac514
- Anyone running Linux 6.0

## Description

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

mlx5: fix skb leak while fifo resync and push

During ptp resync operation SKBs were poped from the fifo but were never
freed neither by napi\_consume nor by dev\_kfree\_skb\_any. Add call to
napi\_consume\_skb to properly free SKBs.

Another leak was happening because mlx5e\_skb\_fifo\_has\_room() had an error
in the check. Comparing free running counters works well unless C promotes
the types to something wider than the counter. In this case counters are
u16 but the result of the substraction is promouted to int and it causes
wrong result (negative value) of the check when producer have already
overlapped but consumer haven't yet. Explicit cast to u16 fixes the issue.

## Affected and fixed versions

- Linux: \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< 234cffda95e1049f58e8ec136ef105c633f0ed19; \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< 68504c66d08c70fb92799722e25a932d311d74fd; \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< e435941b1da1a0be4ff8a7ae425774c76a5ac514 (cvelist)
- Linux: 6.0 (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-54238. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54238.md
Affected: Linux >= 58a518948f60153e8f6cb8361d2712aa3a1af94a, < 234cffda95e1049f58e8ec136ef105c633f0ed19; >= 58a518948f60153e8f6cb8361d2712aa3a1af94a, < 68504c66d08c70fb92799722e25a932d311d74fd; >= 58a518948f60153e8f6cb8361d2712aa3a1af94a, < e435941b1da1a0be4ff8a7ae425774c76a5ac514; Linux 6.0
Fixed in: Linux 234cffda95e1049f58e8ec136ef105c633f0ed19, Linux 68504c66d08c70fb92799722e25a932d311d74fd

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

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

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

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

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

Linux \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< 234cffda95e1049f58e8ec136ef105c633f0ed19; \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< 68504c66d08c70fb92799722e25a932d311d74fd; \>= 58a518948f60153e8f6cb8361d2712aa3a1af94a, \< e435941b1da1a0be4ff8a7ae425774c76a5ac514; Linux 6.0.

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

Yes. Fixed in Linux 234cffda95e1049f58e8ec136ef105c633f0ed19, Linux 68504c66d08c70fb92799722e25a932d311d74fd. No fix listed yet: follow the vendor advisory.

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

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/234cffda95e1049f58e8ec136ef105c633f0ed19>
- other: <https://git.kernel.org/stable/c/68504c66d08c70fb92799722e25a932d311d74fd>
- other: <https://git.kernel.org/stable/c/e435941b1da1a0be4ff8a7ae425774c76a5ac514>

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

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