CVE-2024-27417Published May 17, 2024 · May 17Updated Oct 28
ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 · < 33a1b6bfef6def2068c8703403759024ce17053e| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
It seems that if userspace provides a correct IFA_TARGET_NETNSID value but no IFA_ADDRESS and IFA_LOCAL attributes, inet6_rtm_getaddr() returns -EINVAL with an elevated "struct net" refcount.
From the CVE record · Linux
The Linux kernel’s inet6_rtm_getaddr() can leak a struct net reference. This occurs when local userspace supplies a valid IFA_TARGET_NETNSID but omits both IFA_ADDRESS and IFA_LOCAL; authentication requirements are not specified.
Engineers running the Linux kernel should check their versions against the vendor advisory; affected versions are not specified.