CWE
476
Advisory Published
Updated

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

First published: Mon Feb 10 2025(Updated: )

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.

Credit: 416baaa9-dc9f-4396-8d5f-8c081fb06d67

Affected SoftwareAffected VersionHow to fix
Linux Kernel
Linux Kernel>=3.5<5.4.290
Linux Kernel>=5.5<5.10.234
Linux Kernel>=5.11<5.15.178
Linux Kernel>=5.16<6.1.128
Linux Kernel>=6.2<6.6.75
Linux Kernel>=6.7<6.12.12
Linux Kernel=6.13
Linux Kernel=6.13-rc1
Linux Kernel=6.13-rc2
Linux Kernel=6.13-rc3
Linux Kernel=6.13-rc4
Linux Kernel=6.13-rc5
Linux Kernel=6.13-rc6
Linux Kernel=6.13-rc7

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2025-21689?

    CVE-2025-21689 is classified as a moderate severity vulnerability in the Linux kernel.

  • How do I fix CVE-2025-21689?

    To fix CVE-2025-21689, update your Linux kernel to the latest stable version that includes the patch for this vulnerability.

  • What versions of the Linux kernel are affected by CVE-2025-21689?

    CVE-2025-21689 affects various versions of the Linux kernel prior to the patch being applied.

  • What impacts does CVE-2025-21689 have on system security?

    The null pointer dereference vulnerability in CVE-2025-21689 may lead to system crashes or instability, potentially affecting system reliability.

  • Is there a workaround for CVE-2025-21689?

    There are no known workarounds for CVE-2025-21689; the recommended action is to apply the kernel update as soon as possible.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203