Skip to content
Heist/ feed
Back to feed
HighFix available

arm64/sme: Set new vector length before reallocating

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: arm64/sme: Set new vector length before reallocating As part of fixing the allocation of the buffer for SVE state when changing SME vector length we introduced an immediate reallocation of the SVE state, this is also done when changing the SVE vector length for consistency. Unfortunately this reallocation is done prior to writing the new vector length to the task struct, meaning the allocation is done with the old vector length and can lead to memory corruption due to an undersized buffer being used. Move the update of the vector length before the allocation to ensure that the new vector length is taken into account. For some reason this isn't triggering any problems when running tests on the arm64 fixes branch (even after repeated tries) but is triggering issues very often after merge into mainline.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.1.43, 6.4.8
CVEs
CVE-2023-53184
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 20:55 UTC · Revision 1

Source evidence

arm64/sme: Set new vector length before reallocating

core-osv · Original source

Published 15 Sept 2025, 14:04 UTC

In the Linux kernel, the following vulnerability has been resolved: arm64/sme: Set new vector length before reallocating As part of fixing the allocation of the buffer for SVE state when changing SME vector length we introduced an immediate reallocation of the SVE state, this is also done when changing the SVE vector length for consistency. Unfortunately this reallocation is done prior to writing the new vector length to the task struct, meaning the allocation is done with the old vector length and can lead to memory corruption due to an undersized buffer being used. Move the update of the vector length before the allocation to ensure that the new vector length is taken into account. For some reason this isn't triggering any problems when running tests on the arm64 fixes branch (even after repeated tries) but is triggering issues very often after merge into mainline.

osv:CVE-2023-53184

Kernel

Fixed versions: 6.1.43, 6.4.8

Complete source record
{
  "id": "9885af1ff4448da67ec6ac994b3e740e8786c37509ab005f306c5ab9874556d4",
  "url": "https://osv.dev/vulnerability/CVE-2023-53184",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "arm64/sme: Set new vector length before reallocating",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: arm64/sme: Set new vector length before reallocating As part of fixing the allocation of the buffer for SVE state when changing SME vector length we introduced an immediate reallocation of the SVE state, this is also done when changing the SVE vector length for consistency. Unfortunately this reallocation is done prior to writing the new vector length to the task struct, meaning the allocation is done with the old vector length and can lead to memory corruption due to an undersized buffer being used. Move the update of the vector length before the allocation to ensure that the new vector length is taken into account. For some reason this isn't triggering any problems when running tests on the arm64 fixes branch (even after repeated tries) but is triggering issues very often after merge into mainline.",
    "evidence": "osv:CVE-2023-53184",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.1.43",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.4.8",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2023-53184",
      "aliases": [
        "CVE-2023-53184"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/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": "aa5cf8bd1318b6e7d500668b318c07a71cde783b"
                },
                {
                  "fixed": "356e711640aea6ed145da9407499388b45264cb4"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "292f0453b0d021bb1d3f64648bfdfca093512214"
                },
                {
                  "fixed": "807ada0e4aa3c9090c66009a99fa530c462012c9"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d4d5be94a87872421ea2569044092535aff0b886"
                },
                {
                  "fixed": "05d881b85b48c7ac6a7c92ce00aa916c4a84d052"
                }
              ]
            }
          ],
          "versions": [
            "v6.1.42",
            "v6.4.7"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53184.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.1.42"
                },
                {
                  "fixed": "6.1.43"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.4.7"
                },
                {
                  "fixed": "6.4.8"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53184.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:39.755099098Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/05d881b85b48c7ac6a7c92ce00aa916c4a84d052",
        "https://git.kernel.org/stable/c/356e711640aea6ed145da9407499388b45264cb4",
        "https://git.kernel.org/stable/c/807ada0e4aa3c9090c66009a99fa530c462012c9",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53184.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2023-53184",
        "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/53xxx/CVE-2023-53184.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2023-53184",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 506927,
  "published_at": "2025-09-15T14:04:36.754+00:00"
}