Skip to content
Heist/ feed
Back to feed
LowFix available

xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr() int type = nla_type(nla); if (type > XFRMA_MAX) { return -EOPNOTSUPP; } @type is then used as an array index and can be used as a Spectre v1 gadget. if (nla_len(nla) < compat_policy[type].len) { array_index_nospec() can be used to prevent leaking content of kernel memory to malicious users.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.168, 5.15.94, 6.1.12
CVEs
CVE-2023-52746
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:24 UTC · Revision 1

Source evidence

xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()

core-osv · Original source

Published 21 May 2024, 15:23 UTC

In the Linux kernel, the following vulnerability has been resolved: xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr() int type = nla_type(nla); if (type > XFRMA_MAX) { return -EOPNOTSUPP; } @type is then used as an array index and can be used as a Spectre v1 gadget. if (nla_len(nla) < compat_policy[type].len) { array_index_nospec() can be used to prevent leaking content of kernel memory to malicious users.

osv:CVE-2023-52746

Kernel

Fixed versions: 5.10.168, 5.15.94, 6.1.12

Complete source record
{
  "id": "acf2926745a7c62abaafb09c388a4af943d30bb99e8318f782e1b73486178480",
  "url": "https://osv.dev/vulnerability/CVE-2023-52746",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr()",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: xfrm/compat: prevent potential spectre v1 gadget in xfrm_xlate32_attr() int type = nla_type(nla); if (type > XFRMA_MAX) { return -EOPNOTSUPP; } @type is then used as an array index and can be used as a Spectre v1 gadget. if (nla_len(nla) < compat_policy[type].len) { array_index_nospec() can be used to prevent leaking content of kernel memory to malicious users.",
    "evidence": "osv:CVE-2023-52746",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.10.168",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.94",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.1.12",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "low",
    "structured": {
      "id": "CVE-2023-52746",
      "aliases": [
        "CVE-2023-52746"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "5106f4a8acff480e244300bc5097c0ad7048c3a2"
                },
                {
                  "fixed": "a893cc644812728e86e9aff517fd5698812ecef0"
                },
                {
                  "fixed": "5dc688fae6b7be9dbbf5304a3d2520d038e06db5"
                },
                {
                  "fixed": "419674224390fca298020fc0751a20812f84b12d"
                },
                {
                  "fixed": "b6ee896385380aa621102e8ea402ba12db1cabff"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52746.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.10.0"
                },
                {
                  "fixed": "5.10.168"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.94"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "6.1.12"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-52746.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.874932543Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/419674224390fca298020fc0751a20812f84b12d",
        "https://git.kernel.org/stable/c/5dc688fae6b7be9dbbf5304a3d2520d038e06db5",
        "https://git.kernel.org/stable/c/a893cc644812728e86e9aff517fd5698812ecef0",
        "https://git.kernel.org/stable/c/b6ee896385380aa621102e8ea402ba12db1cabff",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/52xxx/CVE-2023-52746.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-52746",
        "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-52746.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-52746",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 504084,
  "published_at": "2024-05-21T15:23:07.255+00:00"
}