In the Linux kernel, the following vulnerability has been resolved:
tty: goldfish: Use ttyportdestroy() to destroy port
In goldfishttyprobe(), the port initialized through ttyportinit() should be destroyed in error paths.In goldfishttyremove(), qtty->port also should be destroyed or else might leak resources.
Fix the above by calling ttyportdestroy().
{
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/blob/cc431b3424123d84bcd7afd4de150b33f117a8ef/cves/2022/49xxx/CVE-2022-49399.json"
}