Lucene search

K
cvelistLinuxCVELIST:CVE-2021-46973
HistoryFeb 27, 2024 - 6:47 p.m.

CVE-2021-46973 net: qrtr: Avoid potential use after free in MHI send

2024-02-2718:47:07
Linux
www.cve.org
vulnerability
linux kernel
qrtr
mhi send
use after free

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

net: qrtr: Avoid potential use after free in MHI send

It is possible that the MHI ul_callback will be invoked immediately
following the queueing of the skb for transmission, leading to the
callback decrementing the refcount of the associated sk and freeing the
skb.

As such the dereference of skb and the increment of the sk refcount must
happen before the skb is queued, to avoid the skb to be used after free
and potentially the sk to drop its last refcount…

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/qrtr/mhi.c"
    ],
    "versions": [
      {
        "version": "6e728f321393",
        "lessThan": "48ec949ac979",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6e728f321393",
        "lessThan": "ea474054c2cc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6e728f321393",
        "lessThan": "03c649dee8b1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6e728f321393",
        "lessThan": "47a017f33943",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "net/qrtr/mhi.c"
    ],
    "versions": [
      {
        "version": "5.8",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.8",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.35",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.11.19",
        "lessThanOrEqual": "5.11.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.2",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2021-46973