CVE-2025-21689

USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()

MEDIUM
5.5
CVSS Score
Published: February 10, 2025 at 03:58 PM UTC
Updated: June 17, 2026 at 08:44 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.5 ≤ v < 5.10.2343.5 ≤ v < 5.15.1783.5 ≤ v < 5.4.2903.5 ≤ v < 6.1.1283.5 ≤ v < 6.12.123.5 ≤ v < 6.13.13.5 ≤ v < 6.143.5 ≤ v < 6.6.755.11 ≤ v < 5.15.1785.16 ≤ v < 6.1.1285.5 ≤ v < 5.10.2346.2 ≤ v < 6.6.756.7 ≤ v < 6.12.126.136.13 rc16.13 rc26.13 rc36.13 rc46.13 rc56.13 rc66.13 rc7f7a33e608d9ae022b7f49307921627e34e9484ed
Vendor states this is fixed in 4b9b41fabcd38990f69ef0cee9c631d954a2b530 (fixed)
Vendor states this is fixed in 575a5adf48b06a2980c9eeffedf699ed5534fade (fixed)
Vendor states this is fixed in 6068dcff7f19e9fa6fa23ee03453ad6a40fa4efe (fixed)
Vendor states this is fixed in 6377838560c03b36e1153a42ef727533def9b68f (fixed)
Vendor states this is fixed in 8542b33622571f54dfc2a267fce378b6e3840b8b (fixed)
Vendor states this is fixed in 94770cf7c5124f0268d481886829dc2beecc4507 (fixed)
Vendor states this is fixed in f371471708c7d997f763b0e70565026eb67cc470 (fixed)
Vendor states this is fixed in fa4c7472469d97c4707698b4c0e098f8cfc2bf22 (fixed)
Vendor states this is fixed in 3.5 (unaffected)
Vendor states this is fixed in 5.10.234 (unaffected)
Vendor states this is fixed in 5.15.178 (unaffected)
Vendor states this is fixed in 5.4.290 (unaffected)
Vendor states this is fixed in 6.1.128 (unaffected)
Vendor states this is fixed in 6.12.12 (unaffected)
Vendor states this is fixed in 6.13.1 (unaffected)
Vendor states this is fixed in 6.14 (unaffected)
Vendor states this is fixed in 6.6.75 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4b9b41fabcd38990f69ef0cee9c631d954a2b530
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/575a5adf48b06a2980c9eeffedf699ed5534fade
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6068dcff7f19e9fa6fa23ee03453ad6a40fa4efe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/6377838560c03b36e1153a42ef727533def9b68f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8542b33622571f54dfc2a267fce378b6e3840b8b
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/94770cf7c5124f0268d481886829dc2beecc4507
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/f371471708c7d997f763b0e70565026eb67cc470
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/fa4c7472469d97c4707698b4c0e098f8cfc2bf22

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

5.5MEDIUMCISA-ADP
Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card