VDB

CVE-2024-26988

CVE-2024-26988 PUBLISHED

init/main.c: Fix potential static_command_line memory overflow

Reported by linux · Published May 1, 2024

In the Linux kernel, the following vulnerability has been resolved: init/main.c: Fix potential static_command_line memory overflow We allocate memory of size 'xlen + strlen(boot_command_line) + 1' for static_command_line, but the strings copied into static_command_line are extra_command_line and command_line, rather than extra_command_line and boot_command_line. When strlen(command_line) > strlen(boot_command_line), static_command_line will overflow. This patch just recovers strlen(command_line) which was miss-consolidated with strlen(boot_command_line) in the commit f5c7310ac73e ("init/main: add checks for the return value of memblock_alloc*()")

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-modules-extraAmazon Linux6.1.90-99.173.amzn2023
kernel-libbpfAmazon Linux6.1.90-99.173.amzn2023
linux_kernellinux6.8.8, 6.6.29, 6.1.88, 5.15.157, 5.10.216

Affected products

VendorProductVersions
LinuxLinuxf5c7310ac73ea270e3a1acdb73d1b4817f11fd67, f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, f5c7310ac73ea270e3a1acdb73d1b4817f11fd67
LinuxLinux5.1, 0, 5.10.216
amazon:2023kernel-modules-extra0
amazon:2023kernel-libbpf0
linuxlinux_kernel5.1, 5.1, 5.1
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-tools0
amazon:2023perf0
amazon:2023kernel-modules-extra-common0
amazon:2023python3-perf0
amazon:2023kernel-devel0
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family0
amazon:2023kernel-headers0
amazon:2023kernel0
LinuxLinux*, 6.6.29, 6.8.8
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family0
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem0
amazon:2023kernel-livepatch-6.1.90-99.1730
amazon:2023bpftool0
amazon:2023kernel-libbpf-static0

…and 2 more

Timeline

  • May 1, 2024 EPSS Score (30 in total, the first dated here)
  • May 1, 2024 CVE Published
  • Oct 4, 2024 Coalition ESS Score (6 in total, the first dated here)
  • Dec 16, 2025 PoC Published
  • Jan 15, 2026 Security Advisory (308 in total, the first dated here)
  • Mar 30, 2026 Distribution Patch (270 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-26988
vulnetix vdb fixes CVE-2024-26988

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-26988/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›