# CVE-2023-54257: net: macb: fix a memory corruption in extended buffer descriptor mode

> 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.93% (percentile 59, 2026-11-26)
- **Published:** 2025-12-30T12:15:52.186Z
- **Modified:** 2026-08-05T09:18:30.100Z

## Who should check

- Anyone running Linux \>= 7b4296148066f19b5960127ba579e358df501c22, \< dd7a49a3eaf723a01b2fdf153f98450a82b0b0fe; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 82e626af24683e01211abe66cec27a387f8f17c9; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 7169d1638824c4bf7e0fe0baad381ddec861fa70; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 7ccc58a1a75601c936069d4a0741940623990ade; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 5dcf3a6843d0d7cc76960fbe8511d425f217744c; \>= 7b4296148066f19b5960127ba579e358df501c22, \< e8b74453555872851bdd7ea43a7c0ec39659834f
- Anyone running Linux 4.13

## Description

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

net: macb: fix a memory corruption in extended buffer descriptor mode

For quite some time we were chasing a bug which looked like a sudden
permanent failure of networking and mmc on some of our devices.
The bug was very sensitive to any software changes and even more to
any kernel debug options.

Finally we got a setup where the problem was reproducible with
CONFIG\_DMA\_API\_DEBUG=y and it revealed the issue with the rx dma:

\[   16.992082\] ------------\[ cut here \]------------
\[   16.996779\] DMA-API: macb ff0b0000.ethernet: device driver tries to free DMA memory it has not allocated \[device address=0x0000000875e3e244\] \[size=1536 bytes\]
\[   17.011049\] WARNING: CPU: 0 PID: 85 at kernel/dma/debug.c:1011 check\_unmap+0x6a0/0x900
\[   17.018977\] Modules linked in: xxxxx
\[   17.038823\] CPU: 0 PID: 85 Comm: irq/55-8000f000 Not tainted 5.4.0 \#28
\[   17.045345\] Hardware name: xxxxx
\[   17.049528\] pstate: 60000005 (nZCv daif -PAN -UAO)
\[   17.054322\] pc : check\_unmap+0x6a0/0x900
\[   17.058243\] lr : check\_unmap+0x6a0/0x900
\[   17.062163\] sp : ffffffc010003c40
\[   17.065470\] x29: ffffffc010003c40 x28: 000000004000c03c
\[   17.070783\] x27: ffffffc010da7048 x26: ffffff8878e38800
\[   17.076095\] x25: ffffff8879d22810 x24: ffffffc010003cc8
\[   17.081407\] x23: 0000000000000000 x22: ffffffc010a08750
\[   17.086719\] x21: ffffff8878e3c7c0 x20: ffffffc010acb000
\[   17.092032\] x19: 0000000875e3e244 x18: 0000000000000010
\[   17.097343\] x17: 0000000000000000 x16: 0000000000000000
\[   17.102647\] x15: ffffff8879e4a988 x14: 0720072007200720
\[   17.107959\] x13: 0720072007200720 x12: 0720072007200720
\[   17.113261\] x11: 0720072007200720 x10: 0720072007200720
\[   17.118565\] x9 : 0720072007200720 x8 : 000000000000022d
\[   17.123869\] x7 : 0000000000000015 x6 : 0000000000000098
\[   17.129173\] x5 : 0000000000000000 x4 : 0000000000000000
\[   17.134475\] x3 : 00000000ffffffff x2 : ffffffc010a1d370
\[   17.139778\] x1 : b420c9d75d27bb00 x0 : 0000000000000000
\[   17.145082\] Call trace:
\[   17.147524\]  check\_unmap+0x6a0/0x900
\[   17.151091\]  debug\_dma\_unmap\_page+0x88/0x90
\[   17.155266\]  gem\_rx+0x114/0x2f0
\[   17.158396\]  macb\_poll+0x58/0x100
\[   17.161705\]  net\_rx\_action+0x118/0x400
\[   17.165445\]  \_\_do\_softirq+0x138/0x36c
\[   17.169100\]  irq\_exit+0x98/0xc0
\[   17.172234\]  \_\_handle\_domain\_irq+0x64/0xc0
\[   17.176320\]  gic\_handle\_irq+0x5c/0xc0
\[   17.179974\]  el1\_irq+0xb8/0x140
\[   17.183109\]  xiic\_process+0x5c/0xe30
\[   17.186677\]  irq\_thread\_fn+0x28/0x90
\[   17.190244\]  irq\_thread+0x208/0x2a0
\[   17.193724\]  kthread+0x130/0x140
\[   17.196945\]  ret\_from\_fork+0x10/0x20
\[   17.200510\] ---\[ end trace 7240980785f81d6f \]---

