octeontx2-af: avoid off-by-one read from userspace (Linux Linux)

CVE-2024-36957
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
Analyzed

Description

In the Linux kernel, the following vulnerability has been resolved: octeontx2-af: avoid off-by-one read from userspace We try to access count + 1 byte from userspace with memdup_user(buffer, count + 1). However, the userspace only provides buffer of count bytes and only these count bytes are verified to be okay to access. To ensure the copied buffer is NUL terminated, we use memdup_user_nul instead.

Faiblesses (CWE)

  • CWE-193 — Erreur de décalage d'une unité

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 dae49384d0d7695540e2d75168f323cef1384810 < bcdac70adceb44373da204c3c297f2a98e13216e ; affected 3a2eb515d1367c0f667b76089a6e727279c688b8 < ec697fbd38cbe2eef0948b58673b146caa95402f ; affected 3a2eb515d1367c0f667b76089a6e727279c688b8 < 8f11fe3ea3fc261640cfc8a5addd838000407c67 ; affected 3a2eb515d1367c0f667b76089a6e727279c688b8 < 0a0285cee11c7dcc2657bcd456e469958a5009e7 ; affected 3a2eb515d1367c0f667b76089a6e727279c688b8 < fc3e0076c1f82fe981d321e3a7bad4cbee542c19 ; affected 3a2eb515d1367c0f667b76089a6e727279c688b8 < f299ee709fb45036454ca11e90cb2810fe771878
Linux · Linuxaffected 5.12 ; unaffected 0 < 5.12 ; unaffected 5.10.217 ≤ 5.10.* ; unaffected 5.15.159 ≤ 5.15.* ; unaffected 6.1.91 ≤ 6.1.* ; unaffected 6.6.31 ≤ 6.6.*

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