{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-21689","id":"CVE-2025-21689","title":"USB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()\n\nThis patch addresses a null-ptr-deref in qt2_process_read_urb() due to\nan incorrect bounds check in the following:\n\n       if (newport > serial->num_ports) {\n               dev_err(&port->dev,\n                       \"%s - port change to invalid port: %i\\n\",\n    ","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nUSB: serial: quatech2: fix null-ptr-deref in qt2_process_read_urb()\n\nThis patch addresses a null-ptr-deref in qt2_process_read_urb() due to\nan incorrect bounds check in the following:\n\n       if (newport > serial->num_ports) {\n               dev_err(&port->dev,\n                       \"%s - port change to invalid port: %i\\n\",\n                       __func__, newport);\n               break;\n       }\n\nThe condition doesn't account for the valid range of the serial->port\nbuffer, which is from 0 to serial->num_ports - 1. When newport is equal\nto serial->num_ports, the assignment of \"port\" in the\nfollowing code is out-of-bounds and NULL:\n\n       serial_priv->current_port = newport;\n       port = serial->port[serial_priv->current_port];\n\nThe fix checks if newport is greater than or equal to serial->num_ports\nindicating it is out-of-bounds.","published":"2025-02-10T15:58:45.493Z","updated":"2026-10-28T02:31:14.884772272Z","reserved":"2024-12-29T08:45:45.741Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"CISA-ADP"},{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"OSV"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"fa4c7472469d97c4707698b4c0e098f8cfc2bf22","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"94770cf7c5124f0268d481886829dc2beecc4507","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"6068dcff7f19e9fa6fa23ee03453ad6a40fa4efe","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"4b9b41fabcd38990f69ef0cee9c631d954a2b530","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"6377838560c03b36e1153a42ef727533def9b68f","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"f371471708c7d997f763b0e70565026eb67cc470","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"8542b33622571f54dfc2a267fce378b6e3840b8b","status":"affected","versionType":"git"},{"version":"f7a33e608d9ae022b7f49307921627e34e9484ed","lessThan":"575a5adf48b06a2980c9eeffedf699ed5534fade","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.5","status":"affected"},{"version":"0","lessThan":"3.5","status":"unaffected","versionType":"semver"},{"version":"5.4.290","lessThanOrEqual":"5.4.*","status":"unaffected","versionType":"semver"},{"version":"5.10.234","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.178","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.128","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.75","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.12","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.13.1","lessThanOrEqual":"6.13.*","status":"unaffected","versionType":"semver"},{"version":"6.14","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-476"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/fa4c7472469d97c4707698b4c0e098f8cfc2bf22","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/94770cf7c5124f0268d481886829dc2beecc4507","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6068dcff7f19e9fa6fa23ee03453ad6a40fa4efe","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/4b9b41fabcd38990f69ef0cee9c631d954a2b530","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6377838560c03b36e1153a42ef727533def9b68f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f371471708c7d997f763b0e70565026eb67cc470","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/8542b33622571f54dfc2a267fce378b6e3840b8b","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/575a5adf48b06a2980c9eeffedf699ed5534fade","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html","tags":["web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/21xxx/CVE-2025-21689.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21689","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00228,"epssPercentile":0.13726,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-21689","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-21689","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-21689","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-21689","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}