CVE-2025-21689

MEDIUM

Linux Kernel - Null Pointer Dereference in qt2_process_read_urb

Title source: llm
STIX 2.1

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.

Scores

CVSS v3 5.5
EPSS 0.0020
EPSS Percentile 10.0%
Attack Vector LOCAL
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CISA SSVC

Vulnrichment
Exploitation none
Automatable no
Technical Impact partial

Details

CWE
CWE-476
Status published
Products (27)
linux/Kernel 3.5.0 - 5.4.290linux
linux/Kernel 5.11.0 - 5.15.178linux
linux/Kernel 5.16.0 - 6.1.128linux
linux/Kernel 5.5.0 - 5.10.234linux
linux/Kernel 6.13.0 - 6.13.1linux
linux/Kernel 6.2.0 - 6.6.75linux
linux/Kernel 6.7.0 - 6.12.12linux
Linux/Linux < 3.5
Linux/Linux 3.5
Linux/Linux 5.10.234 - 5.10.*
... and 17 more
Published Feb 10, 2025
Tracked Since Feb 18, 2026