ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 122ff243f5f104194750ecbc76d5946dd1eec934 · < a7f4eefb6e1458431eef9fa20fb363320d185f76| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv4: free net->ipv4.sysctl_local_reserved_ports after unregister_net_sysctl_table()
ipv4_sysctl_exit_net() is currently freeing net->ipv4.sysctl_local_reserved_ports too soon.
Only after unregister_net_sysctl_table() we can be sure no threads can possibly use the sysctls, including /proc/sys/net/ipv4/ip_local_reserved_ports.
From the CVE record · Linux
The Linux kernel frees IPv4 reserved-port sysctl data before unregistering the sysctl table, leaving a window in which a thread could still use the freed data. A local attacker able to access the affected sysctl could potentially trigger a use-after-free; the input does not specify authentication requirements or user interaction.
Engineers running the Linux kernel should check their installations; affected versions are not specified.