CVE-2021-47330

tty: serial: 8250: serial_cs: Fix a memory leak in error handling path

MEDIUM
5.5
CVSS Score
Published: May 21, 2024 at 02:35 PM UTC
Updated: June 17, 2026 at 04:17 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: tty: serial: 8250: serial_cs: Fix a memory leak in error handling path In the probe function, if the final 'serial_config()' fails, 'info' is leaking. Add a resource handling path to free this memory.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.4.2762.6.17 ≤ v < 4.14.2402.6.17 ≤ v < 4.19.1982.6.17 ≤ v < 4.4.2762.6.17 ≤ v < 4.9.2762.6.17 ≤ v < 5.10.522.6.17 ≤ v < 5.12.192.6.17 ≤ v < 5.13.42.6.17 ≤ v < 5.142.6.17 ≤ v < 5.4.1344.10 ≤ v < 4.14.2404.15 ≤ v < 4.19.1984.20 ≤ v < 5.4.1344.5 ≤ v < 4.9.2765.11 ≤ v < 5.12.195.13 ≤ v < 5.13.45.5 ≤ v < 5.10.5215b99ac1729503db9e6dc642a50b9b6cb3bf51f92.6.17
Vendor states this is fixed in 331f5923fce4f45b8170ccf06c529e8eb28f37bc (fixed)
Vendor states this is fixed in 34f4590f5ec9859ea9136249f528173d150bd584 (fixed)
Vendor states this is fixed in 7a80f71601af015856a0aeb1e3c294037ac3dd32 (fixed)
Vendor states this is fixed in b2ef1f5de40342de44fc5355321595f91774dab5 (fixed)
Vendor states this is fixed in b5a2799cd62ed30c81b22c23028d9ee374e2138c (fixed)
Vendor states this is fixed in c39cf4df19acf0133fa284a8cd83fad42cd13cc2 (fixed)
Vendor states this is fixed in cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461 (fixed)
Vendor states this is fixed in ee16bed959862a6de2913f71a04cb563d7237b67 (fixed)
Vendor states this is fixed in fad92b11047a748c996ebd6cfb164a63814eeb2e (fixed)
Vendor states this is fixed in 2.6.17 (unaffected)
Vendor states this is fixed in 4.14.240 (unaffected)
Vendor states this is fixed in 4.19.198 (unaffected)
Vendor states this is fixed in 4.4.276 (unaffected)
Vendor states this is fixed in 4.9.276 (unaffected)
Vendor states this is fixed in 5.10.52 (unaffected)
Vendor states this is fixed in 5.12.19 (unaffected)
Vendor states this is fixed in 5.13.4 (unaffected)
Vendor states this is fixed in 5.14 (unaffected)
Vendor states this is fixed in 5.4.134 (unaffected)

References (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/331f5923fce4f45b8170ccf06c529e8eb28f37bc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/34f4590f5ec9859ea9136249f528173d150bd584
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7a80f71601af015856a0aeb1e3c294037ac3dd32
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b2ef1f5de40342de44fc5355321595f91774dab5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b5a2799cd62ed30c81b22c23028d9ee374e2138c
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c39cf4df19acf0133fa284a8cd83fad42cd13cc2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ee16bed959862a6de2913f71a04cb563d7237b67

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
CWE-401

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card