Skip to content
Heist/ feed
Back to feed
CriticalFix available

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

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.75, 6.6.14, 6.7.2
CVEs
CVE-2023-52687
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 02:49 UTC · Revision 1

Source evidence

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

core-osv · Original source

Published 17 May 2024, 14:24 UTC

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.

osv:CVE-2023-52687

Kernel

Fixed versions: 6.1.75, 6.6.14, 6.7.2

Complete source record
{
  "id": "0f1b2c2518a2d257b7004e414d436633346133a913ccad36609a16e498ffbce7",
  "url": "https://osv.dev/vulnerability/CVE-2023-52687",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "crypto: safexcel - Add error handling for dma_map_sg() calls",
    "summary": "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.",
    "evidence": "osv:CVE-2023-52687",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.75",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.6.14",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.7.2",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2023-52687",
      "aliases": [
        "CVE-2023-52687"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1"
                },
                {
                  "fixed": "4c0ac81a172a69a7733290915276672787e904ec"
                },
                {
                  "fixed": "8084b788c2fb1260f7d44c032d5124680b20d2b2"
                },
                {
                  "fixed": "fc0b785802b856566df3ac943e38a072557001c4"
                },
                {
                  "fixed": "87e02063d07708cac5bfe9fd3a6a242898758ac8"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52687.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.0"
                },
                {
                  "fixed": "6.1.75"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.2.0"
                },
                {
                  "fixed": "6.6.14"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.7.2"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52687.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:33.025268856Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec",
        "https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2",
        "https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8",
        "https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52687.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52687",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52687.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52687",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499801,
  "published_at": "2024-05-17T14:24:48.665+00:00"
}