CVE-2025-21689
USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()
Check your servers for CVE-2025-21689
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-21689 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Severity (CVSS)
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Attack vector
- local: the attacker needs local access, or a user has to open a prepared file
- Attack complexity
- low: an attack works without special conditions
- Privileges required
- low: the attacker needs an ordinary user account
- User interaction
- none: nobody has to click or open anything
- Scope
- unchanged: the damage stays inside the vulnerable component
- Impact
- confidentiality none, integrity none, availability high: what an attacker can read (confidentiality), change (integrity) or stop (availability)
Exploitation
EPSS 0.23%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 14.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 1 Oct 2025):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Weakness
- CWE-476 NULL Pointer Dereference
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before fa4c7472469d97c4707698b4c0e098f8cfc2bf22 affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before 94770cf7c5124f0268d481886829dc2beecc4507 affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before 6068dcff7f19e9fa6fa23ee03453ad6a40fa4efe affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before 4b9b41fabcd38990f69ef0cee9c631d954a2b530 affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before 6377838560c03b36e1153a42ef727533def9b68f affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before f371471708c7d997f763b0e70565026eb67cc470 affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before 8542b33622571f54dfc2a267fce378b6e3840b8b affected from f7a33e608d9ae022b7f49307921627e34e9484ed, before 575a5adf48b06a2980c9eeffedf699ed5534fade
Other versions: unaffected
|
| Linux |
affected 3.5 unaffected before 3.5 unaffected from 5.4.290 up to and including 5.4.* unaffected from 5.10.234 up to and including 5.10.* unaffected from 5.15.178 up to and including 5.15.* unaffected from 6.1.128 up to and including 6.1.* unaffected from 6.6.75 up to and including 6.6.* unaffected from 6.12.12 up to and including 6.12.* unaffected from 6.13.1 up to and including 6.13.* unaffected 6.14 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-21689 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-21689
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2025-21689
trivy image --scanners vuln IMAGE | grep CVE-2025-21689
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fa4c7472469d97c4707698b4c0e098f8cfc2bf22 git.kernel.org
- https://git.kernel.org/stable/c/94770cf7c5124f0268d481886829dc2beecc4507 git.kernel.org
- https://git.kernel.org/stable/c/6068dcff7f19e9fa6fa23ee03453ad6a40fa4efe git.kernel.org
- https://git.kernel.org/stable/c/4b9b41fabcd38990f69ef0cee9c631d954a2b530 git.kernel.org
- https://git.kernel.org/stable/c/6377838560c03b36e1153a42ef727533def9b68f git.kernel.org
- https://git.kernel.org/stable/c/f371471708c7d997f763b0e70565026eb67cc470 git.kernel.org
- https://git.kernel.org/stable/c/8542b33622571f54dfc2a267fce378b6e3840b8b git.kernel.org
- https://git.kernel.org/stable/c/575a5adf48b06a2980c9eeffedf699ed5534fade git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
Source: the record CVE-2025-21689 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse