Description
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
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < 0396227f4daf4792a6a8aaa3b7771dc25c4cd443affected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < ded893965b895b2dccd3d1436d8d3daffa23ea64affected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < 8b14bd0b500aec1458b51cb621c8e5fab3304260affected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < 2d24d91b9f44620824fc37b766f7cae00ca32748affected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < e01c1542379fb395e7da53706df598f38905dfbfaffected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < 8782b32ef867de7981bbe9e86ecb90e92e8780bdaffected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < aa08323fe18cb7cf95317ffa2d54ca1de8e74ebdaffected6b18662e239a032f908b7f6e164bdf7e2e0a32c9 to < dcc14cfd7debe11b825cb077e75d91d2575b4cb8affected
Linux Linux
Default version status: affected
2.6.33affected0 to < 2.6.33unaffected4.9.335 to ≤ 4.9.*unaffected4.14.301 to ≤ 4.14.*unaffected4.19.268 to ≤ 4.19.*unaffected5.4.226 to ≤ 5.4.*unaffected5.10.158 to ≤ 5.10.*unaffected5.15.82 to ≤ 5.15.*unaffected6.0.12 to ≤ 6.0.*unaffected6.1 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/0396227f4daf4792a6a8aaa3b7771dc25c4cd443 ↗
- https://git.kernel.org/stable/c/ded893965b895b2dccd3d1436d8d3daffa23ea64 ↗
- https://git.kernel.org/stable/c/8b14bd0b500aec1458b51cb621c8e5fab3304260 ↗
- https://git.kernel.org/stable/c/2d24d91b9f44620824fc37b766f7cae00ca32748 ↗
- https://git.kernel.org/stable/c/e01c1542379fb395e7da53706df598f38905dfbf ↗
- https://git.kernel.org/stable/c/8782b32ef867de7981bbe9e86ecb90e92e8780bd ↗
- https://git.kernel.org/stable/c/aa08323fe18cb7cf95317ffa2d54ca1de8e74ebd ↗
- https://git.kernel.org/stable/c/dcc14cfd7debe11b825cb077e75d91d2575b4cb8 ↗