CVE-2026-98812

net/mctp: publish the mctp_dev only after it is initialised

Description

In the Linux kernel, the following vulnerability has been resolved: net/mctp: publish the mctp_dev only after it is initialised mctp_add_dev() links the new mctp_dev into dev->mctp_ptr before mdev->dev is assigned, so a reader that picks the device up in that window dereferences a net_device pointer that is still NULL: KASAN: null-ptr-deref in range [0x00000000000000b0-0x00000000000000b7] Call Trace: <TASK> ? __pfx_mctp_sendmsg (./include/linux/sockptr.h:49) ? __pfx_mctp_dst_output (net/mctp/route.c:41) ? selinux_socket_sendmsg (security/selinux/hooks.c:5278) ____sys_sendmsg (net/socket.c:775 (discriminator 1) net/socket.c:790 (discriminator 1) net/socket.c:2684 (discriminator 1)) ? __pfx_____sys_sendmsg (net/socket.c:1131) ? __pfx_copy_msghdr_from_user (net/socket.c:2590) ? update_cfs_rq_load_avg (kernel/sched/fair.c:5478) ___sys_sendmsg (net/socket.c:2738) ? __pfx____sys_sendmsg (net/socket.c:2625) ? perf_event_task_tick (./include/linux/rcupdate.h:838) ? sched_tick (kernel/sched/core.c:5818) ? clockevents_program_event (kernel/time/clockevents.c:372) ? fdget (./include/linux/rcupdate.h:873 fs/file.c:1100) __sys_sendmsg (net/socket.c:2770) ? __pfx___sys_sendmsg (net/socket.c:2751) do_syscall_64 (arch/x86/entry/syscall_64.c:63) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121) </TASK> Fix by publishing only once the object is fully initialised: __mctp_dev_get() runs under rcu_read_lock() only and hands this object to readers as soon as mctp_ptr is assigned, so they must never observe mdev->dev == NULL.

Key facts

Published
18 Oct 2026
Last changed
30 Oct 2026
Assigned by
Linux
EPSS
0.18% likely to be exploited in the next 30 days, higher than 7.662% of CVEs (scores for 18 Nov 2026)

Historical context and remediation

This reference retains the original CVE publication date. A recent record update does not mean a new attack occurred.

No separately sourced impact summary is available on this page yet. Consult the description, version data and dated exploitation evidence.

No explicit remediation statement is available on this page yet. Consult the original record and vendor references before choosing a fix.

Version statuses below come from the CNA. An “unaffected” version is not necessarily a currently supported release or proof of a patch date. EPSS is a dated risk estimate, not a count of historical attacks.

Read the original CVE record.

Affected products

VendorProductVersions
LinuxLinux
  • Default status: unaffected
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding 58a270b5ecd8629114a4754d642bad6a33bef493 (affected)
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding fdf09d0fa2fb639950bede185d22689f68df140e (affected)
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding 288ef37e0c463192dbb6436e61cdc07ce666dcb9 (affected)
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding af6e4f931afc2d670d133aa2bedc8b6e3753c618 (affected)
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding 63120572edde85bb2b70b0ed4d4817ed52247613 (affected)
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding f37f42e6e039a48c2dcf6c079b9f7fbc864ab7ef (affected)
  • 583be982d93479ea3d85091b0fd0b01201ede87d up to but excluding aadf655e8ea9a8ffa24bb8d69f504572e8d18181 (affected)
LinuxLinux
  • Default status: affected
  • 5.15 (affected)
  • 0 up to but excluding 5.15 (unaffected)
  • 5.15.224 up to and including 5.15.* (unaffected)
  • 6.1.191 up to and including 6.1.* (unaffected)
  • 6.6.160 up to and including 6.6.* (unaffected)
  • 6.12.113 up to and including 6.12.* (unaffected)
  • 6.18.56 up to and including 6.18.* (unaffected)
  • 7.2.10 up to and including 7.2.* (unaffected)
  • 7.3 up to and including * (unaffected)

Timeline

  1. 18 Oct 2026 Published

References