{"id":"CVE-2024-26988","revision":"42481eec4bd84e16b608c6e5ae50005e","records":[{"revision":"42481eec4bd84e16b608c6e5ae50005e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2024-26988","aliases":[],"title":"init/main.c: Fix potential static_command_line memory overflow","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ninit/main.c: Fix potential static_command_line memory overflow\n\nWe allocate memory of size 'xlen + strlen(boot_command_line) + 1' for\nstatic_command_line, but the strings copied into static_command_line are\nextra_command_line and command_line, rather than extra_command_line and\nboot_command_line.\n\nWhen strlen(command_line) > strlen(boot_command_line), static_command_line\nwill overflow.\n\nThis patch just recovers strlen(command_line) which was miss-consolidated\nwith strlen(boot_command_line) in the commit f5c7310ac73e (\"init/main: add\nchecks for the return value of memblock_alloc*()\")","state":0,"publishedAt":"2024-05-01T05:27:39.19+00:00","modifiedAt":"2026-10-15T00:39:43.653+00:00","affected":[{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"unaffected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"init/main.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67\",\n                            \"lessThan\": \"2ef607ea103616aec0289f1b65d103d499fa903a\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67\",\n                            \"lessThan\": \"0dc727a4e05400205358a22c3d01ccad2c8e1fe4\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67\",\n                            \"lessThan\": \"76c2f4d426a5358fced5d5990744d46f10a4ccea\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67\",\n                            \"lessThan\": \"81cf85ae4f2dd5fa3e43021782aa72c4c85558e8\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67\",\n                            \"lessThan\": \"936a02b5a9630c5beb0353c3085cc49d86c57034\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"version\": \"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67\",\n                            \"lessThan\": \"46dad3c1e57897ab9228332f03e1c14798d2d3b9\",\n                            \"status\": \"affected\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"Linux","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"product\": \"Linux\",\n                    \"vendor\": \"Linux\",\n                    \"defaultStatus\": \"affected\",\n                    \"repo\": \"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git\",\n                    \"programFiles\": [\n                        \"init/main.c\"\n                    ],\n                    \"versions\": [\n                        {\n                            \"version\": \"5.1\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \"0\",\n                            \"lessThan\": \"5.1\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.10.216\",\n                            \"lessThanOrEqual\": \"5.10.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"5.15.157\",\n                            \"lessThanOrEqual\": \"5.15.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.1.88\",\n                            \"lessThanOrEqual\": \"6.1.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.6.29\",\n                            \"lessThanOrEqual\": \"6.6.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.8.8\",\n                            \"lessThanOrEqual\": \"6.8.*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"semver\"\n                        },\n                        {\n                            \"version\": \"6.9\",\n                            \"lessThanOrEqual\": \"*\",\n                            \"status\": \"unaffected\",\n                            \"versionType\": \"original_commit_for_fix\"\n                        }\n                    ]\n                }"}],"metrics":[],"references":["https://git.kernel.org/stable/c/2ef607ea103616aec0289f1b65d103d499fa903a","https://git.kernel.org/stable/c/0dc727a4e05400205358a22c3d01ccad2c8e1fe4","https://git.kernel.org/stable/c/76c2f4d426a5358fced5d5990744d46f10a4ccea","https://git.kernel.org/stable/c/81cf85ae4f2dd5fa3e43021782aa72c4c85558e8","https://git.kernel.org/stable/c/936a02b5a9630c5beb0353c3085cc49d86c57034","https://git.kernel.org/stable/c/46dad3c1e57897ab9228332f03e1c14798d2d3b9"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2024-26988","license":"CVE Program Terms of Use","key":"cve-program:CVE-2024-26988","identifiers":["CVE-2024-26988"]},"retained":false,"historicalAffected":[]}],"coverage":[]}