{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98812",
  "modified": "2026-10-19T04:30:01Z",
  "upstream": [
    "CVE-2026-98812"
  ],
  "published": "2026-10-18T15:54:51Z",
  "summary": "net/mctp: publish the mctp_dev only after it is initialised",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nnet/mctp: publish the mctp_dev only after it is initialised\n\nmctp_add_dev() links the new mctp_dev into dev->mctp_ptr before mdev->dev\nis assigned, so a reader that picks the device up in that window\ndereferences a net_device pointer that is still NULL:\n\nKASAN: null-ptr-deref in range [0x00000000000000b0-0x00000000000000b7]\nCall Trace:\n <TASK>\n ? __pfx_mctp_sendmsg (./include/linux/sockptr.h:49)\n ? __pfx_mctp_dst_output (net/mctp/route.c:41)\n ? selinux_socket_sendmsg (security/selinux/hooks.c:5278)\n ____sys_sendmsg (net/socket.c:775 (discriminator 1) net/socket.c:790\n (discriminator 1) net/socket.c:2684 (discriminator 1))\n ? __pfx_____sys_sendmsg (net/socket.c:1131)\n ? __pfx_copy_msghdr_from_user (net/socket.c:2590)\n ? update_cfs_rq_load_avg (kernel/sched/fair.c:5478)\n ___sys_sendmsg (net/socket.c:2738)\n ? __pfx____sys_sendmsg (net/socket.c:2625)\n ? perf_event_task_tick (./include/linux/rcupdate.h:838)\n ? sched_tick (kernel/sched/core.c:5818)\n ? clockevents_program_event (kernel/time/clockevents.c:372)\n ? fdget (./include/linux/rcupdate.h:873 fs/file.c:1100)\n __sys_sendmsg (net/socket.c:2770)\n ? __pfx___sys_sendmsg (net/socket.c:2751)\n do_syscall_64 (arch/x86/entry/syscall_64.c:63)\n entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:121)\n </TASK>\n\nFix by publishing only once the object is fully initialised:\n__mctp_dev_get() runs under rcu_read_lock() only and hands\nthis object to readers as soon as mctp_ptr is assigned, so\nthey must never observe mdev->dev == NULL.",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.47-1+rpt4"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-2712",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v6",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v7l",
            "binary_version": "1:6.1.47-1+rpt4"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi3-rpi-v8",
            "binary_version": "1:6.1.47-1+rpt4"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.47-1+rpt4": {
            "linux_commit": "655fc658a15ae7a6f37103754adb39ba52a9a14e",
            "upstream_version": "6.1.47",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": null,
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-98812"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/af6e4f931afc2d670d133aa2bedc8b6e3753c618"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/63120572edde85bb2b70b0ed4d4817ed52247613"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f37f42e6e039a48c2dcf6c079b9f7fbc864ab7ef"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/aadf655e8ea9a8ffa24bb8d69f504572e8d18181"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-18T15:54:51Z"
  }
}
