# CVE-2024-40994: ptp: fix integer overflow in max_vclocks_store

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.28%, higher than 21% of CVEs (2026-12-01)
- Published: 2024-07-12T12:37:37.124Z
- Modified: 2026-06-17T07:47:02.503Z
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 44c494c8e30e35713c7d11ca3c5ab332cbfabacf before 4b03da87d0b7074c93d9662c6e1a8939f9b8b86e; from 44c494c8e30e35713c7d11ca3c5ab332cbfabacf before d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f; from 44c494c8e30e35713c7d11ca3c5ab332cbfabacf before 666e934d749e50a37f3796caaf843a605f115b6f; from 44c494c8e30e35713c7d11ca3c5ab332cbfabacf before e1fccfb4638ee6188377867f6015d0ce35764a8e; from 44c494c8e30e35713c7d11ca3c5ab332cbfabacf before 81d23d2a24012e448f651e007fac2cfd20a45ce0; 5.14 (not affected: before 5.14; from 5.15.162 up to 5.15.*; from 6.1.96 up to 6.1.*; from 6.6.36 up to 6.6.*; from 6.9.7 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: from 5.14 before 5.15.162; from 5.16 before 6.1.96; from 6.2 before 6.6.36; from 6.7 before 6.9.7; 6.10

## References

- <https://git.kernel.org/stable/c/4b03da87d0b7074c93d9662c6e1a8939f9b8b86e> (patch)
- <https://git.kernel.org/stable/c/d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f> (patch)
- <https://git.kernel.org/stable/c/666e934d749e50a37f3796caaf843a605f115b6f> (patch)
- <https://git.kernel.org/stable/c/e1fccfb4638ee6188377867f6015d0ce35764a8e> (patch)
- <https://git.kernel.org/stable/c/81d23d2a24012e448f651e007fac2cfd20a45ce0> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Sources

- CVE List: [CVE-2024-40994](https://www.cve.org/CVERecord?id=CVE-2024-40994), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-40994](https://nvd.nist.gov/vuln/detail/CVE-2024-40994), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-40994 · Whole record: https://cve.day/CVE-2024-40994.json · Rebuilt by cve.day 2026-11-25T22:58:42.881Z
