CVE-2024-26988

HighCVSS 7.8/10Last modified Oct 15, 2026

Description

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*()")

Metrics

CVSS 3.1 7.8/10CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Weakness enumeration

Affected software

VendorProductVersions
LinuxLinux>= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 936a02b5a9630c5beb0353c3085cc49d86c57034; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 46dad3c1e57897ab9228332f03e1c14798d2d3b9
LinuxLinux5.1
SiemensRUGGEDCOM RST2428P< V3.1
SiemensSCALANCE XC-300/XR-300/XC-400/XR-500WG/XR-500 family—
SiemensSCALANCE XCM-/XRM-/XCH-/XRH-300 family< V3.1
SiemensSIMATIC S7-1500 TM MFP - GNU/Linux subsystem< V1.1.1

References

Timeline

Published
May 1, 2024
Last modified
Oct 15, 2026
NVD status
Modified

Related CVEs from 2024

CVE-2024-269897.8In the Linux kernel, the following vulnerability has been resolved: arm64: hibernate: Fix level3 translation fault in swsusp_save() On armCVE-2024-269905.5In the Linux kernel, the following vulnerability has been resolved: KVM: x86/mmu: Write-protect L2 SPTEs in TDP MMU when clearing dirty staCVE-2024-269915.5In the Linux kernel, the following vulnerability has been resolved: KVM: x86/mmu: x86: Don't overflow lpage_info when checking attributes CVE-2024-269923.3In the Linux kernel, the following vulnerability has been resolved: KVM: x86/pmu: Disable support for adaptive PEBS Drop support for virtuCVE-2024-269935.5In the Linux kernel, the following vulnerability has been resolved: fs: sysfs: Fix reference leak in sysfs_break_active_protection() The sCVE-2024-269945.5In the Linux kernel, the following vulnerability has been resolved: speakup: Avoid crash on very long word In case a console is set up reaCVE-2024-269957.8In the Linux kernel, the following vulnerability has been resolved: usb: typec: tcpm: Correct the PDO counting in pd_set Off-by-one errorsCVE-2024-269967.8In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_ncm: Fix UAF ncm object at re-bind after usb ep transporCVE-2024-269975.5In the Linux kernel, the following vulnerability has been resolved: usb: dwc2: host: Fix dereference issue in DDMA completion flow. Fixed CVE-2024-269985.5In the Linux kernel, the following vulnerability has been resolved: serial: core: Clearing the circular buffer before NULLifying it The ciCVE-2024-269995.5In the Linux kernel, the following vulnerability has been resolved: serial/pmac_zilog: Remove flawed mitigation for rx irq flood The mitigCVE-2024-27007.0A vulnerability was found in the quarkus-core component. Quarkus captures local environment variables from the Quarkus namespace during the
CVE-2024-26988: High severity, CVSS 7.8 | Vulnix