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

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-05-21 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2021-47330, DEBIAN-CVE-2021-47330
- Record: https://cvemate.com/vulnerability/CVE-2021-47330 · JSON: https://cvemate.com/vulnerability/CVE-2021-47330/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.245%, percentile 16.824%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 92)

- debian linux (Debian): \< 5.14.6-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 4.4.0-274.308 \| \< 4.15.0-156.163 \| \< 5.4.0-88.99
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): \< 4.4.0-1149.155 \| \< 4.4.0-1187.202 \| \< 4.15.0-1111.118 \| \< 5.4.0-1057.60
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1057.60~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-fips (Ubuntu): \< 4.15.0-2053.55 \| All versions (No fix recorded) \| \< 5.4.0-1069.73+fips2
- ubuntu linux-aws-hwe (Ubuntu): \< 4.15.0-1111.118~16.04.1
- ubuntu linux-azure (Ubuntu): \< 4.15.0-1123.136~14.04.1 \| \< 4.15.0-1123.136~16.04.1 \| All versions (No fix recorded) \| \< 5.4.0-1059.62
- ubuntu linux-azure-4.15 (Ubuntu): \< 4.15.0-1123.136
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.3 (Ubuntu): All versions (No fix recorded)

## References

- <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>
- <https://ubuntu.com/security/CVE-2021-47330>
- <https://www.cve.org/CVERecord?id=CVE-2021-47330>
- <https://git.kernel.org/linus/fad92b11047a748c996ebd6cfb164a63814eeb2e>
- <https://ubuntu.com/security/notices/USN-7863-1>
- <https://ubuntu.com/security/notices/USN-7865-1>
- <https://security-tracker.debian.org/tracker/CVE-2021-47330>

---

Data as of 2026-12-05T04:45:00.505Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
