# CVE-2024-27417: ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2024-05-17T11:51:07.803Z
- Modified: 2026-06-17T07:19:52.270Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132; from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 810fa7d5e5202fcfb22720304b755f1bdfd4c174; from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 8a54834c03c30e549c33d5da0975f3e1454ec906; from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 1b0998fdd85776775d975d0024bca227597e836a; from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 44112bc5c74e64f28f5a9127dc34066c7a09bd0f; from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 33a1b6bfef6def2068c8703403759024ce17053e; from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 before 10bfd453da64a057bcfd1a49fb6b271c48653cdb; 4.20 (not affected: before 4.20; from 5.4.271 up to 5.4.*; from 5.10.212 up to 5.10.*; from 5.15.151 up to 5.15.*; from 6.1.81 up to 6.1.*; from 6.6.21 up to 6.6.*; from 6.7.9 up to 6.7.*; from 6.8 up to *)
- linux linux_kernel: from 4.20 before 5.4.271; from 5.5 before 5.10.212; from 5.11 before 5.15.151; from 5.16 before 6.1.81; from 6.2 before 6.6.21; from 6.7 before 6.7.9; 6.8
- debian debian_linux: 10.0

## References

- <https://git.kernel.org/stable/c/9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132> (patch)
- <https://git.kernel.org/stable/c/810fa7d5e5202fcfb22720304b755f1bdfd4c174> (patch)
- <https://git.kernel.org/stable/c/8a54834c03c30e549c33d5da0975f3e1454ec906> (patch)
- <https://git.kernel.org/stable/c/1b0998fdd85776775d975d0024bca227597e836a> (patch)
- <https://git.kernel.org/stable/c/44112bc5c74e64f28f5a9127dc34066c7a09bd0f> (patch)
- <https://git.kernel.org/stable/c/33a1b6bfef6def2068c8703403759024ce17053e> (patch)
- <https://git.kernel.org/stable/c/10bfd453da64a057bcfd1a49fb6b271c48653cdb> (patch)
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html> (third-party-advisory)

## Sources

- CVE List: [CVE-2024-27417](https://www.cve.org/CVERecord?id=CVE-2024-27417), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-27417](https://nvd.nist.gov/vuln/detail/CVE-2024-27417), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-27417 · Whole record: https://cve.day/CVE-2024-27417.json · Rebuilt by cve.day 2026-11-25T22:58:40.497Z
