net: inet6: do not leave a dangling sk pointer in inet6_create()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · < f44fceb71d72d29fb00e0ac84cdf9c081b03cd06| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
net: inet6: do not leave a dangling sk pointer in inet6_create()
sock_init_data() attaches the allocated sk pointer to the provided sock object. If inet6_create() fails later, the sk object is released, but the sock object retains the dangling sk pointer, which may cause use-after-free later.
Clear the sock sk pointer on error.
From the CVE record · Linux
In the Linux kernel, inet6_create() can leave a dangling socket pointer if it fails after attaching an allocated sk object. This may cause a later use-after-free; the input does not specify how an attacker could trigger it or whether access or user interaction is required.
Engineers running the Linux kernel should check their versions; affected versions are not specified in the input.