# CVE-2023-54223: net/mlx5e: xsk: Fix invalid buffer access for legacy rq

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: 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:** Remote, no login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-26)
- **Published:** 2025-12-30T12:11:17.389Z
- **Modified:** 2026-10-28T19:10:00.193Z

## Who should check

- Anyone running Linux \>= cbb5379362513cbff450df0457dc370da7244bec, \< 58a113a35846d9a5bd759beb332e551e28451f09; \>= 7abd955a58fb0fcd4e756fa2065c03ae488fcfa7, \< e0f52298fee449fec37e3e3c32df60008b509b16
- Anyone running Linux \>= 6.4.5, \< 6.4.10

## Description

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

net/mlx5e: xsk: Fix invalid buffer access for legacy rq

The below crash can be encountered when using xdpsock in rx mode for
legacy rq: the buffer gets released in the XDP\_REDIRECT path, and then
once again in the driver. This fix sets the flag to avoid releasing on
the driver side.

XSK handling of buffers for legacy rq was relying on the caller to set
the skip release flag. But the referenced fix started using fragment
counts for pages instead of the skip flag.

Crash log:
 general protection fault, probably for non-canonical address 0xffff8881217e3a: 0000 \[\#1\] SMP
 CPU: 0 PID: 14 Comm: ksoftirqd/0 Not tainted 6.5.0-rc1+ \#31
 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS rel-1.13.0-0-gf21b5a4aeb02-prebuilt.qemu.org 04/01/2014
 RIP: 0010:bpf\_prog\_03b13f331978c78c+0xf/0x28
 Code:  ...
 RSP: 0018:ffff88810082fc98 EFLAGS: 00010246
 RAX: 0000000000000000 RBX: ffff888138404901 RCX: c0ffffc900027cbc
 RDX: ffffffffa000b514 RSI: 00ffff8881217e32 RDI: ffff888138404901
 RBP: ffff88810082fc98 R08: 0000000000091100 R09: 0000000000000006
 R10: 0000000000000800 R11: 0000000000000800 R12: ffffc9000027a000
 R13: ffff8881217e2dc0 R14: ffff8881217e2910 R15: ffff8881217e2f00
 FS:  0000000000000000(0000) GS:ffff88852c800000(0000) knlGS:0000000000000000
 CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
 CR2: 0000564cb2e2cde0 CR3: 000000010e603004 CR4: 0000000000370eb0
 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
 Call Trace:
  \<TASK\>
  ? die\_addr+0x32/0x80
  ? exc\_general\_protection+0x192/0x390
  ? asm\_exc\_general\_protection+0x22/0x30
  ? 0xffffffffa000b514
  ? bpf\_prog\_03b13f331978c78c+0xf/0x28
  mlx5e\_xdp\_handle+0x48/0x670 \[mlx5\_core\]
  ? dev\_gro\_receive+0x3b5/0x6e0
  mlx5e\_xsk\_skb\_from\_cqe\_linear+0x6e/0x90 \[mlx5\_core\]
  mlx5e\_handle\_rx\_cqe+0x55/0x100 \[mlx5\_core\]
  mlx5e\_poll\_rx\_cq+0x87/0x6e0 \[mlx5\_core\]
  mlx5e\_napi\_poll+0x45e/0x6b0 \[mlx5\_core\]
  \_\_napi\_poll+0x25/0x1a0
  net\_rx\_action+0x28a/0x300
  \_\_do\_softirq+0xcd/0x279
  ? sort\_range+0x20/0x20
  run\_ksoftirqd+0x1a/0x20
  smpboot\_thread\_fn+0xa2/0x130
  kthread+0xc9/0xf0
  ? kthread\_complete\_and\_exit+0x20/0x20
  ret\_from\_fork+0x1f/0x30
  \</TASK\>
 Modules linked in: mlx5\_ib mlx5\_core rpcrdma rdma\_ucm ib\_iser libiscsi scsi\_transport\_iscsi ib\_umad rdma\_cm ib\_ipoib iw\_cm ib\_cm ib\_uverbs ib\_core xt\_conntrack xt\_MASQUERADE nf\_conntrack\_netlink nfnetlink xt\_addrtype iptable\_nat nf\_nat br\_netfilter overlay zram zsmalloc fuse \[last unloaded: mlx5\_core\]
 ---\[ end trace 0000000000000000 \]---

## Affected and fixed versions

- Linux: \>= cbb5379362513cbff450df0457dc370da7244bec, \< 58a113a35846d9a5bd759beb332e551e28451f09; \>= 7abd955a58fb0fcd4e756fa2065c03ae488fcfa7, \< e0f52298fee449fec37e3e3c32df60008b509b16 (cvelist)
- Linux: \>= 6.4.5, \< 6.4.10 (cvelist)

## Mitigation

- Upgrade Linux to 6.4.10 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-54223. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54223.md
Affected: Linux >= cbb5379362513cbff450df0457dc370da7244bec, < 58a113a35846d9a5bd759beb332e551e28451f09; >= 7abd955a58fb0fcd4e756fa2065c03ae488fcfa7, < e0f52298fee449fec37e3e3c32df60008b509b16; Linux >= 6.4.5, < 6.4.10
Fixed in: Linux 58a113a35846d9a5bd759beb332e551e28451f09, Linux 6.4.10

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= cbb5379362513cbff450df0457dc370da7244bec, \< 58a113a35846d9a5bd759beb332e551e28451f09; \>= 7abd955a58fb0fcd4e756fa2065c03ae488fcfa7, \< e0f52298fee449fec37e3e3c32df60008b509b16; Linux \>= 6.4.5, \< 6.4.10.

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

Yes. Fixed in Linux 58a113a35846d9a5bd759beb332e551e28451f09, Linux 6.4.10. Upgrade Linux to 6.4.10 or later.

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

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/58a113a35846d9a5bd759beb332e551e28451f09>
- other: <https://git.kernel.org/stable/c/e0f52298fee449fec37e3e3c32df60008b509b16>

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

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