HIGH 7.8

CVE-2026-53300: Linux ENETC Driver DMA Use-After-Free (CVSS 7.8)

A use-after-free vulnerability exists in the Linux kernel's ENETC network driver. When a network command times out, the driver can free a memory buffer while the hardware is still trying to write to it. This can corrupt memory if the freed buffer gets reallocated to another part of the system. The fix converts a locking mechanism from a spinlock to a mutex, introduces proper tracking of DMA buffers, and ensures locks are held during the critical window when responses are being consumed.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-416
Affected products
1 configuration(s)
Published / Modified
2026-06-26 / 2026-07-08

NVD description (verbatim)

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.

3 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-53300 affects the ENETC driver's NTMP (Network Table Management Protocol) command path in the Linux kernel. The vulnerability occurs in netc_xmit_ntmp_cmd() when a command times out. The driver frees the DMA buffer immediately via ntmp_free_data_mem() without verifying that in-flight hardware operations have completed. The hardware may subsequently DMA-write the response to the physical address of the now-freed buffer, causing silent memory corruption. The root cause is a race condition between software buffer reclamation and pending hardware DMA operations. Mitigation requires: (1) converting cbdr->ring_lock from spinlock to mutex to allow sleeping operations, (2) introducing a software command buffer descriptor (struct netc_swcbd) to maintain DMA metadata independent of the hardware-writable BD, and (3) extending lock ownership to callers so responses remain protected during consumption.

Business impact

This vulnerability can lead to silent kernel memory corruption on systems using the ENETC driver with NTMP table operations. Affected workloads may experience data integrity issues, kernel panics, or unpredictable system behavior. Because corruption is silent and asynchronous, it may not be detected immediately, increasing the window for cascading failures. For cloud or virtualized environments where ENETC is used, this could impact system stability and trustworthiness. The LOCAL privilege requirement means only local users or processes can trigger the issue, limiting blast radius compared to remote exploits.

Affected systems

The Linux kernel is affected, specifically distributions and systems running the ENETC driver with NTMP support enabled. This includes systems using QorIQ or similar NXP processors that expose the ENETC interface. Verify your kernel version and ENETC driver configuration against vendor advisories. Most server distributions and embedded Linux systems running affected kernel versions should be assessed.

Exploitability

Exploitation requires LOCAL access and privilege (non-root user context). An attacker with local system access can trigger the race condition by submitting NTMP commands that timeout and then allocating memory to observe corruption. The vulnerability is not trivial to exploit reliably due to the race condition's timing sensitivity, but the impact (memory corruption) is significant. The CVSS score of 7.8 reflects high impact with local/low complexity prerequisites. No public exploit code has been identified at this time.

Remediation

Apply the Linux kernel patch that resolves CVE-2026-53300. The patch modifies the ENETC driver to properly manage DMA buffer lifecycle and fix the race condition. Verify the specific kernel version containing the fix against your distribution's security advisories and patch release notes. For systems unable to immediately patch, restrict local access and monitor for unexpected kernel errors or memory corruption signs.

Patch guidance

Contact your Linux distribution vendor or check kernel.org for the specific kernel version and ENETC driver version containing the fix. The patch is likely available in stable kernel series updates published after 2026-07-08. Apply via standard kernel update mechanisms (apt, yum, etc.) or compile from source if necessary. Testing in non-production environments is recommended before deployment. Verify that the patched kernel includes the complete fix: spinlock-to-mutex conversion, software command BD introduction, and lock ownership changes to callers.

Detection guidance

Monitor system logs for NTMP-related timeouts or warnings from the ENETC driver. Unexpected kernel panics, memory corruption warnings (slab poisoning, page allocation failures), or irregular system behavior may indicate exploitation. If possible, enable kernel debugging and audit memory allocator messages. In virtualized environments, watch for VM instability correlated with NTMP operations. Detection is challenging because corruption may be silent; focus on prevention through patching and access control rather than post-facto detection.

Why prioritize this

Despite local-only access requirements, the HIGH severity (CVSS 7.8) and silent memory corruption impact warrant prioritization. Memory corruption can cascade and undermine system integrity across multiple services. The vulnerability affects kernel core functionality, and the race condition nature means timing-dependent exploitation could be triggered accidentally through normal workload patterns. Patch promptly for systems using ENETC and immediately for production systems with internet-facing services relying on system stability.

Risk score, explained

CVSS 7.8 (HIGH) reflects: Attack Vector LOCAL (requires system access), Attack Complexity LOW (no special conditions needed once access is gained), Privileges Required LOW (non-root local user), User Interaction NONE, Scope UNCHANGED, and Confidentiality/Integrity/Availability all HIGH (full memory corruption impact). The score appropriately captures the serious nature of kernel memory corruption balanced against the local-only attack vector. Real-world risk varies based on whether the ENETC driver and NTMP support are active in your environment.

Frequently asked questions

Does this vulnerability affect my system?

Only if you run the Linux kernel with the ENETC driver enabled and NTMP support active. This is primarily relevant for systems using NXP QorIQ processors or similar platforms. Check your kernel configuration (grep ENETC /boot/config-*) and driver status. Most standard x86 or ARM server distributions do not enable ENETC by default.

What happens if this bug is exploited?

An attacker with local access can trigger a race condition that causes the kernel to free a DMA buffer while hardware is still writing to it. This leads to silent memory corruption—the hardware writes data to what it thinks is valid memory but is actually unallocated space that may now belong to another process or kernel subsystem. The corruption is asynchronous and difficult to detect immediately, but can cause kernel panics, data loss, or unpredictable behavior.

Is a reboot required after applying the patch?

Yes. The patch modifies kernel core networking driver code, so a kernel update and reboot are required for the fix to take effect. Plan the reboot during your standard maintenance window.

Can I work around this vulnerability without patching?

Partial mitigation is possible by restricting local system access and disabling NTMP table operations if your workload permits. However, these are not reliable long-term solutions. Patching is the definitive remediation.

This analysis is based on publicly available vulnerability data as of the publication date. CVSS scores and severity ratings are subject to change as new information emerges. Specific patch version numbers and availability should be verified against official Linux distribution advisories and kernel.org. This vulnerability does not appear on the CISA KEV catalog at this time. Organizations should validate affected systems against their own configurations and consult vendor documentation for definitive guidance. This content is for informational purposes and does not constitute professional security advice; engage qualified security professionals for deployment decisions. Source: NVD (public-domain), retrieved 2026-08-05. Analysis generated by SEC.co (claude-haiku-4-5).