acct: fix potential integer overflow in encode_comp_t() (Linux Linux)

CVE-2022-50749
Non disponible

En bref

Source
NVD
EPSS
EPSS 0.28 % · centile 21 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
Linux
Statut NVD
Deferred

Description

In the Linux kernel, the following vulnerability has been resolved: acct: fix potential integer overflow in encode_comp_t() The integer overflow is descripted with following codes: > 317 static comp_t encode_comp_t(u64 value) > 318 { > 319 int exp, rnd; ...... > 341 exp <<= MANTSIZE; > 342 exp += value; > 343 return exp; > 344 } Currently comp_t is defined as type of '__u16', but the variable 'exp' is type of 'int', so overflow would happen when variable 'exp' in line 343 is greater than 65535.

Références

Références européennes

Avis du CERT-FR

Produits affectés

ProduitVersions
Linux · Linuxaffected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < e93f995a591c352d35d89c518c54f790e1537754 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < cf60bbca1b83a7e0927e36dbf178328982927886 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 1750a0983c455a9b3badd848471fc8d58cb61f67 ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < a815a3e019456c94b03bd183e7ac22fd29e9e6fd ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < 6edd0cdee5780fd5f43356b72b29a2a6d48ef6da ; affected 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 < ebe16676e1dcaa4556ec4d36ca40c82e99e88cfa
Linux · Linuxaffected 2.6.12 ; unaffected 0 < 2.6.12 ; unaffected 4.9.337 ≤ 4.9.* ; unaffected 4.14.303 ≤ 4.14.* ; unaffected 4.19.270 ≤ 4.19.* ; unaffected 5.4.229 ≤ 5.4.*

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