# CVE-2026-53300: net: enetc: fix NTMP DMA use-after-free issue

> 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.17% (percentile 4, 2026-11-28)
- **CWE:** CWE-416
- **Published:** 2026-06-26T19:40:57.186Z
- **Modified:** 2026-08-05T12:34:58.086Z

## Who should check

- Anyone running Linux \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 37c8933064be714ee672b0a0523c2fd045b73b3d; \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b; \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 3cade698881eb238f88cbbfec82acc2110440a3f
- Anyone running Linux 6.16

## Description

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

net: enetc: fix NTMP DMA use-after-free issue

The AI-generated review reported a potential DMA use-after-free issue
\[1\]. If netc\_xmit\_ntmp\_cmd() times out and returns an error, the pending
command is not explicitly aborted, while ntmp\_free\_data\_mem()
unconditionally frees the DMA buffer. If the buffer has already been
reallocated elsewhere, this may lead to silent memory corruption. Because
the hardware eventually processes the pending command and perform a DMA
write of the response to the physical address of the freed buffer.

To resolve this issue, this patch does the following modifications:

1. Convert cbdr-\>ring\_lock from a spinlock to a mutex

The lock was originally a spinlock in case NTMP operations might be
invoked from atomic context. After downstream support for all NTMP
tables, no such usage has materialized. A mutex lock is now required
because the driver now needs to reclaim used BDs and release associated
DMA memory within the lock's context, while dma\_free\_coherent() might
sleep.

2. Introduce software command BD (struct netc\_swcbd)

The hardware write-back overwrites the addr and len fields of the BD,
so the driver cannot rely on the hardware BD to free the associated DMA
memory. The driver now maintains a software shadow BD storing the DMA
buffer pointer, DMA address, and size. And netc\_xmit\_ntmp\_cmd() only
reclaims older BDs when the number of used BDs reaches
NETC\_CBDR\_CLEAN\_WORK (16). The software BD enables correct DMA memory
release. With this, struct ntmp\_dma\_buf and ntmp\_free\_data\_mem() are no
longer needed and are removed.

3. Require callers to hold ring\_lock across netc\_xmit\_ntmp\_cmd()

netc\_xmit\_ntmp\_cmd() releases the ring\_lock before the caller finishes
consuming the response. At this point, if a concurrent thread submits
a new command, it may trigger ntmp\_clean\_cbdr() and free the DMA buffer
while it is still in use. Move ring\_lock ownership to the caller to
ensure the response buffer cannot be reclaimed prematurely. So the
helpers ntmp\_select\_and\_lock\_cbdr() and ntmp\_unlock\_cbdr() are added.

These changes eliminate the DMA use-after-free condition and ensure safe
and consistent BD reclamation and DMA buffer lifecycle management.

## Affected and fixed versions

- Linux: \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 37c8933064be714ee672b0a0523c2fd045b73b3d; \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b; \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 3cade698881eb238f88cbbfec82acc2110440a3f (cvelist)
- Linux: 6.16 (cvelist)

## Mitigation

- Upgrade Linux to 3cade698881eb238f88cbbfec82acc2110440a3f or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-53300. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-53300.md
Affected: Linux >= 4701073c3debd16d7f534f3eb808bd9b50601c0c, < 37c8933064be714ee672b0a0523c2fd045b73b3d; >= 4701073c3debd16d7f534f3eb808bd9b50601c0c, < 655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b; >= 4701073c3debd16d7f534f3eb808bd9b50601c0c, < 3cade698881eb238f88cbbfec82acc2110440a3f; Linux 6.16
Fixed in: Linux 37c8933064be714ee672b0a0523c2fd045b73b3d, Linux 655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b, Linux 3cade698881eb238f88cbbfec82acc2110440a3f

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-2026-53300 being exploited?

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

### How serious is CVE-2026-53300?

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

### Which versions are affected by CVE-2026-53300?

Linux \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 37c8933064be714ee672b0a0523c2fd045b73b3d; \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b; \>= 4701073c3debd16d7f534f3eb808bd9b50601c0c, \< 3cade698881eb238f88cbbfec82acc2110440a3f; Linux 6.16.

### Is there a fix for CVE-2026-53300?

Yes. Fixed in Linux 37c8933064be714ee672b0a0523c2fd045b73b3d, Linux 655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b, Linux 3cade698881eb238f88cbbfec82acc2110440a3f. Upgrade Linux to 3cade698881eb238f88cbbfec82acc2110440a3f or later.

### How do I check if I'm affected by CVE-2026-53300?

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

- patch: <https://git.kernel.org/stable/c/37c8933064be714ee672b0a0523c2fd045b73b3d>
- patch: <https://git.kernel.org/stable/c/655d9ce9b1d3db0aa5271acb5e5101c66bd0d58b>
- patch: <https://git.kernel.org/stable/c/3cade698881eb238f88cbbfec82acc2110440a3f>

## 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-2026-53300>

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