net: inet: do not leave a dangling sk pointer in inet_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < 691d6d816f93b2a1008c14178399061466e674ef| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: inet: do not leave a dangling sk pointer in inet_create()
sock_init_data() attaches the allocated sk object to the provided sock object. If inet_create() fails later, the sk object is freed, but the sock object retains the dangling pointer, which may create use-after-free later.
Clear the sk pointer in the sock object on error.
From the CVE record · Linux
In the Linux kernel, inet_create() can leave a dangling socket pointer if it fails after allocating and attaching an sk object. Later use of that socket may trigger a use-after-free; the input does not specify attacker access requirements or user interaction.
Engineers running Linux should check their kernel versions against the vendor advisory; affected versions are not specified in the input.