{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2026-98911",
  "modified": "2026-10-27T05:30:01Z",
  "upstream": [
    "CVE-2026-98911"
  ],
  "published": "2026-10-23T11:55:49Z",
  "summary": "dpaa2-switch: fix the error path in dpaa2_switch_rx()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ndpaa2-switch: fix the error path in dpaa2_switch_rx()\n\nIn case of an error in dpaa2_switch_rx(), the dpaa2_switch_free_fd()\nfunction is called in order to free the FD. This is incorrect since the\ndpaa2_switch_free_fd() is intended to be used on Tx frame descriptors,\nmeaning that it expects in the software annotation area of the FD data\nto find a valid skb pointer on which to call dev_kfree_skb().\n\nFix this by extracting the dma_unmap_page() from\ndpaa2_switch_build_linear_skb() directly into the dpaa2_switch_rx()\nfunction. This allows us to directly use free_pages() in case of an\nerror before an SKB was created and kfree_skb() afterwards.",
  "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-98911"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/791068c962469af0090e1a1ee63657fb9eef40db"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/ee54f8d7e642c44cfcc2dcb390b4c50e145d81b8"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/259ad6093204b999d41e7e6d0ad90ef9a71a44ab"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/f4ceb8e3d6d5becb4cda7a7098a8638e18c835a1"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/fa232b4496cb59503ae5108c756cbe10e59b0bc3"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/74c1c9f5c0c30bbd0c2cf87b6e3507e7ea46c13d"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-10-26T07:06:18Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 7.5,
      "cvss_v3_severity": "High",
      "scenario": "AV:A - An adjacent Ethernet peer can send an oversized or malformed frame to the trapped STP address 01:80:c2:00:00:00; dpaa2_switch_port_trap_mac_addr() redirects it through dpaa2_switch_poll() and dpaa2_switch_store_consume() to dpaa2_switch_rx().\nAC:H - The peer controls frame contents and length but not the resulting FD format directly; the bad cleanup requires a non-single FD under the target's frame-length and page-pool configuration, a surviving runt, allocation failure, or invalid hardware FLC metadata.\nPR:N - The default STP ACL trap accepts link-layer frames without authentication, and the DPIO callback and NAPI receive path perform no credential or capability check before calling dpaa2_switch_rx().\nUI:N - Once the switch port and control interface are operating, receipt of the peer's trapped frame schedules NAPI and invokes dpaa2_switch_rx() automatically, without any victim action.\nS:U - dpaa2_switch_rx() and the erroneous dpaa2_switch_free_fd() cleanup both execute within the host kernel and do not cross a VM, IOMMU, or other security-authority boundary.\nC:H - dpaa2_switch_free_fd() interprets an RX page's opaque software-annotation word as an skb pointer, and skb_tail_pointer() and skb teardown then follow fields through that unrelated address, permitting reads of unintended kernel objects.\nI:H - dev_kfree_skb() can decrement the bogus object's users field and release or free pointers obtained from it, allowing wrong-object refcount changes, invalid frees, and allocator corruption capable of control-flow compromise.\nA:H - The bogus skb pointer can fault immediately in skb_tail_pointer() or during dev_kfree_skb() teardown from the NAPI receive path, causing a kernel oops or panic."
    }
  }
}
