Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47520
HistoryMay 24, 2024 - 3:15 p.m.

CVE-2021-47520

2024-05-2415:15:14
CWE-416
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
26
linux
kernel
vulnerability
fix
can_frame
use after free
nvd

7.8 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%

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

can: pch_can: pch_can_rx_normal: fix use after free

After calling netif_receive_skb(skb), dereferencing skb is unsafe.
Especially, the can_frame cf which aliases skb memory is dereferenced
just after the call netif_receive_skb(skb).

Reordering the lines solves the issue.

Affected configurations

Vulners
NVD
Node
linuxlinux_kernelRange2.6.374.4.295
OR
linuxlinux_kernelRange4.5.04.9.293
OR
linuxlinux_kernelRange4.10.04.14.258
OR
linuxlinux_kernelRange4.15.04.19.221
OR
linuxlinux_kernelRange4.20.05.4.165
OR
linuxlinux_kernelRange5.5.05.10.85
OR
linuxlinux_kernelRange5.11.05.15.8
OR
linuxlinux_kernelRange5.16.0

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/can/pch_can.c"
    ],
    "versions": [
      {
        "version": "b21d18b51b31",
        "lessThan": "bafe343a885c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "3a3c46e2eff0",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "affbad02bf80",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "3e193ef4e0a3",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "abb4eff3dcd2",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "703dde112021",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "6c73fc931658",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "b21d18b51b31",
        "lessThan": "94cddf1e9227",
        "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/net/can/pch_can.c"
    ],
    "versions": [
      {
        "version": "2.6.37",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "2.6.37",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.4.295",
        "lessThanOrEqual": "4.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.9.293",
        "lessThanOrEqual": "4.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.14.258",
        "lessThanOrEqual": "4.14.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "4.19.221",
        "lessThanOrEqual": "4.19.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.165",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.85",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.8",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

7.8 High

CVSS3

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

LOW

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%