CVE-2025-38006

net: mctp: Don't access ifa_index when missing

State
Published
Severity
Not scored
Published
Jun 18, 2025
Updated
Oct 30, 2026
Reserved
Apr 16, 2025

Read the record on cve.org

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

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 583be982d93479ea3d85091b0fd0b01201ede87d to before 8ef7b3f0db69e2f4a80be351f6aee9a4c2332ef9Affected
  • 583be982d93479ea3d85091b0fd0b01201ede87d to before d22efcd246a7688599eefcf8e5c7985a3854ef5dAffected
  • 583be982d93479ea3d85091b0fd0b01201ede87d to before acab78ae12c7fefb4f3bfe22e00770a5faa42724Affected
  • 583be982d93479ea3d85091b0fd0b01201ede87d to before d4d1561d17eb72908e4489c0900d96e0484fac20Affected
  • 583be982d93479ea3d85091b0fd0b01201ede87d to before 24fa213dffa470166ec014f979f36c6ff44afb45Affected
  • 583be982d93479ea3d85091b0fd0b01201ede87d to before f11cf946c0a92c560a890d68e4775723353599e1Affected
LinuxLinux
  • 5.15Affected
  • before 5.15Not affected
  • 5.15.203 through 5.15.*Not affected
  • 6.1.191 through 6.1.*Not affected
  • 6.6.92 through 6.6.*Not affected
  • 6.12.30 through 6.12.*Not affected
  • 6.14.8 through 6.14.*Not affected
  • 6.15 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.