GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

CVE-2023-52687 (GCVE-0-2023-52687)

Vulnerability from cvelistv5 – Published: 2024-05-17 14:24 – Updated: 2026-08-05 09:11
VLAI
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.
SSVC
Exploitation: none Automatable: no Technical Impact: partial
CISA Coordinator · CISA-ADP (v2.0.3)
Decision recorded 2024-05-31 18:46 UTC
Impacted products
Vendor Product Version CPE status
Linux Linux Affected: 49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1 , < 4c0ac81a172a69a7733290915276672787e904ec (git)
Affected: 49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1 , < 8084b788c2fb1260f7d44c032d5124680b20d2b2 (git)
Affected: 49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1 , < fc0b785802b856566df3ac943e38a072557001c4 (git)
Affected: 49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1 , < 87e02063d07708cac5bfe9fd3a6a242898758ac8 (git)
guessed Create a notification for this product.
Linux Linux Affected: 6.1
Unaffected: 0 , < 6.1 (semver)
Unaffected: 6.1.75 , ≤ 6.1.* (semver)
Unaffected: 6.6.14 , ≤ 6.6.* (semver)
Unaffected: 6.7.2 , ≤ 6.7.* (semver)
Unaffected: 6.8 , ≤ * (original_commit_for_fix)
guessed Create a notification for this product.
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "metrics": [
          {
            "cvssV3_1": {
              "attackComplexity": "LOW",
              "attackVector": "LOCAL",
              "availabilityImpact": "HIGH",
              "baseScore": 5.5,
              "baseSeverity": "MEDIUM",
              "confidentialityImpact": "NONE",
              "integrityImpact": "NONE",
              "privilegesRequired": "LOW",
              "scope": "UNCHANGED",
              "userInteraction": "NONE",
              "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
              "version": "3.1"
            }
          },
          {
            "other": {
              "content": {
                "id": "CVE-2023-52687",
                "options": [
                  {
                    "Exploitation": "none"
                  },
                  {
                    "Automatable": "no"
                  },
                  {
                    "Technical Impact": "partial"
                  }
                ],
                "role": "CISA Coordinator",
                "timestamp": "2024-05-31T18:46:13.483061Z",
                "version": "2.0.3"
              },
              "type": "ssvc"
            }
          }
        ],
        "problemTypes": [
          {
            "descriptions": [
              {
                "description": "CWE-noinfo Not enough information",
                "lang": "en",
                "type": "CWE"
              }
            ]
          }
        ],
        "providerMetadata": {
          "dateUpdated": "2024-11-06T16:44:03.755Z",
          "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
          "shortName": "CISA-ADP"
        },
        "title": "CISA ADP Vulnrichment"
      },
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-02T23:11:34.555Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "defaultStatus": "unaffected",
          "product": "Linux",
          "programFiles": [
            "drivers/crypto/inside-secure/safexcel_cipher.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "lessThan": "4c0ac81a172a69a7733290915276672787e904ec",
              "status": "affected",
              "version": "49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1",
              "versionType": "git"
            },
            {
              "lessThan": "8084b788c2fb1260f7d44c032d5124680b20d2b2",
              "status": "affected",
              "version": "49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1",
              "versionType": "git"
            },
            {
              "lessThan": "fc0b785802b856566df3ac943e38a072557001c4",
              "status": "affected",
              "version": "49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1",
              "versionType": "git"
            },
            {
              "lessThan": "87e02063d07708cac5bfe9fd3a6a242898758ac8",
              "status": "affected",
              "version": "49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1",
              "versionType": "git"
            }
          ]
        },
        {
          "defaultStatus": "affected",
          "product": "Linux",
          "programFiles": [
            "drivers/crypto/inside-secure/safexcel_cipher.c"
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "vendor": "Linux",
          "versions": [
            {
              "status": "affected",
              "version": "6.1"
            },
            {
              "lessThan": "6.1",
              "status": "unaffected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.1.*",
              "status": "unaffected",
              "version": "6.1.75",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.6.*",
              "status": "unaffected",
              "version": "6.6.14",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "6.7.*",
              "status": "unaffected",
              "version": "6.7.2",
              "versionType": "semver"
            },
            {
              "lessThanOrEqual": "*",
              "status": "unaffected",
              "version": "6.8",
              "versionType": "original_commit_for_fix"
            }
          ]
        }
      ],
      "cpeApplicability": [
        {
          "nodes": [
            {
              "cpeMatch": [
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.1.75",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.6.14",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.7.2",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                },
                {
                  "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
                  "versionEndExcluding": "6.8",
                  "versionStartIncluding": "6.1",
                  "vulnerable": true
                }
              ],
              "negate": false,
              "operator": "OR"
            }
          ]
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "In the Linux kernel, the following vulnerability has been resolved:\n\ncrypto: safexcel - Add error handling for dma_map_sg() calls\n\nMacro dma_map_sg() may return 0 on error. This patch enables\nchecks in case of the macro failure and ensures unmapping of\npreviously mapped buffers with dma_unmap_sg().\n\nFound by Linux Verification Center (linuxtesting.org) with static\nanalysis tool SVACE."
        }
      ],
      "metrics": [
        {
          "cvssV3_1": {
            "baseScore": 9.8,
            "baseSeverity": "CRITICAL",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
            "version": "3.1"
          },
          "scenarios": [
            {
              "lang": "en",
              "value": "AV:N - The Inside Secure EIP97/EIP197 lookaside engine on Marvell Armada and MediaTek MT7986 networking appliances accelerates IPsec AEAD algorithms (gcm(aes), authenc(hmac(sha*),cbc(aes))) at cra_priority 300, so inbound ESP hits esp_input\u2192crypto_aead_decrypt\u2192safexcel_send_req\u2192dma_map_sg over the network before authentication completes.\nAC:L - A remote or local attacker can induce dma_map_sg() failure via memory/IOVA/swiotlb exhaustion (large multi-frag ESP floods or concurrent AF_ALG requests); once mapping fails the driver deterministically programs the engine with stale/unmapped SG DMA addresses with no race to win.\nPR:N - Crafted ESP packets to an existing IPsec SA exercise the vulnerable path with no privileges on the target; AEAD decrypt (including dma_map_sg) runs as part of packet processing before authenticity is established.\nUI:N - Exploitation requires only attacker-sent ESP (or AF_ALG) crypto requests; no victim user action such as mounting a filesystem or opening a file is needed.\nS:U - Impact is host-kernel memory corruption/DoS under the same kernel security authority; this is not a guest-to-host escape or intentional IOMMU isolation bypass across separate authorities.\nC:H - On dma-direct partial map failure, successfully mapped SG entries are unmapped but dma_address is left stale, so the engine DMAs from recycled pages (use-after-unmap); with separate src/dst, a failed src map plus successful dst map can encrypt unintended physical memory into attacker-readable output under a known key.\nI:H - The same stale/unmapped DMA addresses are used for DMA_FROM_DEVICE/BIDIRECTIONAL result writes, so the crypto engine writes into memory that may have been reused by other kernel subsystems, enabling arbitrary corruption and control-flow hijack primitives.\nA:H - Programming the EIP97/EIP197 with unmapped or DMA_MAPPING_ERROR addresses causes bus/IOMMU faults, driver failures, and kernel oops/panic, fully denying service on affected appliances."
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-08-05T09:11:01.883Z",
        "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
        "shortName": "Linux"
      },
      "references": [
        {
          "url": "https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec"
        },
        {
          "url": "https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2"
        },
        {
          "url": "https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4"
        },
        {
          "url": "https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8"
        }
      ],
      "title": "crypto: safexcel - Add error handling for dma_map_sg() calls",
      "x_generator": {
        "engine": "bippy-1.2.0"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
    "assignerShortName": "Linux",
    "cveId": "CVE-2023-52687",
    "datePublished": "2024-05-17T14:24:48.665Z",
    "dateReserved": "2024-03-07T14:49:46.888Z",
    "dateUpdated": "2026-08-05T09:11:01.883Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "epss": {
      "cve": "CVE-2023-52687",
      "date": "2026-09-16",
      "epss": "0.00602",
      "percentile": "0.47234"
    },
    "fkie_nvd": {
      "descriptions": "[{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncrypto: safexcel - Add error handling for dma_map_sg() calls\\n\\nMacro dma_map_sg() may return 0 on error. This patch enables\\nchecks in case of the macro failure and ensures unmapping of\\npreviously mapped buffers with dma_unmap_sg().\\n\\nFound by Linux Verification Center (linuxtesting.org) with static\\nanalysis tool SVACE.\"}, {\"lang\": \"es\", \"value\": \" En el kernel de Linux, se resolvi\\u00f3 la siguiente vulnerabilidad: crypto: safexcel - A\\u00f1adir manejo de errores para llamadas a dma_map_sg() La macro dma_map_sg() puede devolver 0 en caso de error. Este parche permite realizar comprobaciones en caso de fallo de la macro y garantiza la eliminaci\\u00f3n de la asignaci\\u00f3n de b\\u00faferes previamente asignados con dma_unmap_sg(). Encontrado por el Centro de verificaci\\u00f3n de Linux (linuxtesting.org) con la herramienta de an\\u00e1lisis est\\u00e1tico SVACE.\"}]",
      "id": "CVE-2023-52687",
      "lastModified": "2024-11-21T08:40:21.700",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"type\": \"Secondary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"baseScore\": 5.5, \"baseSeverity\": \"MEDIUM\", \"attackVector\": \"LOCAL\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"LOW\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"NONE\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"HIGH\"}, \"exploitabilityScore\": 1.8, \"impactScore\": 3.6}]}",
      "published": "2024-05-17T15:15:19.810",
      "references": "[{\"url\": \"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4\", \"source\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\"}, {\"url\": \"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}, {\"url\": \"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\"}]",
      "sourceIdentifier": "416baaa9-dc9f-4396-8d5f-8c081fb06d67",
      "vulnStatus": "Awaiting Analysis"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2023-52687\",\"sourceIdentifier\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"published\":\"2024-05-17T15:15:19.810\",\"lastModified\":\"2026-08-04T10:18:37.907\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncrypto: safexcel - Add error handling for dma_map_sg() calls\\n\\nMacro dma_map_sg() may return 0 on error. This patch enables\\nchecks in case of the macro failure and ensures unmapping of\\npreviously mapped buffers with dma_unmap_sg().\\n\\nFound by Linux Verification Center (linuxtesting.org) with static\\nanalysis tool SVACE.\"},{\"lang\":\"es\",\"value\":\" En el kernel de Linux, se resolvi\u00f3 la siguiente vulnerabilidad: crypto: safexcel - A\u00f1adir manejo de errores para llamadas a dma_map_sg() La macro dma_map_sg() puede devolver 0 en caso de error. Este parche permite realizar comprobaciones en caso de fallo de la macro y garantiza la eliminaci\u00f3n de la asignaci\u00f3n de b\u00faferes previamente asignados con dma_unmap_sg(). Encontrado por el Centro de verificaci\u00f3n de Linux (linuxtesting.org) con la herramienta de an\u00e1lisis est\u00e1tico SVACE.\"}],\"affected\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"affectedData\":[{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"unaffected\",\"programFiles\":[\"drivers/crypto/inside-secure/safexcel_cipher.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\",\"lessThan\":\"4c0ac81a172a69a7733290915276672787e904ec\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\",\"lessThan\":\"8084b788c2fb1260f7d44c032d5124680b20d2b2\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\",\"lessThan\":\"fc0b785802b856566df3ac943e38a072557001c4\",\"versionType\":\"git\",\"status\":\"affected\"},{\"version\":\"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\",\"lessThan\":\"87e02063d07708cac5bfe9fd3a6a242898758ac8\",\"versionType\":\"git\",\"status\":\"affected\"}]},{\"vendor\":\"Linux\",\"product\":\"Linux\",\"defaultStatus\":\"affected\",\"programFiles\":[\"drivers/crypto/inside-secure/safexcel_cipher.c\"],\"repo\":\"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\"versions\":[{\"version\":\"6.1\",\"status\":\"affected\"},{\"version\":\"0\",\"lessThan\":\"6.1\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.1.75\",\"lessThanOrEqual\":\"6.1.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.6.14\",\"lessThanOrEqual\":\"6.6.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.7.2\",\"lessThanOrEqual\":\"6.7.*\",\"versionType\":\"semver\",\"status\":\"unaffected\"},{\"version\":\"6.8\",\"lessThanOrEqual\":\"*\",\"versionType\":\"original_commit_for_fix\",\"status\":\"unaffected\"}]}]}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6},{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\",\"baseScore\":5.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"LOCAL\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":1.8,\"impactScore\":3.6}],\"ssvcV203\":[{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"ssvcData\":{\"timestamp\":\"2024-05-31T18:46:13.483061Z\",\"id\":\"CVE-2023-52687\",\"options\":[{\"exploitation\":\"none\"},{\"automatable\":\"no\"},{\"technicalImpact\":\"partial\"}],\"role\":\"CISA Coordinator\",\"version\":\"2.0.3\"}}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-252\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.1\",\"versionEndExcluding\":\"6.1.75\",\"matchCriteriaId\":\"7F7CF53F-7372-4D22-A741-D74552231B3B\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.2\",\"versionEndExcluding\":\"6.6.14\",\"matchCriteriaId\":\"5C6B50A6-3D8B-4CE2-BDCC-A098609CBA14\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"6.7\",\"versionEndExcluding\":\"6.7.2\",\"matchCriteriaId\":\"7229C448-E0C9-488B-8939-36BA5254065E\"}]}]}],\"references\":[{\"url\":\"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4\",\"source\":\"416baaa9-dc9f-4396-8d5f-8c081fb06d67\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]},{\"url\":\"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\"]}]}}",
    "redhat_vex": {
      "aggregate_severity": "Moderate",
      "current_release_date": "2025-11-21T10:51:03+00:00",
      "cve": "CVE-2023-52687",
      "id": "CVE-2023-52687",
      "initial_release_date": "2023-01-01T00:00:00+00:00",
      "product_status:known_not_affected": "198",
      "source": "Red Hat CSAF VEX",
      "status": "final",
      "title": "kernel: crypto: safexcel - Add error handling for dma_map_sg() calls",
      "url": "https://security.access.redhat.com/data/csaf/v2/vex/2023/cve-2023-52687.json",
      "version": "3"
    },
    "suse_vex": {
      "aggregate_severity": "moderate",
      "current_release_date": "2026-09-03T00:32:25Z",
      "cve": "CVE-2023-52687",
      "id": "CVE-2023-52687",
      "initial_release_date": "2024-05-21T02:01:58Z",
      "product_status:known_affected": "394",
      "product_status:known_not_affected": "332",
      "product_status:recommended": "357",
      "source": "SUSE CSAF VEX",
      "status": "interim",
      "title": "SUSE CVE CVE-2023-52687",
      "url": "https://ftp.suse.com/pub/projects/security/csaf-vex/cve-2023-52687.json",
      "version": "82"
    },
    "vulnrichment": {
      "containers": "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-02T23:11:34.555Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 5.5, \"attackVector\": \"LOCAL\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H\", \"integrityImpact\": \"NONE\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2023-52687\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-05-31T18:46:13.483061Z\"}}}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"description\": \"CWE-noinfo Not enough information\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-05-31T18:46:17.505Z\"}}], \"cna\": {\"title\": \"crypto: safexcel - Add error handling for dma_map_sg() calls\", \"metrics\": [{\"cvssV3_1\": {\"version\": \"3.1\", \"baseScore\": 9.8, \"baseSeverity\": \"CRITICAL\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\"}, \"scenarios\": [{\"lang\": \"en\", \"value\": \"AV:N - The Inside Secure EIP97/EIP197 lookaside engine on Marvell Armada and MediaTek MT7986 networking appliances accelerates IPsec AEAD algorithms (gcm(aes), authenc(hmac(sha*),cbc(aes))) at cra_priority 300, so inbound ESP hits esp_input\\u2192crypto_aead_decrypt\\u2192safexcel_send_req\\u2192dma_map_sg over the network before authentication completes.\\nAC:L - A remote or local attacker can induce dma_map_sg() failure via memory/IOVA/swiotlb exhaustion (large multi-frag ESP floods or concurrent AF_ALG requests); once mapping fails the driver deterministically programs the engine with stale/unmapped SG DMA addresses with no race to win.\\nPR:N - Crafted ESP packets to an existing IPsec SA exercise the vulnerable path with no privileges on the target; AEAD decrypt (including dma_map_sg) runs as part of packet processing before authenticity is established.\\nUI:N - Exploitation requires only attacker-sent ESP (or AF_ALG) crypto requests; no victim user action such as mounting a filesystem or opening a file is needed.\\nS:U - Impact is host-kernel memory corruption/DoS under the same kernel security authority; this is not a guest-to-host escape or intentional IOMMU isolation bypass across separate authorities.\\nC:H - On dma-direct partial map failure, successfully mapped SG entries are unmapped but dma_address is left stale, so the engine DMAs from recycled pages (use-after-unmap); with separate src/dst, a failed src map plus successful dst map can encrypt unintended physical memory into attacker-readable output under a known key.\\nI:H - The same stale/unmapped DMA addresses are used for DMA_FROM_DEVICE/BIDIRECTIONAL result writes, so the crypto engine writes into memory that may have been reused by other kernel subsystems, enabling arbitrary corruption and control-flow hijack primitives.\\nA:H - Programming the EIP97/EIP197 with unmapped or DMA_MAPPING_ERROR addresses causes bus/IOMMU faults, driver failures, and kernel oops/panic, fully denying service on affected appliances.\"}]}], \"affected\": [{\"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\", \"vendor\": \"Linux\", \"product\": \"Linux\", \"versions\": [{\"status\": \"affected\", \"version\": \"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\", \"lessThan\": \"4c0ac81a172a69a7733290915276672787e904ec\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\", \"lessThan\": \"8084b788c2fb1260f7d44c032d5124680b20d2b2\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\", \"lessThan\": \"fc0b785802b856566df3ac943e38a072557001c4\", \"versionType\": \"git\"}, {\"status\": \"affected\", \"version\": \"49186a7d9e46ff132a0ed9b721ad6b6a58dba6c1\", \"lessThan\": \"87e02063d07708cac5bfe9fd3a6a242898758ac8\", \"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\": \"semver\"}, {\"status\": \"unaffected\", \"version\": \"6.1.75\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.1.*\"}, {\"status\": \"unaffected\", \"version\": \"6.6.14\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.6.*\"}, {\"status\": \"unaffected\", \"version\": \"6.7.2\", \"versionType\": \"semver\", \"lessThanOrEqual\": \"6.7.*\"}, {\"status\": \"unaffected\", \"version\": \"6.8\", \"versionType\": \"original_commit_for_fix\", \"lessThanOrEqual\": \"*\"}], \"programFiles\": [\"drivers/crypto/inside-secure/safexcel_cipher.c\"], \"defaultStatus\": \"affected\"}], \"references\": [{\"url\": \"https://git.kernel.org/stable/c/4c0ac81a172a69a7733290915276672787e904ec\"}, {\"url\": \"https://git.kernel.org/stable/c/8084b788c2fb1260f7d44c032d5124680b20d2b2\"}, {\"url\": \"https://git.kernel.org/stable/c/fc0b785802b856566df3ac943e38a072557001c4\"}, {\"url\": \"https://git.kernel.org/stable/c/87e02063d07708cac5bfe9fd3a6a242898758ac8\"}], \"x_generator\": {\"engine\": \"bippy-1.2.0\"}, \"descriptions\": [{\"lang\": \"en\", \"value\": \"In the Linux kernel, the following vulnerability has been resolved:\\n\\ncrypto: safexcel - Add error handling for dma_map_sg() calls\\n\\nMacro dma_map_sg() may return 0 on error. This patch enables\\nchecks in case of the macro failure and ensures unmapping of\\npreviously mapped buffers with dma_unmap_sg().\\n\\nFound by Linux Verification Center (linuxtesting.org) with static\\nanalysis tool SVACE.\"}], \"cpeApplicability\": [{\"nodes\": [{\"negate\": false, \"cpeMatch\": [{\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.1.75\", \"versionStartIncluding\": \"6.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.6.14\", \"versionStartIncluding\": \"6.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.7.2\", \"versionStartIncluding\": \"6.1\"}, {\"criteria\": \"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*\", \"vulnerable\": true, \"versionEndExcluding\": \"6.8\", \"versionStartIncluding\": \"6.1\"}], \"operator\": \"OR\"}]}], \"providerMetadata\": {\"orgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"shortName\": \"Linux\", \"dateUpdated\": \"2026-08-05T09:11:01.883Z\"}}}",
      "cveMetadata": "{\"cveId\": \"CVE-2023-52687\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2026-08-05T09:11:01.883Z\", \"dateReserved\": \"2024-03-07T14:49:46.888Z\", \"assignerOrgId\": \"416baaa9-dc9f-4396-8d5f-8c081fb06d67\", \"datePublished\": \"2024-05-17T14:24:48.665Z\", \"assignerShortName\": \"Linux\"}",
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…