\[  237.021490\] ------------\[ cut here \]------------
\[  237.026129\] DMA-API: exceeded 7 overlapping mappings of cacheline 0x0000000021d79e7b
\[  237.033886\] WARNING: CPU: 0 PID: 0 at kernel/dma/debug.c:499 add\_dma\_entry+0x214/0x240
\[  237.041802\] Modules linked in: xxxxx
\[  237.061637\] CPU: 0 PID: 0 Comm: swapper/0 Tainted: G        W         5.4.0 \#28
\[  237.068941\] Hardware name: xxxxx
\[  237.073116\] pstate: 80000085 (Nzcv daIf -PAN -UAO)
\[  237.077900\] pc : add\_dma\_entry+0x214/0x240
\[  237.081986\] lr : add\_dma\_entry+0x214/0x240
\[  237.086072\] sp : ffffffc010003c30
\[  237.089379\] x29: ffffffc010003c30 x28: ffffff8878a0be00
\[  237.094683\] x27: 0000000000000180 x26: ffffff8878e387c0
\[  237.099987\] x25: 0000000000000002 x24: 0000000000000000
\[  237.105290\] x23: 000000000000003b x22: ffffffc010a0fa00
\[  237.110594\] x21: 0000000021d79e7b x20: ffffffc010abe600
\[  237.115897\] x19: 00000000ffffffef x18: 0000000000000010
\[  237.121201\] x17: 0000000000000000 x16: 0000000000000000
\[  237.126504\] x15: ffffffc010a0fdc8 x14: 0720072007200720
\[  237.131807\] x13: 0720072007200720 x12: 0720072007200720
\[  237.137111\] x11: 0720072007200720 x10: 0720072007200720
\[  237.142415\] x9 : 0720072007200720 x8 : 0000000000000259
\[  237.147718\] x7 : 0000000000000001 x6 : 0000000000000000
\[  237.15302
---truncated---

## Affected and fixed versions

- Linux: \>= 7b4296148066f19b5960127ba579e358df501c22, \< dd7a49a3eaf723a01b2fdf153f98450a82b0b0fe; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 82e626af24683e01211abe66cec27a387f8f17c9; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 7169d1638824c4bf7e0fe0baad381ddec861fa70; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 7ccc58a1a75601c936069d4a0741940623990ade; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 5dcf3a6843d0d7cc76960fbe8511d425f217744c; \>= 7b4296148066f19b5960127ba579e358df501c22, \< e8b74453555872851bdd7ea43a7c0ec39659834f (cvelist)
- Linux: 4.13 (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-54257. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-54257.md
Affected: Linux >= 7b4296148066f19b5960127ba579e358df501c22, < dd7a49a3eaf723a01b2fdf153f98450a82b0b0fe; >= 7b4296148066f19b5960127ba579e358df501c22, < 82e626af24683e01211abe66cec27a387f8f17c9; >= 7b4296148066f19b5960127ba579e358df501c22, < 7169d1638824c4bf7e0fe0baad381ddec861fa70; >= 7b4296148066f19b5960127…
Fixed in: Linux 82e626af24683e01211abe66cec27a387f8f17c9, Linux 7169d1638824c4bf7e0fe0baad381ddec861fa70, Linux 1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83, Linux 7ccc58a1a75601c936069d4a0741940623990ade, Linux 9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47, Linux 5dcf3a6843d0d7cc76960fbe8511d425f217744c

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

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

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

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

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

Linux \>= 7b4296148066f19b5960127ba579e358df501c22, \< dd7a49a3eaf723a01b2fdf153f98450a82b0b0fe; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 82e626af24683e01211abe66cec27a387f8f17c9; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 7169d1638824c4bf7e0fe0baad381ddec861fa70; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 7ccc58a1a75601c936069d4a0741940623990ade; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47; \>= 7b4296148066f19b5960127ba579e358df501c22, \< 5dcf3a6843d0d7cc76960fbe8511d425f217744c; \>= 7b4296148066f19b5960127ba579e358df501c22, \< e8b74453555872851bdd7ea43a7c0ec39659834f; Linux 4.13.

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

Yes. Fixed in Linux 82e626af24683e01211abe66cec27a387f8f17c9, Linux 7169d1638824c4bf7e0fe0baad381ddec861fa70, Linux 1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83, Linux 7ccc58a1a75601c936069d4a0741940623990ade, Linux 9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47, Linux 5dcf3a6843d0d7cc76960fbe8511d425f217744c. No fix listed yet: follow the vendor advisory.

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

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/dd7a49a3eaf723a01b2fdf153f98450a82b0b0fe>
- other: <https://git.kernel.org/stable/c/82e626af24683e01211abe66cec27a387f8f17c9>
- other: <https://git.kernel.org/stable/c/7169d1638824c4bf7e0fe0baad381ddec861fa70>
- other: <https://git.kernel.org/stable/c/1bec9da233f779e7b6954ee07ad7e6d8f2a4dd83>
- other: <https://git.kernel.org/stable/c/7ccc58a1a75601c936069d4a0741940623990ade>
- other: <https://git.kernel.org/stable/c/9412a9bf5952cdf5d0f736cc1e8c68fd366c2d47>
- other: <https://git.kernel.org/stable/c/5dcf3a6843d0d7cc76960fbe8511d425f217744c>
- other: <https://git.kernel.org/stable/c/e8b74453555872851bdd7ea43a7c0ec39659834f>

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

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