{"api_version":"1","generated_at":"2026-07-23T13:23:21+00:00","cve":"CVE-2024-35905","urls":{"html":"https://cve.report/CVE-2024-35905","api":"https://cve.report/api/cve/CVE-2024-35905.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-35905","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-35905"},"summary":{"title":"bpf: Protect against int overflow for stack access size","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Protect against int overflow for stack access size\n\nThis patch re-introduces protection against the size of access to stack\nmemory being negative; the access size can appear negative as a result\nof overflowing its signed int representation. This should not actually\nhappen, as there are other protections along the way, but we should\nprotect against it anyway. One code path was missing such protections\n(fixed in the previous patch in the series), causing out-of-bounds array\naccesses in check_stack_range_initialized(). This patch causes the\nverification of a program with such a non-sensical access size to fail.\n\nThis check used to exist in a more indirect way, but was inadvertendly\nremoved in a833a17aeac7.","state":"PUBLISHED","assigner":"Linux","published_at":"2024-05-19 09:15:11","updated_at":"2026-05-12 12:16:40"},"problem_types":["CWE-129","CWE-190"],"metrics":[{"version":"3.1","source":"nvd@nist.gov","type":"Primary","score":"7.8","severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","data":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"}}],"references":[{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","name":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Mailing List"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/203a68151e8eeb331d4a64ab78303f3a15faf103","name":"https://git.kernel.org/stable/c/203a68151e8eeb331d4a64ab78303f3a15faf103","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","name":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","refsource":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/98cdac206b112bec63852e94802791e316acc2c1","name":"https://git.kernel.org/stable/c/98cdac206b112bec63852e94802791e316acc2c1","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/3f0784b2f1eb9147973d8c43ba085c5fdf44ff69","name":"https://git.kernel.org/stable/c/3f0784b2f1eb9147973d8c43ba085c5fdf44ff69","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/ecc6a2101840177e57c925c102d2d29f260d37c8","name":"https://git.kernel.org/stable/c/ecc6a2101840177e57c925c102d2d29f260d37c8","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/9970e059af471478455f9534e8c3db82f8c5496d","name":"https://git.kernel.org/stable/c/9970e059af471478455f9534e8c3db82f8c5496d","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/37dc1718dc0c4392dbfcb9adec22a776e745dd69","name":"https://git.kernel.org/stable/c/37dc1718dc0c4392dbfcb9adec22a776e745dd69","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-35905","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-35905","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected afea95d319ccb4ad2060dece9ac5e2e364dec543 9970e059af471478455f9534e8c3db82f8c5496d git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 02962684258eb53f414a8a59854767be526e6abb 37dc1718dc0c4392dbfcb9adec22a776e745dd69 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected b1d4d54d32ce6342f5faffe71bae736540ce7cb5 98cdac206b112bec63852e94802791e316acc2c1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 08b91babccbb168353f8d43fea0ed28a4cad568c 3f0784b2f1eb9147973d8c43ba085c5fdf44ff69 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a833a17aeac73b33f79433d7cee68d5cafd71e4f 203a68151e8eeb331d4a64ab78303f3a15faf103 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected a833a17aeac73b33f79433d7cee68d5cafd71e4f ecc6a2101840177e57c925c102d2d29f260d37c8 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 1858b8a331937f3976d8482cd5f6e1f945294ad3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.8","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.8 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.215 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.154 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.85 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.26 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.8.5 6.8.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.9 * original_commit_for_fix","platforms":[]},{"source":"ADP","vendor":"Siemens","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","version":"affected * custom","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2024","cve_id":"35905","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"o","cpe4":"linux","cpe5":"linux_kernel","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"metrics":[{"other":{"content":{"id":"CVE-2024-35905","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","timestamp":"2024-05-21T15:34:20.280116Z","version":"2.0.3"},"type":"ssvc"}}],"providerMetadata":{"dateUpdated":"2024-06-04T17:34:52.056Z","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","shortName":"CISA-ADP"},"title":"CISA ADP Vulnrichment"},{"providerMetadata":{"dateUpdated":"2024-08-02T03:21:49.025Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/9970e059af471478455f9534e8c3db82f8c5496d"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/37dc1718dc0c4392dbfcb9adec22a776e745dd69"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/98cdac206b112bec63852e94802791e316acc2c1"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/3f0784b2f1eb9147973d8c43ba085c5fdf44ff69"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/203a68151e8eeb331d4a64ab78303f3a15faf103"},{"tags":["x_transferred"],"url":"https://git.kernel.org/stable/c/ecc6a2101840177e57c925c102d2d29f260d37c8"},{"tags":["x_transferred"],"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html"}],"title":"CVE Program Container"},{"affected":[{"defaultStatus":"unknown","product":"SIMATIC S7-1500 TM MFP - GNU/Linux subsystem","vendor":"Siemens","versions":[{"lessThan":"*","status":"affected","version":"0","versionType":"custom"}]}],"providerMetadata":{"dateUpdated":"2026-05-12T11:52:38.972Z","orgId":"0b142b55-0307-4c5a-b3c9-f314f3fb7c5e","shortName":"siemens-SADP"},"references":[{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html"}],"x_adpType":"supplier"}],"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["kernel/bpf/verifier.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"9970e059af471478455f9534e8c3db82f8c5496d","status":"affected","version":"afea95d319ccb4ad2060dece9ac5e2e364dec543","versionType":"git"},{"lessThan":"37dc1718dc0c4392dbfcb9adec22a776e745dd69","status":"affected","version":"02962684258eb53f414a8a59854767be526e6abb","versionType":"git"},{"lessThan":"98cdac206b112bec63852e94802791e316acc2c1","status":"affected","version":"b1d4d54d32ce6342f5faffe71bae736540ce7cb5","versionType":"git"},{"lessThan":"3f0784b2f1eb9147973d8c43ba085c5fdf44ff69","status":"affected","version":"08b91babccbb168353f8d43fea0ed28a4cad568c","versionType":"git"},{"lessThan":"203a68151e8eeb331d4a64ab78303f3a15faf103","status":"affected","version":"a833a17aeac73b33f79433d7cee68d5cafd71e4f","versionType":"git"},{"lessThan":"ecc6a2101840177e57c925c102d2d29f260d37c8","status":"affected","version":"a833a17aeac73b33f79433d7cee68d5cafd71e4f","versionType":"git"},{"status":"affected","version":"1858b8a331937f3976d8482cd5f6e1f945294ad3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["kernel/bpf/verifier.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.8"},{"lessThan":"6.8","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.215","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.154","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.85","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.26","versionType":"semver"},{"lessThanOrEqual":"6.8.*","status":"unaffected","version":"6.8.5","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"6.9","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.10.215","versionStartIncluding":"5.10.209","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.154","versionStartIncluding":"5.15.148","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.85","versionStartIncluding":"6.1.75","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.26","versionStartIncluding":"6.6.14","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.8.5","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.9","versionStartIncluding":"6.8","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7.2","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Protect against int overflow for stack access size\n\nThis patch re-introduces protection against the size of access to stack\nmemory being negative; the access size can appear negative as a result\nof overflowing its signed int representation. This should not actually\nhappen, as there are other protections along the way, but we should\nprotect against it anyway. One code path was missing such protections\n(fixed in the previous patch in the series), causing out-of-bounds array\naccesses in check_stack_range_initialized(). This patch causes the\nverification of a program with such a non-sensical access size to fail.\n\nThis check used to exist in a more indirect way, but was inadvertendly\nremoved in a833a17aeac7."}],"providerMetadata":{"dateUpdated":"2026-05-11T20:13:31.449Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/9970e059af471478455f9534e8c3db82f8c5496d"},{"url":"https://git.kernel.org/stable/c/37dc1718dc0c4392dbfcb9adec22a776e745dd69"},{"url":"https://git.kernel.org/stable/c/98cdac206b112bec63852e94802791e316acc2c1"},{"url":"https://git.kernel.org/stable/c/3f0784b2f1eb9147973d8c43ba085c5fdf44ff69"},{"url":"https://git.kernel.org/stable/c/203a68151e8eeb331d4a64ab78303f3a15faf103"},{"url":"https://git.kernel.org/stable/c/ecc6a2101840177e57c925c102d2d29f260d37c8"}],"title":"bpf: Protect against int overflow for stack access size","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2024-35905","datePublished":"2024-05-19T08:34:58.347Z","dateReserved":"2024-05-17T13:50:33.120Z","dateUpdated":"2026-05-12T11:52:38.972Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2024-05-19 09:15:11","lastModifiedDate":"2026-05-12 12:16:40","problem_types":["CWE-129","CWE-190"],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"LOW","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}]},"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.10.209","versionEndExcluding":"5.10.215","matchCriteriaId":"4866F695-8BAF-42F6-B82E-A11335A27FE5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"5.15.148","versionEndExcluding":"5.15.154","matchCriteriaId":"A795D3CA-0642-464E-9C92-3E3949C9EFCC"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.1.75","versionEndExcluding":"6.1.85","matchCriteriaId":"5EFF144D-5904-4571-8285-B5A2010A6097"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.6.14","versionEndExcluding":"6.6.26","matchCriteriaId":"674DF41C-1DB9-4C5E-B7E4-9704A4427E90"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7.2","versionEndExcluding":"6.8.5","matchCriteriaId":"069B012D-A37C-48F0-B2B4-E6E8EE965640"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:6.9:rc1:*:*:*:*:*:*","matchCriteriaId":"22BEDD49-2C6D-402D-9DBF-6646F6ECD10B"}]}]},{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","matchCriteriaId":"07B237A9-69A3-4A9C-9DA0-4E06BD37AE73"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2024","CveId":"35905","Ordinal":"1","Title":"bpf: Protect against int overflow for stack access size","CVE":"CVE-2024-35905","Year":"2024"},"notes":[{"CveYear":"2024","CveId":"35905","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nbpf: Protect against int overflow for stack access size\n\nThis patch re-introduces protection against the size of access to stack\nmemory being negative; the access size can appear negative as a result\nof overflowing its signed int representation. This should not actually\nhappen, as there are other protections along the way, but we should\nprotect against it anyway. One code path was missing such protections\n(fixed in the previous patch in the series), causing out-of-bounds array\naccesses in check_stack_range_initialized(). This patch causes the\nverification of a program with such a non-sensical access size to fail.\n\nThis check used to exist in a more indirect way, but was inadvertendly\nremoved in a833a17aeac7.","Type":"Description","Title":"bpf: Protect against int overflow for stack access size"}]}}}