arm64/sme: Always exit sme_alloc() early with existing storage (Linux Linux)

CVE-2024-26618
MEDIUM 5.5

En bref

Source
NVD
EPSS
EPSS 0.24 % · centile 15 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: arm64/sme: Always exit sme_alloc() early with existing storage When sme_alloc() is called with existing storage and we are not flushing we will always allocate new storage, both leaking the existing storage and corrupting the state. Fix this by separating the checks for flushing and for existing storage as we do for SVE. Callers that reallocate (eg, due to changing the vector length) should call sme_free() themselves.

Faiblesses (CWE)

  • CWE-770 — Allocation de ressources sans limite ni régulation

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · nvd@nist.gov (Primary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected 21614ba60883eb93b99a7ee4b41cb927f93b39ae < f6421555dbd7cb3d4d70b69f33f998aaeca1e3b5 ; affected 5d0a8d2fba50e9c07cde4aad7fba28c008b07a5b < 569156e4fa347237f8fa2a7e935d860109c55ac4 ; affected 5d0a8d2fba50e9c07cde4aad7fba28c008b07a5b < 814af6b4e6000e574e74d92197190edf07cc3680 ; affected 5d0a8d2fba50e9c07cde4aad7fba28c008b07a5b < dc7eb8755797ed41a0d1b5c0c39df3c8f401b3d9 ; affected e01af8e26c23a08625a3dd6c8c472a1752d76cce ; affected 6.1.47 < 6.1.140
Linux · Linuxaffected 6.5 ; unaffected 0 < 6.5 ; unaffected 6.1.140 ≤ 6.1.* ; unaffected 6.6.15 ≤ 6.6.* ; unaffected 6.7.3 ≤ 6.7.* ; unaffected 6.8 ≤ *

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD