{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-99401",
  "modified": "2026-11-23T05:30:01Z",
  "upstream": [
    "CVE-2026-99401"
  ],
  "published": "2026-11-19T15:08:37Z",
  "summary": "rtnetlink: wait for RCU readers in rtnl_link_unregister()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nrtnetlink: wait for RCU readers in rtnl_link_unregister()\n\nrtnl_link_ops_get() finds ops on link_ops under rcu_read_lock() and only\nthen takes ops->srcu. rtnl_link_unregister() unlinks ops, then calls\nsynchronize_srcu() and cleanup_srcu_struct() without first waiting for\nRCU readers. A reader that found ops before list_del_rcu() and has not yet\ntaken ops->srcu is not waited for.\n\nSuch a reader then locks a cleaned-up srcu_struct and keeps using ops\nafter the module that owns it is gone. rtnl_newlink() and\nrtnl_dump_ifinfo() both look up ops without RTNL, the latter for any\nuser that dumps links filtered by kind.\n\nWith delays added between the lookup and srcu_read_lock() in\nrtnl_link_ops_get(), and before rtnl_link_ops_put() in\nrtnl_dump_ifinfo(), running \"ip link show type dummy\" alongside\n\"rmmod dummy\" on a KASAN kernel gives:\n\n  BUG: KASAN: vmalloc-out-of-bounds in __srcu_read_unlock+0x57/0x70\n  Read of size 8 at addr ffffffffc02ff318 by task ip/147\n  Call Trace:\n   __srcu_read_unlock+0x57/0x70\n   rtnl_dump_ifinfo.cold+0x30/0x3b\n   rtnl_dumpit+0x7a/0x1b0\n   netlink_dump+0x486/0x11b0\n   __netlink_dump_start+0x661/0x910\n   rtnetlink_rcv_msg+0x611/0x9e0\n   netlink_rcv_skb+0x126/0x380\n   netlink_unicast+0x605/0x830\n   netlink_sendmsg+0x6d0/0xbb0\n   __sys_sendto+0x335/0x3a0\n\nCall synchronize_rcu() before synchronize_srcu(), as\nrtnl_af_unregister() already does. This should be enough because\nrtnl_link_ops_get() is the only RCU walker of link_ops, and it takes\nops->srcu before rcu_read_unlock(), so every reader that found ops is\ncovered by synchronize_srcu() once the RCU grace period ends. The extra\ngrace period only costs time at module unload.\n\nReaders and the writer were serialized by RTNL until link_ops got its\nown mutex, which is why the missing RCU wait did not matter before.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:13",
        "name": "linux"
      },
      "versions": [
        "1:6.18.29-1+rpt1",
        "1:6.18.33-1+rpt1",
        "1:6.18.34-1+rpt1",
        "1:6.18.39-1+rpt1",
        "1:6.18.50-1+rpt1",
        "1:6.18.60-1+rpt1"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-2712",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v6",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v7",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v8",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.29+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.29-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-2712",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v6",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v7",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v8",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.33+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.33-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-2712",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v6",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v7",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v8",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.34+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.34-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-2712",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v6",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v7",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v8",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.39+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.39-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-2712",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v6",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v7",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v8",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.50+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.50-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-2712",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v6",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v7",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v8",
            "binary_version": "1:6.18.60-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.18.60+rpt-rpi-v8-rt",
            "binary_version": "1:6.18.60-1+rpt1"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.18.29-1+rpt1": {
            "linux_commit": "66318c5b5cd8145a662303af12ed39ac07eb27cc",
            "upstream_version": "6.18.29",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.33-1+rpt1": {
            "linux_commit": "95b85bebbedcaedfa7ca79116ed38b7376fba412",
            "upstream_version": "6.18.33",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.34-1+rpt1": {
            "linux_commit": "c8c7494100e99ee05b11aaa4f0588a223a63d1af",
            "upstream_version": "6.18.34",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.39-1+rpt1": {
            "linux_commit": "60ea684a8ace97bb0db1a16e20753bdd6ab371ff",
            "upstream_version": "6.18.39",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.50-1+rpt1": {
            "linux_commit": "cff533aec2fa601846766b32ff57204e0a61bed7",
            "upstream_version": "6.18.50",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          },
          "1:6.18.60-1+rpt1": {
            "linux_commit": "0b41724521c9adf5399409d02aece6c1df0a4432",
            "upstream_version": "6.18.60",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.18.61"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-99401"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/9e3a6b707681a6291a410d1b7ce15840a9912a86"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ee636421740bc47e9d9e612ca7c9fa7dc5d17be1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3b70edea393de445255da6c706eebb823117a955"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-11-22T11:18:26Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.0,
      "cvss_v3_severity": "High",
      "scenario": "AV:L - rtnl_link_unregister() is reached from a link module's module_exit (dummy_cleanup_module() in the published repro) via delete_module(). The racing lookup is a local sendmsg of RTM_GETLINK with IFLA_INFO_KIND into rtnl_dump_ifinfo()\u2192rtnl_link_ops_get(), or RTM_NEWLINK into rtnl_newlink(). No remote protocol message carries that kind string or the unload.\nAC:H - The netlink lookup can be repeated, but rtnl_link_unregister() runs only on module exit or init failure. delete_module() requires capable(CAP_SYS_MODULE) in the init user namespace, which the dumper cannot get via unshare -Urn. Winning the gap between strcmp(ops->kind) and srcu_read_lock() in rtnl_link_ops_get() therefore depends on an administrator's rmmod, as in the \"ip link show type dummy\" repro.\nPR:L - rtnetlink_rcv_msg() skips the CAP_NET_ADMIN check for RTNL_KIND_GET, so a local user can dump links filtered by IFLA_INFO_KIND and enter rtnl_link_ops_get(). RTM_NEWLINK only needs netlink_net_capable(CAP_NET_ADMIN), which a user namespace has. Neither path grants the init-namespace CAP_SYS_MODULE that delete_module() demands.\nUI:N - The attacker opens a NETLINK_ROUTE socket and sends the RTM_GETLINK dump or RTM_NEWLINK themselves. The administrator rmmod that reaches rtnl_link_unregister() is the precondition already counted under AC.\nS:U - The use-after-free stays in the host kernel: __srcu_read_unlock() and rtnl_newlink() consume the unloaded module's rtnl_link_ops and embedded srcu_struct in the same security authority as the netlink socket.\nC:H - A reader that matched ops in rtnl_link_ops_get() but missed synchronize_srcu() still runs __srcu_read_unlock(), which loads ssp->sda from the module image after free_module() (KASAN read of 8 bytes at a module address). rtnl_newlink() also reads ops->policy and ops->maxtype in that window; reclaiming the image makes those loads a kernel read primitive.\nI:H - cleanup_srcu_struct() free_percpu()s ssp->sda without clearing ssp->srcu_ctrp, so the late __srcu_read_lock() this_cpu_inc()s freed percpu memory. rtnl_newlink() and rtnl_create_link() then call ops->validate, ops->setup/ops->alloc, and ops->newlink in the unloaded module, a control-flow hijack once that text is reused.\nA:H - Racing \"ip link show type dummy\" with \"rmmod dummy\" oopses in __srcu_read_unlock() from rtnl_dump_ifinfo() (KASAN vmalloc-out-of-bounds on the freed dummy module). Without KASAN, the same load from the unmapped module faults."
    }
  }
}
