CVE-2024-27417

ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()

No CVSS score yet EPSS 0.24%

Published 17 May 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-27417

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-27417 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

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.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.1% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 24 May 2024):

Exploitation
none: CISA did not find evidence of exploitation or a public proof of concept
Automatable
no: each attack takes manual steps
Technical impact
partial: limited control or limited data

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 810fa7d5e5202fcfb22720304b755f1bdfd4c174
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 8a54834c03c30e549c33d5da0975f3e1454ec906
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 1b0998fdd85776775d975d0024bca227597e836a
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 44112bc5c74e64f28f5a9127dc34066c7a09bd0f
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 33a1b6bfef6def2068c8703403759024ce17053e
affected from 6ecf4c37eb3e89b0832c9616089a5cdca3747da7, before 10bfd453da64a057bcfd1a49fb6b271c48653cdb
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
unaffected from 5.4.271 up to and including 5.4.*
unaffected from 5.10.212 up to and including 5.10.*
unaffected from 5.15.151 up to and including 5.15.*
unaffected from 6.1.81 up to and including 6.1.*
unaffected from 6.6.21 up to and including 6.6.*
unaffected from 6.7.9 up to and including 6.7.*
unaffected 6.8 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-27417 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-27417

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2024-27417
trivy image --scanners vuln IMAGE | grep CVE-2024-27417

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2024-27417 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.