Lucene search

K
cvelistLinuxCVELIST:CVE-2023-52687
HistoryMay 17, 2024 - 2:24 p.m.

CVE-2023-52687 crypto: safexcel - Add error handling for dma_map_sg() calls

2024-05-1714:24:48
Linux
www.cve.org
7
cve-2023-52687
crypto
safexcel
error handling
dma mapping
linux kernel
linux verification center
svace
static analysis

AI Score

6.5

Confidence

Low

EPSS

0

Percentile

15.5%

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

crypto: safexcel - Add error handling for dma_map_sg() calls

Macro dma_map_sg() may return 0 on error. This patch enables
checks in case of the macro failure and ensures unmapping of
previously mapped buffers with dma_unmap_sg().

Found by Linux Verification Center (linuxtesting.org) with static
analysis tool SVACE.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/crypto/inside-secure/safexcel_cipher.c"
    ],
    "versions": [
      {
        "version": "49186a7d9e46",
        "lessThan": "4c0ac81a172a",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "49186a7d9e46",
        "lessThan": "8084b788c2fb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "49186a7d9e46",
        "lessThan": "fc0b785802b8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "49186a7d9e46",
        "lessThan": "87e02063d077",
        "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/crypto/inside-secure/safexcel_cipher.c"
    ],
    "versions": [
      {
        "version": "6.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.1",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.75",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.14",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.7.2",
        "lessThanOrEqual": "6.7.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

AI Score

6.5

Confidence

Low

EPSS

0

Percentile

15.5%