{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2025-22088",
  "modified": "2026-10-09T11:39:44Z",
  "upstream": [
    "CVE-2025-22088"
  ],
  "published": "2025-04-16T14:14:59Z",
  "summary": "RDMA/erdma: Prevent use-after-free in erdma_accept_newconn()",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nRDMA/erdma: Prevent use-after-free in erdma_accept_newconn()\n\nAfter the erdma_cep_put(new_cep) being called, new_cep will be freed,\nand the following dereference will cause a UAF problem. Fix this issue.",
  "severity": [
    {
      "type": "CVSS_V3",
      "score": "CVSS:3.1/AV:N/AC:L/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.134",
            "compiled_filter": false
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-22088"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/bc1db4d8f1b0dc480d7d745a60a8cc94ce2badd4"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/667a628ab67d359166799fad89b3c6909599558a"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/a114d25d584c14019d31dbf2163780c47415a187"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/78411a133312ce7d8a3239c76a8fd85bca1cc10f"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/7aa6bb5276d9fec98deb05615a086eeb893854ad"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/83437689249e6a17b25e27712fbee292e42e7855"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-08-05T12:19:11Z",
    "severity": {
      "source": "kernel CNA",
      "cvss_v3_score": 9.8,
      "cvss_v3_severity": "Critical",
      "scenario": "AV:N - The vulnerable function is the erdma iWARP CM passive-accept handler, driven entirely by remote TCP connections to the RDMA CM listening socket created by `erdma_create_listen()`; the child socket's TCP_ESTABLISHED transition invokes the inherited `erdma_cm_llp_state_change()` callback and queues the ACCEPT work. iWARP/MPA CM traffic is ordinary routable IPv4 TCP, so any host that can reach the erdma interface can drive this path.\nAC:L - The attacker fully controls the connection flood that reaches the code and the abort timing that makes `kernel_accept()` fail (upstream's own comment on the identical siw path attributes it to \"Connection already aborted by peer\"), and the same unbounded flood \u2014 each pending connection pinning a CEP, four work structs, and a socket until the MPA timeout \u2014 drives the GFP_KERNEL failures in `erdma_cm_alloc_work()`/`sock_create_lite()`. No condition beyond the attacker's influence is required.\nPR:N - `erdma_accept_newconn()` executes at the raw TCP accept stage, before MPA request/reply negotiation and before any CM upcall to userspace, so no authentication or authorization has occurred. An unauthenticated remote peer only needs to open TCP connections to the listening port.\nUI:N - The path is triggered purely by inbound TCP connections processed by the kernel workqueue; no action by any local user or administrator is needed beyond the RDMA service already listening.\nS:U - The corruption is confined to kernel heap memory managed by the same kernel security authority; no VM, IOMMU, or sandbox boundary is crossed.\nC:H - The use-after-free on `struct erdma_cep` lets an attacker who grooms the freed slab slot (trivially, via more connections) corrupt a reallocated kernel object, which per standard UAF assessment can be leveraged into arbitrary kernel memory disclosure.\nI:H - The dangling store writes 8 zero bytes at a fixed offset into a freed kmalloc object, giving a controllable-target write that can zero a pointer, length, or refcount in a sprayed victim object or clobber the SLUB freelist pointer \u2014 a primitive escalatable to arbitrary write and control-flow hijack.\nA:H - Even unexploited, the write into freed slab memory corrupts the allocator and adjacent objects, reliably producing a kernel oops or panic, and it can be triggered repeatedly by an unauthenticated remote attacker."
    }
  }
}
