{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98555",
  "modified": "2026-10-25T05:30:01Z",
  "upstream": [
    "CVE-2026-98555"
  ],
  "published": "2026-10-18T15:22:13Z",
  "summary": "llc: fix skb UAF and leaks on llc_mac_hdr_init() failure",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nllc: fix skb UAF and leaks on llc_mac_hdr_init() failure\n\nIn llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr(), if llc_mac_hdr_init()\nfails, kfree_skb(skb) is called instead of kfree_skb(nskb). This leaks\nthe newly allocated nskb, reads from the freed skb via LLC_I_GET_NR(pdu),\nand double-frees skb when llc_conn_state_process() drops its reference.\n\nIn llc_sap_action_send_xid_r() and llc_sap_action_send_test_r(), nskb is\nleaked if llc_mac_hdr_init() returns an error.\n\nFree nskb in all three error paths.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"
    }
  ],
  "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": "6.1.189",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2026-98555"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fec0fe6838a7f45175667701fb51abb23a6ffb1e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/b859ba18b5a1067f71db5618c6a4a70d55fa308b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/8b855b645841b5a04e20339a22bb6d593c9b790d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d360b31f1a3666579422872aa7d1a751e20b76f9"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/060f827aa3dc47939ee306da715cd6700d129616"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/41dcae82bece9f106b4dff0ee777bba8d157c8a8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/cb3528ad8bb46fa6252f5d14ced7febddc18515d"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/72f9dd522f8d6c5a00be9695c7bb74631eb5069e"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-24T14:11:00Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.5,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - An adjacent peer can send an IEEE 802.2 LLC2 I-format response with F=1 and N(S)=vR; llc_rcv() through llc_conn_handler() and llc_conn_state_process() reaches the patched action in AWAIT or AWAIT_REJ. LLC2 frames require the same VLAN or Layer-2 domain.\nAC:H - The peer can establish via SABME and withhold replies until the poll timer creates AWAIT, but the UAF also requires llc_mac_hdr_init() to fail. On the relevant VLAN path this requires skb_cow_head() to return -ENOMEM or an admin-driven device/headroom change, which the Layer-2 peer cannot reliably control.\nPR:N - llc_rcv() and llc_conn_handler() perform no peer authentication; a peer can send SABME and the triggering I response without local credentials. CAP_NET_RAW in llc_ui_create() constrains the host process creating the listener, not the remote peer.\nUI:N - Once the LLC listener exists, llc_conn_handler() creates and drives the incoming socket before userspace accept(), while the peer supplies the SABME, waits for the timer state, and sends the triggering I response. No further victim action is required.\nS:U - llc_conn_ac_resend_i_xxx_x_set_0_or_send_rr() corrupts an skb owned by the host LLC stack, and all resulting effects remain within the same host-kernel security authority.\nC:H - The erroneous kfree_skb(skb) leaves pdu dangling, after which LLC_I_GET_NR(pdu) reads the freed object and llc_conn_state_process() continues using the same skb. Reuse of that slab object can expose attacker-influenced kernel memory.\nI:H - After the action frees the incoming skb, llc_conn_state_process() later calls kfree_skb(skb) again. Reallocation between these operations permits freed-object manipulation and allocator corruption capable of write or control-flow impact.\nA:H - The use-after-free culminates in a second kfree_skb() of the received frame in llc_conn_state_process(), which can cause a kernel oops, allocator failure, or panic."
    }
  }
}
