{"id":"CVE-2024-40994","state":"PUBLISHED","title":"ptp: fix integer overflow in max_vclocks_store","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: fix integer overflow in max_vclocks_store\n\nOn 32bit systems, the \"4 * max\" multiply can overflow.  Use kcalloc()\nto do the allocation to prevent this.","publishedAt":"2024-07-12T12:37:37.124Z","updatedAt":"2026-05-11T20:23:56.957Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"4b03da87d0b7074c93d9662c6e1a8939f9b8b86e","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"666e934d749e50a37f3796caaf843a605f115b6f","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"e1fccfb4638ee6188377867f6015d0ce35764a8e","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"81d23d2a24012e448f651e007fac2cfd20a45ce0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.162","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.96","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.36","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.7","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_sysfs.c"]}],"references":["https://git.kernel.org/stable/c/4b03da87d0b7074c93d9662c6e1a8939f9b8b86e","https://git.kernel.org/stable/c/d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f","https://git.kernel.org/stable/c/666e934d749e50a37f3796caaf843a605f115b6f","https://git.kernel.org/stable/c/e1fccfb4638ee6188377867f6015d0ce35764a8e","https://git.kernel.org/stable/c/81d23d2a24012e448f651e007fac2cfd20a45ce0","https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"],"weaknesses":[],"ingestedAt":"2026-10-29T20:07:39.287Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2024/40xxx/CVE-2024-40994.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2024-40994","state":"PUBLISHED","datePublished":"2024-07-12T12:37:37.124Z","dateUpdated":"2026-05-11T20:23:56.957Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2024-07-12T12:17:45.606Z"},"containers":{"cna":{"title":"ptp: fix integer overflow in max_vclocks_store","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nptp: fix integer overflow in max_vclocks_store\n\nOn 32bit systems, the \"4 * max\" multiply can overflow.  Use kcalloc()\nto do the allocation to prevent this."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"4b03da87d0b7074c93d9662c6e1a8939f9b8b86e","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"666e934d749e50a37f3796caaf843a605f115b6f","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"e1fccfb4638ee6188377867f6015d0ce35764a8e","versionType":"git"},{"version":"44c494c8e30e35713c7d11ca3c5ab332cbfabacf","status":"affected","lessThan":"81d23d2a24012e448f651e007fac2cfd20a45ce0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_sysfs.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.14","status":"affected"},{"version":"0","status":"unaffected","lessThan":"5.14","versionType":"semver"},{"version":"5.15.162","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.96","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.36","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.9.7","status":"unaffected","lessThanOrEqual":"6.9.*","versionType":"semver"},{"version":"6.10","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/ptp/ptp_sysfs.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/4b03da87d0b7074c93d9662c6e1a8939f9b8b86e"},{"url":"https://git.kernel.org/stable/c/d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f"},{"url":"https://git.kernel.org/stable/c/666e934d749e50a37f3796caaf843a605f115b6f"},{"url":"https://git.kernel.org/stable/c/e1fccfb4638ee6188377867f6015d0ce35764a8e"},{"url":"https://git.kernel.org/stable/c/81d23d2a24012e448f651e007fac2cfd20a45ce0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T20:23:56.957Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"5.15.162"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.1.96"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.6.36"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.9.7"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.14","versionEndExcluding":"6.10"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://git.kernel.org/stable/c/4b03da87d0b7074c93d9662c6e1a8939f9b8b86e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/d50d62d5e6ee6aa03c00bddb91745d0b632d3b0f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/666e934d749e50a37f3796caaf843a605f115b6f","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/e1fccfb4638ee6188377867f6015d0ce35764a8e","tags":["x_transferred"]},{"url":"https://git.kernel.org/stable/c/81d23d2a24012e448f651e007fac2cfd20a45ce0","tags":["x_transferred"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html"}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2025-11-03T21:58:58.171Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"id":"CVE-2024-40994","role":"CISA Coordinator","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"version":"2.0.3","timestamp":"2024-09-10T17:01:38.458996Z"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2024-09-11T17:34:19.919Z"}}]}}}