Lucene search

K
vulnrichmentLinuxVULNRICHMENT: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
github.com
2
cve-2023-52687
safexcel
error handling
dma_map_sg
dma_unmap_sg
linux kernel
linux verification center
static analysis

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

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

AI Score

6.8

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial