UnratedFix available
ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
Type: advisorySources: OSV
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.10.212, 5.15.151, 5.4.271, 6.1.81, 6.6.21, 6.7.9
- CVEs
- CVE-2024-27417
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 02:16 UTC · Revision 1
Source evidence
ipv6: fix potential "struct net" leak in inet6_rtm_getaddr()
core-osv · Original sourcePublished 17 May 2024, 11:51 UTC
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.
osv:CVE-2024-27417
Kernel
Fixed versions: 5.4.271, 5.10.212, 5.15.151, 6.1.81, 6.6.21, 6.7.9
Complete source record
{
"id": "d4c5b9e6bd982e75b553b476b6a40b4e599c9370d0b4adf58a0248ee6245ab58",
"url": "https://osv.dev/vulnerability/CVE-2024-27417",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ipv6: fix potential \"struct net\" leak in inet6_rtm_getaddr()",
"summary": "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.",
"evidence": "osv:CVE-2024-27417",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.4.271",
"evidence": "/affected/1/ranges"
},
{
"value": "5.10.212",
"evidence": "/affected/1/ranges"
},
{
"value": "5.15.151",
"evidence": "/affected/1/ranges"
},
{
"value": "6.1.81",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.21",
"evidence": "/affected/1/ranges"
},
{
"value": "6.7.9",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2024-27417",
"aliases": [
"CVE-2024-27417"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "6ecf4c37eb3e89b0832c9616089a5cdca3747da7"
},
{
"fixed": "9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132"
},
{
"fixed": "810fa7d5e5202fcfb22720304b755f1bdfd4c174"
},
{
"fixed": "8a54834c03c30e549c33d5da0975f3e1454ec906"
},
{
"fixed": "1b0998fdd85776775d975d0024bca227597e836a"
},
{
"fixed": "44112bc5c74e64f28f5a9127dc34066c7a09bd0f"
},
{
"fixed": "33a1b6bfef6def2068c8703403759024ce17053e"
},
{
"fixed": "10bfd453da64a057bcfd1a49fb6b271c48653cdb"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27417.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "4.20.0"
},
{
"fixed": "5.4.271"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.5.0"
},
{
"fixed": "5.10.212"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.11.0"
},
{
"fixed": "5.15.151"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.81"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.21"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.7.9"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-27417.json"
}
}
],
"modified": "2026-10-28T02:30:49.040845356Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/10bfd453da64a057bcfd1a49fb6b271c48653cdb",
"https://git.kernel.org/stable/c/1b0998fdd85776775d975d0024bca227597e836a",
"https://git.kernel.org/stable/c/33a1b6bfef6def2068c8703403759024ce17053e",
"https://git.kernel.org/stable/c/44112bc5c74e64f28f5a9127dc34066c7a09bd0f",
"https://git.kernel.org/stable/c/810fa7d5e5202fcfb22720304b755f1bdfd4c174",
"https://git.kernel.org/stable/c/8a54834c03c30e549c33d5da0975f3e1454ec906",
"https://git.kernel.org/stable/c/9d4ffb5b9d879a75e4f7460e8b10e756b4dfb132",
"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27417.json",
"https://nvd.nist.gov/vuln/detail/CVE-2024-27417",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/27xxx/CVE-2024-27417.json"
}
},
"related_cves": [
{
"value": "CVE-2024-27417",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 517288,
"published_at": "2024-05-17T11:51:07.803+00:00"
}