Description
In the Linux kernel, the following vulnerability has been resolved: net/af_iucv: fix NULL deref in afiucv_hs_callback_syn() afiucv_hs_callback_syn() allocates the child socket with GFP_ATOMIC. If the allocation fails, nsk is NULL. The connection-refused path is entered when the listen state check fails, the accept backlog is full, or nsk is NULL. The code unconditionally calls iucv_sock_kill(nsk) in that path. iucv_sock_kill() does not accept a NULL socket pointer and immediately dereferences sk via sock_flag(sk, SOCK_ZAPPED). When nsk is NULL, calling iucv_sock_kill(nsk) results in a NULL pointer dereference. Only call iucv_sock_kill() when a child socket was successfully allocated.
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
3881ac441f642d56503818123446f7298442236b to < 6a1eb5b46c19073f8153b7e2c19b408cf353aaf1affected3881ac441f642d56503818123446f7298442236b to < c0b6e2ae90613c2fea7eaf3faa20985c6c2a1953affected3881ac441f642d56503818123446f7298442236b to < 07e21deb3664001995e0a456dd627ab7dbe127ecaffected3881ac441f642d56503818123446f7298442236b to < 8bb111f87ded6acb9837ec9b45d6f02cda94c51faffected3881ac441f642d56503818123446f7298442236b to < 46453b16f38ec7147351f7447e2aec6ea330f7b3affected3881ac441f642d56503818123446f7298442236b to < 33736ff5e7c97d3348ce812e8bd2e125d840743caffected3881ac441f642d56503818123446f7298442236b to < 0e857185591fe79934427c9c0c1c31dc776be134affected3881ac441f642d56503818123446f7298442236b to < 47a5116e56a6b6fe1e909f244e39cd0fc26ceee4affected
Linux Linux
Default version status: affected
3.2affected0 to < 3.2unaffected5.10.265 to ≤ 5.10.*unaffected5.15.216 to ≤ 5.15.*unaffected6.1.183 to ≤ 6.1.*unaffected6.6.148 to ≤ 6.6.*unaffected6.12.101 to ≤ 6.12.*unaffected6.18.42 to ≤ 6.18.*unaffected7.1.6 to ≤ 7.1.*unaffected7.2 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/6a1eb5b46c19073f8153b7e2c19b408cf353aaf1 ↗
- https://git.kernel.org/stable/c/c0b6e2ae90613c2fea7eaf3faa20985c6c2a1953 ↗
- https://git.kernel.org/stable/c/07e21deb3664001995e0a456dd627ab7dbe127ec ↗
- https://git.kernel.org/stable/c/8bb111f87ded6acb9837ec9b45d6f02cda94c51f ↗
- https://git.kernel.org/stable/c/46453b16f38ec7147351f7447e2aec6ea330f7b3 ↗
- https://git.kernel.org/stable/c/33736ff5e7c97d3348ce812e8bd2e125d840743c ↗
- https://git.kernel.org/stable/c/0e857185591fe79934427c9c0c1c31dc776be134 ↗
- https://git.kernel.org/stable/c/47a5116e56a6b6fe1e909f244e39cd0fc26ceee4 ↗