# CVE-2021-47330: tty: serial: 8250: serial\_cs: Fix a memory leak in error handling path

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.31% (percentile 17, 2026-11-26)
- **CWE:** CWE-401
- **Published:** 2024-05-21T14:35:41.789Z
- **Modified:** 2026-06-17T04:17:12.767Z

## Who should check

- Anyone running Linux \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< b5a2799cd62ed30c81b22c23028d9ee374e2138c; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 331f5923fce4f45b8170ccf06c529e8eb28f37bc; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 34f4590f5ec9859ea9136249f528173d150bd584; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< ee16bed959862a6de2913f71a04cb563d7237b67; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 7a80f71601af015856a0aeb1e3c294037ac3dd32; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< c39cf4df19acf0133fa284a8cd83fad42cd13cc2; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< b2ef1f5de40342de44fc5355321595f91774dab5; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< fad92b11047a748c996ebd6cfb164a63814eeb2e
- Anyone running Linux 2.6.17

## 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 and fixed versions

- Linux: \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< b5a2799cd62ed30c81b22c23028d9ee374e2138c; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 331f5923fce4f45b8170ccf06c529e8eb28f37bc; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 34f4590f5ec9859ea9136249f528173d150bd584; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< ee16bed959862a6de2913f71a04cb563d7237b67; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 7a80f71601af015856a0aeb1e3c294037ac3dd32; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< c39cf4df19acf0133fa284a8cd83fad42cd13cc2; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< b2ef1f5de40342de44fc5355321595f91774dab5; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< fad92b11047a748c996ebd6cfb164a63814eeb2e (cvelist)
- Linux: 2.6.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2021-47330. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2021-47330.md
Affected: Linux >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < b5a2799cd62ed30c81b22c23028d9ee374e2138c; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < 331f5923fce4f45b8170ccf06c529e8eb28f37bc; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < 34f4590f5ec9859ea9136249f528173d150bd584; >= 15b99ac1729503db9e6dc64…
Fixed in: Linux 331f5923fce4f45b8170ccf06c529e8eb28f37bc, Linux 34f4590f5ec9859ea9136249f528173d150bd584, Linux 7a80f71601af015856a0aeb1e3c294037ac3dd32

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2021-47330 being exploited?

There is no confirmed exploitation: CVE-2021-47330 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.31% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2021-47330?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2021-47330?

Linux \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< b5a2799cd62ed30c81b22c23028d9ee374e2138c; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 331f5923fce4f45b8170ccf06c529e8eb28f37bc; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 34f4590f5ec9859ea9136249f528173d150bd584; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< ee16bed959862a6de2913f71a04cb563d7237b67; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< 7a80f71601af015856a0aeb1e3c294037ac3dd32; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< c39cf4df19acf0133fa284a8cd83fad42cd13cc2; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< b2ef1f5de40342de44fc5355321595f91774dab5; \>= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, \< fad92b11047a748c996ebd6cfb164a63814eeb2e; Linux 2.6.17.

### Is there a fix for CVE-2021-47330?

Yes. Fixed in Linux 331f5923fce4f45b8170ccf06c529e8eb28f37bc, Linux 34f4590f5ec9859ea9136249f528173d150bd584, Linux 7a80f71601af015856a0aeb1e3c294037ac3dd32. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2021-47330?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/b5a2799cd62ed30c81b22c23028d9ee374e2138c>
- patch: <https://git.kernel.org/stable/c/331f5923fce4f45b8170ccf06c529e8eb28f37bc>
- patch: <https://git.kernel.org/stable/c/34f4590f5ec9859ea9136249f528173d150bd584>
- patch: <https://git.kernel.org/stable/c/cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461>
- patch: <https://git.kernel.org/stable/c/ee16bed959862a6de2913f71a04cb563d7237b67>
- patch: <https://git.kernel.org/stable/c/7a80f71601af015856a0aeb1e3c294037ac3dd32>
- patch: <https://git.kernel.org/stable/c/c39cf4df19acf0133fa284a8cd83fad42cd13cc2>
- patch: <https://git.kernel.org/stable/c/b2ef1f5de40342de44fc5355321595f91774dab5>
- patch: <https://git.kernel.org/stable/c/fad92b11047a748c996ebd6cfb164a63814eeb2e>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2021-47330>

HTML: <https://flawdb.com/CVE-2021-47330> · JSON: <https://flawdb.com/api/v1/entries/CVE-2021-47330>
