io_uring/kbuf: always use READ_ONCE() to read ring provided buffer lengths (Linux Linux)

CVE-2025-39816
MEDIUM 5.5

En bref

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

Description

In the Linux kernel, the following vulnerability has been resolved: io_uring/kbuf: always use READ_ONCE() to read ring provided buffer lengths Since the buffers are mapped from userspace, it is prudent to use READ_ONCE() to read the value into a local variable, and use that for any other actions taken. Having a stable read of the buffer length avoids worrying about it changing after checking, or being read multiple times. Similarly, the buffer may well change in between it being picked and being committed. Ensure the looping for incremental ring buffer commit stops if it hits a zero sized buffer, as no further progress can be made at that point.

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:HCISA-ADP
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)
CVSS 3.1MEDIUM 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
Linux · Linuxaffected ae98dbf43d755b4e111fcd086e53939bef3e9a1a < 695673eb5711ee5eb1769481cf1503714716a7d1 ; affected ae98dbf43d755b4e111fcd086e53939bef3e9a1a < 91f262ea2a76a02d9e37dba6637cfe6feebb20a8 ; affected ae98dbf43d755b4e111fcd086e53939bef3e9a1a < 390a61d284e1ced088d43928dfcf6f86fffdd780 ; affected ae98dbf43d755b4e111fcd086e53939bef3e9a1a < 98b6fa62c84f2e129161e976a5b9b3cb4ccd117b
Linux · Linuxaffected 6.12 ; unaffected 0 < 6.12 ; unaffected 6.12.49 ≤ 6.12.* ; unaffected 6.12.81 ≤ 6.12.* ; unaffected 6.16.5 ≤ 6.16.* ; unaffected 6.17 ≤ *

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