{"id":"CVE-2024-26988","aliases":["CVE-2024-26988"],"related":[],"kind":"vulnerability","state":"published","title":"init/main.c: Fix potential static_command_line memory overflow","summary":"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*()\")","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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*()\")","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: init/main.c: soluciona un posible desbordamiento de memoria de static_command_line Asignamos memoria de tamaño 'xlen + strlen(boot_command_line) + 1' para static_command_line, pero las cadenas copiadas en static_command_line son extra_command_line y command_line, en lugar de extra_command_line y boot_command_line. Cuando strlen(command_line) &gt; strlen(boot_command_line), static_command_line se desbordará. Este parche simplemente recupera strlen(command_line) que no se consolidó con strlen(boot_command_line) en el commit f5c7310ac73e (\"init/main: agregue comprobaciones para el valor de retorno de memblock_alloc*()\")","source":"nvd"}],"published":"2024-05-01T05:27:39.190Z","modified":"2026-10-15T01:17:35.437Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-787"],"affected":[{"ranges":[{"type":"git","introduced":"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67","fixed":"2ef607ea103616aec0289f1b65d103d499fa903a","status":"affected"},{"type":"git","introduced":"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67","fixed":"0dc727a4e05400205358a22c3d01ccad2c8e1fe4","status":"affected"},{"type":"git","introduced":"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67","fixed":"76c2f4d426a5358fced5d5990744d46f10a4ccea","status":"affected"},{"type":"git","introduced":"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67","fixed":"81cf85ae4f2dd5fa3e43021782aa72c4c85558e8","status":"affected"},{"type":"git","introduced":"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67","fixed":"936a02b5a9630c5beb0353c3085cc49d86c57034","status":"affected"},{"type":"git","introduced":"f5c7310ac73ea270e3a1acdb73d1b4817f11fd67","fixed":"46dad3c1e57897ab9228332f03e1c14798d2d3b9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.1","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.1","status":"unaffected"},{"type":"semver","introduced":"5.10.216","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.157","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.88","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.29","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.8.8","lastAffected":"6.8.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.9","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.1","fixed":"5.10.216"},{"status":"affected","introduced":"5.11","fixed":"5.15.157"},{"status":"affected","introduced":"5.16","fixed":"6.1.88"},{"status":"affected","introduced":"6.2","fixed":"6.6.29"},{"status":"affected","introduced":"6.7","fixed":"6.8.8"},{"status":"affected","version":"6.9"},{"status":"affected","version":"6.9"},{"status":"affected","version":"6.9"},{"status":"affected","version":"6.9"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"10.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"38"},{"status":"affected","version":"39"},{"status":"affected","version":"40"}],"vendor":"fedoraproject","product":"fedora","cpe":"cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/2ef607ea103616aec0289f1b65d103d499fa903a","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/0dc727a4e05400205358a22c3d01ccad2c8e1fe4","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/76c2f4d426a5358fced5d5990744d46f10a4ccea","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/81cf85ae4f2dd5fa3e43021782aa72c4c85558e8","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/936a02b5a9630c5beb0353c3085cc49d86c57034","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/46dad3c1e57897ab9228332f03e1c14798d2d3b9","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html","tags":["mailing-list","third-party-advisory","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/DAMSOZXJEPUOXW33WZYWCVAY7Z5S7OOY/","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EZ6PJW7VOZ224TD7N4JZNU6KV32ZJ53/","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/GCBZZEC7L7KTWWAS2NLJK6SO3IZIL4WW/","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-265688.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-613116.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2024-09-10T15:44:56.344Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-26988","url":"https://www.cve.org/CVERecord?id=CVE-2024-26988","licence":"CVE Terms of Use","modified":"2026-10-15T00:39:43.653Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-26988","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-26988","licence":"Public domain","modified":"2026-10-15T01:17:35.437Z"}],"updatedAt":"2026-11-25T22:58:39.755Z","epss":{"score":0.00281,"percentile":0.22137,"date":"2026-12-01T12:00:22.000Z"}}