ptp: fix integer overflow in max_vclocks_store (Linux Linux)

CVE-2024-40994
HIGH 7.8

At a glance

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

Description

In the Linux kernel, the following vulnerability has been resolved: ptp: fix integer overflow in max_vclocks_store On 32bit systems, the "4 * max" multiply can overflow. Use kcalloc() to do the allocation to prevent this.

Weaknesses (CWE)

  • CWE-190 — Integer Overflow or Wraparound

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.8CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HNVD · nvd@nist.gov (Primary)

European references

CERT-FR advisories

Affected configurations (NVD CPE)

Affected products

ProductVersions
Linux · Linuxaffected 44c494c8e30e35713c7d11ca3c5ab332cbfabacf < 4b03da87d0b7074c93d9662c6e1a8939f9b8b86e ; affected 44c494c8e30e35713c7d11ca3c5ab332cbfabacf < d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f ; affected 44c494c8e30e35713c7d11ca3c5ab332cbfabacf < 666e934d749e50a37f3796caaf843a605f115b6f ; affected 44c494c8e30e35713c7d11ca3c5ab332cbfabacf < e1fccfb4638ee6188377867f6015d0ce35764a8e ; affected 44c494c8e30e35713c7d11ca3c5ab332cbfabacf < 81d23d2a24012e448f651e007fac2cfd20a45ce0
Linux · Linuxaffected 5.14 ; unaffected 0 < 5.14 ; unaffected 5.15.162 ≤ 5.15.* ; unaffected 6.1.96 ≤ 6.1.* ; unaffected 6.6.36 ≤ 6.6.* ; unaffected 6.9.7 ≤ 6.9.*

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