# CVE-2022-49399: tty: goldfish: Use tty_port_destroy() to destroy port

- 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.26%, higher than 19% of CVEs (2026-12-01)
- Published: 2025-02-26T02:12:27.650Z
- Modified: 2026-06-17T05:17:56.330Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

tty: goldfish: Use tty_port_destroy() to destroy port

In goldfish_tty_probe(), the port initialized through tty_port_init()
should be destroyed in error paths.In goldfish_tty_remove(), qtty->port
also should be destroyed or else might leak resources.

Fix the above by calling tty_port_destroy().

(As written by CVE List.)

## Affected

- Linux Linux: from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 241fcb79dd1df276d80b19f5f6acc9eaaaa63309; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 326192b99c903a2193d820c30ed936cc2402382c; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 9ae3d073f7db5578ae1907544f0c15947e9678e6; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before ee6c33b29e624f515202a31bf6ef0437f26a1867; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before da64f419d7f78272bfe40dde1262602d4ff6b32c; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 45f6ce70abfb7ccf9d787781cbc4c03294a775a1; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 4639d1b992de8f37d66f698056875c274efcd45f; from 666b7793d4bfa9f150b5c2007ab48c755ddc53ca before 507b05063d1b7a1fcb9f7d7c47586fc4f3508f98; 3.9 (not affected: before 3.9; from 4.14.283 up to 4.14.*; from 4.19.247 up to 4.19.*; from 5.4.198 up to 5.4.*; from 5.10.122 up to 5.10.*; from 5.15.47 up to 5.15.*; from 5.17.15 up to 5.17.*; from 5.18.4 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 3.9 before 4.14.283; from 4.15 before 4.19.247; from 4.20 before 5.4.198; from 5.5 before 5.10.122; from 5.11 before 5.15.47; from 5.16 before 5.17.15; from 5.18 before 5.18.4

## References

- <https://git.kernel.org/stable/c/241fcb79dd1df276d80b19f5f6acc9eaaaa63309> (patch)
- <https://git.kernel.org/stable/c/326192b99c903a2193d820c30ed936cc2402382c> (patch)
- <https://git.kernel.org/stable/c/9ae3d073f7db5578ae1907544f0c15947e9678e6> (patch)
- <https://git.kernel.org/stable/c/ee6c33b29e624f515202a31bf6ef0437f26a1867> (patch)
- <https://git.kernel.org/stable/c/da64f419d7f78272bfe40dde1262602d4ff6b32c> (patch)
- <https://git.kernel.org/stable/c/45f6ce70abfb7ccf9d787781cbc4c03294a775a1> (patch)
- <https://git.kernel.org/stable/c/4639d1b992de8f37d66f698056875c274efcd45f> (patch)
- <https://git.kernel.org/stable/c/507b05063d1b7a1fcb9f7d7c47586fc4f3508f98> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2022-49399 · Whole record: https://cve.day/CVE-2022-49399.json · Rebuilt by cve.day 2026-11-25T22:58:20.500Z
