CVE-2025-38006

net: mctp: Don't access ifa_index when missing

No CVSS score yet EPSS 0.21%

Published 18 Jun 2025 Updated 30 Oct 2026 CNA: Linux

Check your servers for CVE-2025-38006

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-2025-38006 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:

net: mctp: Don't access ifa_index when missing

In mctp_dump_addrinfo, 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 ifa_index, so existing userspace programs expecting to dump MCTP addresses must already be passing a valid ifa_index value (either 0 or a real index).

BUG: KMSAN: uninit-value in mctp_dump_addrinfo+0x208/0xac0 net/mctp/device.c:128 mctp_dump_addrinfo+0x208/0xac0 net/mctp/device.c:128 rtnl_dump_all+0x3ec/0x5b0 net/core/rtnetlink.c:4380 rtnl_dumpit+0xd5/0x2f0 net/core/rtnetlink.c:6824 netlink_dump+0x97b/0x1690 net/netlink/af_netlink.c:2309

Exploitation

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

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from 583be982d93479ea3d85091b0fd0b01201ede87d, before 8ef7b3f0db69e2f4a80be351f6aee9a4c2332ef9
affected from 583be982d93479ea3d85091b0fd0b01201ede87d, before d22efcd246a7688599eefcf8e5c7985a3854ef5d
affected from 583be982d93479ea3d85091b0fd0b01201ede87d, before acab78ae12c7fefb4f3bfe22e00770a5faa42724
affected from 583be982d93479ea3d85091b0fd0b01201ede87d, before d4d1561d17eb72908e4489c0900d96e0484fac20
affected from 583be982d93479ea3d85091b0fd0b01201ede87d, before 24fa213dffa470166ec014f979f36c6ff44afb45
affected from 583be982d93479ea3d85091b0fd0b01201ede87d, before f11cf946c0a92c560a890d68e4775723353599e1
Other versions: unaffected
Linux
affected 5.15
unaffected before 5.15
unaffected from 5.15.203 up to and including 5.15.*
unaffected from 6.1.191 up to and including 6.1.*
unaffected from 6.6.92 up to and including 6.6.*
unaffected from 6.12.30 up to and including 6.12.*
unaffected from 6.14.8 up to and including 6.14.*
unaffected 6.15 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-2025-38006 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-38006

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-2025-38006
trivy image --scanners vuln IMAGE | grep CVE-2025-38006

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-2025-38006 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.