# CVE-2023-53184: arm64/sme: Set new vector length before reallocating

- Severity: High 7.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 6% of CVEs (2026-12-01)
- Published: 2025-09-15T14:04:36.754Z
- Modified: 2026-10-15T22:17:38.863Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: Linux

## Description

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.

(As written by CVE List.)

## Affected

- Linux Linux: from aa5cf8bd1318b6e7d500668b318c07a71cde783b before 356e711640aea6ed145da9407499388b45264cb4; from 292f0453b0d021bb1d3f64648bfdfca093512214 before 807ada0e4aa3c9090c66009a99fa530c462012c9; from d4d5be94a87872421ea2569044092535aff0b886 before 05d881b85b48c7ac6a7c92ce00aa916c4a84d052; from 6.1.42 before 6.1.43; from 6.4.7 before 6.4.8
- linux linux_kernel: 6.1.42; 6.4.7; 6.5

## Every score

- Linux: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://git.kernel.org/stable/c/356e711640aea6ed145da9407499388b45264cb4> (patch)
- <https://git.kernel.org/stable/c/807ada0e4aa3c9090c66009a99fa530c462012c9> (patch)
- <https://git.kernel.org/stable/c/05d881b85b48c7ac6a7c92ce00aa916c4a84d052> (patch)

## Sources

- CVE List: [CVE-2023-53184](https://www.cve.org/CVERecord?id=CVE-2023-53184), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2023-53184](https://nvd.nist.gov/vuln/detail/CVE-2023-53184), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2023-53184 · Whole record: https://cve.day/CVE-2023-53184.json · Rebuilt by cve.day 2026-11-25T22:58:34.762Z
