CVE-2025-21689: USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
In the Linux kernel, the following vulnerability has been resolved:
USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
This patch addresses a null-ptr-deref in qt2_process_read_urb() due to
an incorrect bounds check in the following:
if (newport > serial->num_ports) {
dev_err(&port->dev,
"%s - port change to invalid port: %i\n",
__func__, newport);
break;
}
The condition doesn't account for the valid range of the serial->port
buffer, which is from 0 to serial->num_ports - 1. When newport is equal
to serial->num_ports, the assignment of "port" in the
following code is out-of-bounds and NULL:
serial_priv->current_port = newport;
port = serial->port[serial_priv->current_port];
The fix checks if newport is greater than or equal to serial->num_ports
indicating it is out-of-bounds.
Security readout for executives and security teams
Plain-English summary
CVE-2025-21689 is a Linux kernel flaw in the Quatech2 USB serial driver. A local, low-privileged user could trigger a kernel null pointer dereference, causing a denial of service. The sources do not support data theft, privilege escalation, or active exploitation claims.
Executive priority
Treat this as a routine-to-priority kernel availability fix, especially for fleets with USB serial usage. It does not justify emergency response absent exposure indicators, but kernel denial-of-service flaws should be remediated during the next security maintenance window.
Technical view
The bug is an incorrect bounds check in qt2_process_read_urb(). A port value equal to serial->num_ports is accepted, then used to index serial->port out of bounds, producing a NULL port pointer. CVSS 3.1 is 5.5 with local attack vector, low privileges, no user interaction, and high availability impact.
Likely exposure
Exposure is most relevant to Linux systems with affected kernel versions and the quatech2 USB serial driver reachable. Business impact is availability, not confidentiality or integrity. Systems without this driver or relevant USB serial usage likely have limited practical exposure, but should still follow kernel vendor advisories.
Exploitation context
The bundle marks KEV as false and provides no cited evidence of active exploitation. The CVSS vector indicates local access with low privileges is required. The vulnerability is a denial-of-service condition, not a remote compromise path in the provided evidence.
Researcher notes
The core issue is a greater-than check where greater-than-or-equal was required for serial->num_ports bounds. The source bundle references multiple Linux stable commits and Debian LTS announcements, but does not include exploit details or full distribution package mapping.
Mitigation direction
Apply Linux kernel or distribution updates that include the referenced stable fixes.
Prioritize systems using USB serial devices or loading the quatech2 driver.
Check Debian LTS advisories if running affected Debian LTS kernels.
If patching is delayed, follow vendor guidance on reducing driver exposure.
Track kernel package status against your distribution security advisories.
Validation and detection
Inventory Linux kernel versions across servers, workstations, appliances, and embedded systems.
Check whether the quatech2 USB serial driver is present or loadable.
Confirm installed kernel packages include the vendor fix for CVE-2025-21689.
Review vulnerability scanner findings for CVE-2025-21689 and reconcile with kernel package versions.
Verify reboot completion after kernel updates where required.
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Potential ATT&CK relevance
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
cwe · low confidence lookup
CWE-476: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.