NetSight
medium5.5

CVE-2022-49020

In the Linux kernel, the following vulnerability has been resolved: net/9p: Fix a potential socket leak in p9_socket_open Both p9_fd_create_tcp() and p9_fd_cre…

Impact

In the Linux kernel, the following vulnerability has been resolved: net/9p: Fix a potential socket leak in p9_socket_open Both p9_fd_create_tcp() and p9_fd_create_unix() will call p9_socket_open(). If the creation of p9_trans_fd fails, p9_fd_create_tcp() and p9_fd_create_unix() will return an error directly instead of releasing the cscoket, which will result in a socket leak. This patch adds sock_release() to fix the leak issue.

Affected products

VendorProductAffected versions
LinuxLinux Kernel
from 2.6.33 before 4.9.335
from 4.10 before 4.14.301
from 4.15 before 4.19.268
from 4.20 before 5.4.226
from 5.5 before 5.10.158
from 5.11 before 5.15.82

Weakness classification

References