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

CVE-2024-27417
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.24 % · percentile 15 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Analyzed

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.

Weaknesses (CWE)

  • CWE-401 — Missing Release of Memory after Effective Lifetime

References

Scores

VersionScoreVectorScored by
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 < 9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132 ; affected 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 < 810fa7d5e5202fcfb22720304b755f1bdfd4c174 ; affected 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 < 8a54834c03c30e549c33d5da0975f3e1454ec906 ; affected 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 < 1b0998fdd85776775d975d0024bca227597e836a ; affected 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 < 44112bc5c74e64f28f5a9127dc34066c7a09bd0f ; affected 6ecf4c37eb3e89b0832c9616089a5cdca3747da7 < 33a1b6bfef6def2068c8703403759024ce17053e
Linux · Linuxaffected 4.20 ; unaffected 0 < 4.20 ; unaffected 5.4.271 ≤ 5.4.* ; unaffected 5.10.212 ≤ 5.10.* ; unaffected 5.15.151 ≤ 5.15.* ; unaffected 6.1.81 ≤ 6.1.*

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD