CVE-2025-21689
USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
Reported by linux · Published February 10, 2025
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| linux_kernel | linux | 6.14, 6.13.1, 6.12.12, 6.6.75, 6.1.128, 5.15.178, 5.10.234, 5.4.290 |
| Linux | Linux | fa4c7472469d97c4707698b4c0e098f8cfc2bf22 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | f7a33e608d9ae022b7f49307921627e34e9484ed, f7a33e608d9ae022b7f49307921627e34e9484ed, f7a33e608d9ae022b7f49307921627e34e9484ed |
| Linux | Linux | 3.5, 0, 5.4.290 |
| linux | linux_kernel | 3.5, 3.5, 3.5 |
| Linux | Linux | *, *, * |
Timeline
- Feb 10, 2025 CVE Published
- Feb 11, 2025 EPSS Score (30 in total, the first dated here)
- Mar 11, 2025 Coalition ESS Score (11 in total, the first dated here)
- Dec 16, 2025 PoC Published
- Dec 22, 2025 Security Advisory (112 in total, the first dated here)
- Apr 29, 2026 Distribution Patch (96 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2025-21689
vulnetix vdb fixes CVE-2025-21689
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-21689/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart