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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-21T14:35:41.789Z
- Modified: 2026-06-17T04:17:12.767Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before b5a2799cd62ed30c81b22c23028d9ee374e2138c; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before 331f5923fce4f45b8170ccf06c529e8eb28f37bc; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before 34f4590f5ec9859ea9136249f528173d150bd584; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before cddee5c287e26f6b2ba5c0ffdfc3a846f2f10461; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before ee16bed959862a6de2913f71a04cb563d7237b67; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before 7a80f71601af015856a0aeb1e3c294037ac3dd32; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before c39cf4df19acf0133fa284a8cd83fad42cd13cc2; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before b2ef1f5de40342de44fc5355321595f91774dab5; from 15b99ac1729503db9e6dc642a50b9b6cb3bf51f9 before fad92b11047a748c996ebd6cfb164a63814eeb2e; 2.6.17 (not affected: before 2.6.17; from 4.4.276 up to 4.4.*; from 4.9.276 up to 4.9.*; from 4.14.240 up to 4.14.*; from 4.19.198 up to 4.19.*; from 5.4.134 up to 5.4.*; from 5.10.52 up to 5.10.*; from 5.12.19 up to 5.12.*; from 5.13.4 up to 5.13.*; from 5.14 up to *)
- linux linux_kernel: before 4.4.276; from 4.5 before 4.9.276; from 4.10 before 4.14.240; from 4.15 before 4.19.198; from 4.20 before 5.4.134; from 5.5 before 5.10.52; from 5.11 before 5.12.19; from 5.13 before 5.13.4

## References

- <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> (patch)

## Sources

- CVE List: [CVE-2021-47330](https://www.cve.org/CVERecord?id=CVE-2021-47330), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2021-47330](https://nvd.nist.gov/vuln/detail/CVE-2021-47330), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-47330 · Whole record: https://cve.day/CVE-2021-47330.json · Rebuilt by cve.day 2026-11-25T22:58:08.800Z
