arm64/sme: Set new vector length before reallocating
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.
CVE-2023-53184
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: cve:CVE-2023-53184
Linux
Source reference: /containers/cna/affected/0/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Linux
Source reference: /containers/cna/affected/1/product
- Affected versions
- Not stated in this record
- Fixed versions
- Not stated in this record
- Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"vendor": "Linux",
"product": "Linux",
"versions": [
{
"status": "affected",
"version": "aa5cf8bd1318b6e7d500668b318c07a71cde783b",
"lessThan": "356e711640aea6ed145da9407499388b45264cb4",
"versionType": "git"
},
{
"status": "affected",
"version": "292f0453b0d021bb1d3f64648bfdfca093512214",
"lessThan": "807ada0e4aa3c9090c66009a99fa530c462012c9",
"versionType": "git"
},
{
"status": "affected",
"version": "d4d5be94a87872421ea2569044092535aff0b886",
"lessThan": "05d881b85b48c7ac6a7c92ce00aa916c4a84d052",
"versionType": "git"
}
],
"programFiles": [
"arch/arm64/kernel/fpsimd.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.42",
"lessThan": "6.1.43",
"versionType": "semver"
},
{
"status": "affected",
"version": "6.4.7",
"lessThan": "6.4.8",
"versionType": "semver"
}
],
"programFiles": [
"arch/arm64/kernel/fpsimd.c"
],
"defaultStatus": "unaffected"
}
]- Related CVEs
- CVE-2023-53184
Source reference:
/cveMetadata/cveId
Publisher severity
high
Source reference: /containers/cna/metrics
- Event
- #30263 · Revision 1
- Added to Heist Feed
- Publisher date