Lucene search

K
cve416baaa9-dc9f-4396-8d5f-8c081fb06d67CVE-2021-47048
HistoryFeb 28, 2024 - 9:15 a.m.

CVE-2021-47048

2024-02-2809:15:40
416baaa9-dc9f-4396-8d5f-8c081fb06d67
web.nvd.nist.gov
703
cve-2021-47048
linux kernel
spi
zynqmp
gqspi
use-after-free
vulnerability
security fix

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

spi: spi-zynqmp-gqspi: fix use-after-free in zynqmp_qspi_exec_op

When handling op->addr, it is using the buffer “tmpbuf” which has been
freed. This will trigger a use-after-free KASAN warning. Let’s use
temporary variables to store op->addr.val and op->cmd.opcode to fix
this issue.

Affected configurations

Vulners
Node
linuxlinux_kernelRange5.105.10.37
OR
linuxlinux_kernelRange5.11.05.11.21
OR
linuxlinux_kernelRange5.12.05.12.4
OR
linuxlinux_kernelRange5.13.0
VendorProductVersionCPE
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
linuxlinux_kernel*cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
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/spi/spi-zynqmp-gqspi.c"
    ],
    "versions": [
      {
        "version": "1c26372e5aa9",
        "lessThan": "1231279389b5",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1c26372e5aa9",
        "lessThan": "d67e0d6bd92e",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1c26372e5aa9",
        "lessThan": "23269ac9f123",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "1c26372e5aa9",
        "lessThan": "a2c5bedb2d55",
        "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/spi/spi-zynqmp-gqspi.c"
    ],
    "versions": [
      {
        "version": "5.10",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.10",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.37",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.11.21",
        "lessThanOrEqual": "5.11.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.12.4",
        "lessThanOrEqual": "5.12.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.13",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.8 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%