CVE-2026-53338

net: airoha: Add NULL check for of_reserved_mem_lookup() in airoha_qdma_init_hfwd_queues()

Published Jul 1, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

net: airoha: Add NULL check for of_reserved_mem_lookup() in airoha_qdma_init_hfwd_queues()

of_reserved_mem_lookup() may return NULL if the reserved memory region
referenced by the "memory-region" phandle is not found in the reserved
memory table (e.g. due to a misconfigured DTS or a removed
memory-region node). The current code dereferences the returned
pointer without checking for NULL, leading to a kernel NULL pointer
dereference at the following lines:

dma_addr = rmem->base; // line 1156
num_desc = div_u64(rmem->size, buf_size); // line 1160

Add a NULL check after of_reserved_mem_lookup() and return -ENODEV if
the lookup fails, which is consistent with the existing error handling
for of_parse_phandle() failure in the same code block.

Analysis

AI-generated

Technical impact

The airoha network driver in the Linux kernel lacks a NULL check around the result of of_reserved_mem_lookup(). When a device tree memory-region phandle does not correspond to a reserved memory entry, the function returns NULL. The subsequent code dereferences the pointer, which causes a kernel NULL pointer dereference during driver initialization. A NULL pointer dereference in the kernel results in a panic and brings the entire system down, effectively a denial-of-service.

Affected Systems

All Linux kernel versions that include the airoha QDMA driver and do not yet incorporate the NULL-check patch are affected. Any system that uses a device tree entry for an airoha network interface with a memory-region phandle that could be missing or misconfigured is at risk. The CVE does not provide a list of specific kernel releases, but the vulnerability applies to any configuration that falls under the described conditions.

Risk and Exploitability

The EPSS score is less than 1%, indicating a very low predicted exploitation probability, and the vulnerability is not listed in CISA's KEV catalog. The CVSS score of 5.5 indicates moderate severity. The likely attack vector is modification of the device tree or firmware to reference a non-existent memory region, inferred from the description. Exploitation would require the attacker to alter the device tree configuration or use hardware that presents an incorrect memory-region phandle, which is generally difficult outside of a physical or privileged context. Consequently, the risk remains low for systems where the device tree cannot be modified.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel update that includes the NULL-check addition to airoha_qdma_init_hfwd_queues().
  • Verify that the device tree entry for the airoha NIC contains a valid memory-region phandle; correct or remove any missing or incorrect phandles.
  • Reboot the system after applying the patch or correcting the device tree and monitor kernel logs for residual panic events.

Generated by OpenCVE AI on August 12, 2026 at 08:58 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8726-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8727-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-1 Linux kernel (GCP) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-2 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-3 Linux kernel (IBM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8800-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8760-2 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8726-4 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-2 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8728-3 Linux kernel (Oracle) vulnerabilities
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: net: airoha: Add NULL check for of_reserved_mem_lookup() in airoha_qdma_init_hfwd_queues() of_reserved_mem_lookup() may return NULL if the reserved memory region referenced by the "memory-region" phandle is not found in the reserved memory table (e.g. due to a misconfigured DTS or a removed memory-region node). The current code dereferences the returned pointer without checking for NULL, leading to a kernel NULL pointer dereference at the following lines: dma_addr = rmem->base; // line 1156 num_desc = div_u64(rmem->size, buf_size); // line 1160 Add a NULL check after of_reserved_mem_lookup() and return -ENODEV if the lookup fails, which is consistent with the existing error handling for of_parse_phandle() failure in the same code block.
Title net: airoha: Add NULL check for of_reserved_mem_lookup() in airoha_qdma_init_hfwd_queues()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Jul 1, 2026, 1:32 PM
Reserved
Jun 9, 2026, 7:44 AM
Status
Analyzed
Published
Jul 1, 2026, 2:16 PM
Modified
Jul 23, 2026, 9:33 PM
Severity
Public date
Jul 1, 2026, 12:00 AM