Lucene search

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

CVE-2021-47521

2024-05-2415:15:14
CWE-416
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
27
linux kernel
use after free
vulnerability
can: sja1000 driver

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.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%

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

can: sja1000: fix use after free in ems_pcmcia_add_card()

If the last channel is not available then “dev” is freed. Fortunately,
we can just use “pdev->irq” instead.

Also we should check if at least one channel was set up.

Affected configurations

Vulners
NVD
Node
linuxlinux_kernelRange3.24.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/sja1000/ems_pcmcia.c"
    ],
    "versions": [
      {
        "version": "fd734c6f25ae",
        "lessThan": "cbd86110546f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "1dd5b819f7e4",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "c8718026ba28",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "ccf070183e46",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "1a295fea90e1",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "923f4dc5df67",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "474f9a8534f5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "fd734c6f25ae",
        "lessThan": "3ec6ca6b1a8e",
        "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/sja1000/ems_pcmcia.c"
    ],
    "versions": [
      {
        "version": "3.2",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "3.2",
        "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.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

5.1%