net/handshake: restore destructor on submit failure
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net/handshake: restore destructor on submit failure
handshake_req_submit() replaces sk->sk_destruct but never restores it when submission fails before the request is hashed. handshake_sk_destruct() then returns early and the original destructor never runs, leaking the socket. Restore sk_destruct on the error path.
From the CVE record · Linux
The Linux kernel's net/handshake code can leak a socket if handshake_req_submit() fails before the request is hashed. The original socket destructor is not restored on that error path; the input does not specify attacker access or user-interaction requirements.
Engineers running the Linux kernel should check their systems; affected versions are not specified.