CVE-2021-47330
tty: serial: 8250: serial_cs: Fix a memory leak in error handling path
Mitigation
- No fix listed yet: follow the vendor advisory.
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
Vulnerability facts
- Affected
- Linux >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < b5a2799cd62ed30c81b22c23028d9ee374e2138c; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < 331f5923fce4f45b8170ccf06c529e8eb28f37bc; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < 34f4590f5ec9859ea9136249f528173d150bd584; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < ee16bed959862a6de2913f71a04cb563d7237b67; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < 7a80f71601af015856a0aeb1e3c294037ac3dd32; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < c39cf4df19acf0133fa284a8cd83fad42cd13cc2; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < b2ef1f5de40342de44fc5355321595f91774dab5; >= 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9, < fad92b11047a748c996ebd6cfb164a63814eeb2e; Linux 2.6.17
- Fixed in
- Linux 331f5923fce4f45b8170ccf06c529e8eb28f37bc, Linux 34f4590f5ec9859ea9136249f528173d150bd584, Linux 7a80f71601af015856a0aeb1e3c294037ac3dd32
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 5.5 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HOpen in CVSS calculator
Show all 8 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
- EPSS
- 0.31% chance of exploitation in 30 days (percentile 17, 2026-11-26)
- CWE
- CWE-401
- Modified
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
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| 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 |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
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.
References
Patches
- https://git.kernel.org/stable/c/b5a2799cd62ed30c81b22c23028d9ee374e2138c
- https://git.kernel.org/stable/c/331f5923fce4f45b8170ccf06c529e8eb28f37bc
- https://git.kernel.org/stable/c/34f4590f5ec9859ea9136249f528173d150bd584
- https://git.kernel.org/stable/c/cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461
- https://git.kernel.org/stable/c/ee16bed959862a6de2913f71a04cb563d7237b67
- https://git.kernel.org/stable/c/7a80f71601af015856a0aeb1e3c294037ac3dd32
- https://git.kernel.org/stable/c/c39cf4df19acf0133fa284a8cd83fad42cd13cc2
- https://git.kernel.org/stable/c/b2ef1f5de40342de44fc5355321595f91774dab5
- https://git.kernel.org/stable/c/fad92b11047a748c996ebd6cfb164a63814eeb2e
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.