CDC-NCM: avoid overflow in sanity checking (Linux Linux)

CVE-2022-48938
MEDIUM 5.5

At a glance

Source
NVD
EPSS
EPSS 0.21 % · percentile 12 ()
State
PUBLISHED
Published
Updated
Assigner
Linux
NVD status
Modified

Description

In the Linux kernel, the following vulnerability has been resolved: CDC-NCM: avoid overflow in sanity checking A broken device may give an extreme offset like 0xFFF0 and a reasonable length for a fragment. In the sanity check as formulated now, this will create an integer overflow, defeating the sanity check. Both offset and offset + len need to be checked in such a manner that no overflow can occur. And those quantities should be unsigned.

Weaknesses (CWE)

  • CWE-190 — Integer Overflow or Wraparound

References

Scores

VersionScoreVectorScored by
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)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 4ca8b8855264cf1439cdab3da7049bd1e3c2a9e6 < a612395c7631918e0e10ea48b9ce5ab4340f26a6 ; affected a270ca35a9499b58366d696d3290eaa4697a42db < 9957fbf34f52a4d8945d1bf39aae400ef9a11246 ; affected 0fa81b304a7973a499f844176ca031109487dd31 < 69560efa001397ebb8dc1c3e6a3ce00302bb9f7f ; affected 0fa81b304a7973a499f844176ca031109487dd31 < 49909c9f8458cacb5b241106cba65aba5a6d8f4c ; affected 0fa81b304a7973a499f844176ca031109487dd31 < 7b737e47b87589031f0d4657f6d7b0b770474925 ; affected 0fa81b304a7973a499f844176ca031109487dd31 < 8d2b1a1ec9f559d30b724877da4ce592edc41fdc
Linux · Linuxaffected 5.7 ; unaffected 0 < 5.7 ; unaffected 4.19.323 ≤ 4.19.* ; unaffected 5.4.285 ≤ 5.4.* ; unaffected 5.10.103 ≤ 5.10.* ; unaffected 5.15.26 ≤ 5.15.*

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