Lucene search

K
cveLinuxCVE-2021-47520
HistoryMay 24, 2024 - 3:15 p.m.

CVE-2021-47520

2024-05-2415:15:14
CWE-416
Linux
web.nvd.nist.gov
33
linux
kernel
vulnerability
fix
can_frame
use after free
nvd

CVSS3

7.8

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

AI Score

6.8

Confidence

Low

EPSS

0

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

Nvd
Vulners
Node
linuxlinux_kernelRange2.6.374.4.295
OR
linuxlinux_kernelRange4.54.9.293
OR
linuxlinux_kernelRange4.104.14.258
OR
linuxlinux_kernelRange4.154.19.221
OR
linuxlinux_kernelRange4.205.4.165
OR
linuxlinux_kernelRange5.55.10.85
OR
linuxlinux_kernelRange5.115.15.8
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*

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"
      }
    ]
  }
]

CVSS3

7.8

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

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

5.1%