Lucene search

K
cvelistLinuxCVELIST:CVE-2021-47616
HistoryJun 19, 2024 - 2:58 p.m.

CVE-2021-47616 RDMA: Fix use-after-free in rxe_queue_cleanup

2024-06-1914:58:03
Linux
www.cve.org
10
linux kernel
rdma
use-after-free
vulnerability
fix
uaf bug
error handling
rxe_queue_cleanup

EPSS

0

Percentile

9.0%

In the Linux kernel, the following vulnerability has been resolved:

RDMA: Fix use-after-free in rxe_queue_cleanup

On error handling path in rxe_qp_from_init() qp->sq.queue is freed and
then rxe_create_qp() will drop last reference to this object. qp clean up
function will try to free this queue one time and it causes UAF bug.

Fix it by zeroing queue pointer after freeing queue in rxe_qp_from_init().

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/infiniband/sw/rxe/rxe_qp.c"
    ],
    "versions": [
      {
        "version": "514aee660df4",
        "lessThan": "acb53e47db1f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "514aee660df4",
        "lessThan": "84b01721e804",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/infiniband/sw/rxe/rxe_qp.c"
    ],
    "versions": [
      {
        "version": "5.15",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.15",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.10",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

9.0%