CVE-2025-38006

Source
https://cve.org/CVERecord?id=CVE-2025-38006
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38006.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2025-38006
Downstream
Related
Published
2025-06-18T09:28:17.773Z
Modified
2026-05-15T11:53:26.485544239Z
Summary
net: mctp: Don't access ifa_index when missing
Details

In the Linux kernel, the following vulnerability has been resolved:

net: mctp: Don't access ifa_index when missing

In mctpdumpaddrinfo, ifa_index can be used to filter interfaces, but only when the struct ifaddrmsg is provided. Otherwise it will be comparing to uninitialised memory - reproducible in the syzkaller case from dhcpd, or busybox "ip addr show".

The kernel MCTP implementation has always filtered by ifaindex, so existing userspace programs expecting to dump MCTP addresses must already be passing a valid ifaindex value (either 0 or a real index).

BUG: KMSAN: uninit-value in mctpdumpaddrinfo+0x208/0xac0 net/mctp/device.c:128 mctpdumpaddrinfo+0x208/0xac0 net/mctp/device.c:128 rtnldumpall+0x3ec/0x5b0 net/core/rtnetlink.c:4380 rtnldumpit+0xd5/0x2f0 net/core/rtnetlink.c:6824 netlinkdump+0x97b/0x1690 net/netlink/af_netlink.c:2309

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38006.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.15.0
Fixed
5.15.203
Type
ECOSYSTEM
Events
Introduced
5.16.0
Fixed
6.6.92
Type
ECOSYSTEM
Events
Introduced
6.7.0
Fixed
6.12.30
Type
ECOSYSTEM
Events
Introduced
6.13.0
Fixed
6.14.8

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2025-38006.json"