Skip to main content
Network Thinking Solutions Logo

CVE-2024-26988

Linux kernel: init/main.c: Fix potential static_command_line memory overflow

All CVEs
CVE-2024-26988Published 5/1/2024

Linux kernel: init/main.c: Fix potential static_command_line memory overflow

Vendor advisory
CVSS7.8High

Overview

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

Published
5/1/2024
Last modified
10/15/2026
CVE assigner
Not available
NVD analysis
Not available

Exploitation

No CISA KEV flag in the saved record

An absent KEV flag does not establish that exploitation has never occurred. Verify current intelligence before prioritizing work.

EPSS predictions and CISA SSVC assessments are not imported here. Review additional intelligence on Cloudflare

Affected products

Affected-version rules published in the advisory. Conditions and uncertain comparisons require verification.

Vendor / productAffected versionsPlatform / conditionsEvidence
linux kernel
linux
≥ 5.1, < 5.10.216

Verify advisory

Source
linux kernel
linux
≥ 5.11, < 5.15.157

Verify advisory

Source
linux kernel
linux
≥ 5.16, < 6.1.88

Verify advisory

Source
linux kernel
linux
≥ 6.2, < 6.6.29

Verify advisory

Source
linux kernel
linux
≥ 6.7, < 6.8.8

Verify advisory

Source
linux kernel
linux
6.9

Verify advisory

The advisory has platform, edition, hardware, or configuration conditions not verified by software inventory.

Source
debian linux
debian
10.0

Verify advisory

Source
fedora
fedoraproject
38

Verify advisory

Source
fedora
fedoraproject
39

Verify advisory

Source
fedora
fedoraproject
40

Verify advisory

Source
Linux
Linux
≥ f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a

Verify advisory

Source
Linux
Linux
≥ f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4

Verify advisory

Source
Linux
Linux
≥ f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea

Verify advisory

Source
Linux
Linux
≥ f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8

Verify advisory

Source
Linux
Linux
≥ f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 936a02b5a9630c5beb0353c3085cc49d86c57034

Verify advisory

Source
Linux
Linux
≥ f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 46dad3c1e57897ab9228332f03e1c14798d2d3b9

Verify advisory

Source
Linux
Linux
5.1

Verify advisory

Source
RUGGEDCOM RST2428P
Siemens
< V3.1

Verify advisory

Source
SCALANCE XCM-/XRM-/XCH-/XRH-300 family
Siemens
< V3.1

Verify advisory

Source
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem
Siemens
< V1.1.1

Verify advisory

Source

Recommended actions

Verify the product, installed version, platform, and advisory prerequisites on each system. Apply the vendor's applicable fixed release or mitigation. An affected-range boundary alone is not a universal update recommendation.

Vendor advisory links

Derived from non-aggregator references because the source record has no vendor tags. Verify the advisory before acting on it.

Severity

CVSS describes technical impact. It is separate from exploitation evidence.

Published headline score: 7.8. Score version, vector, and attribution are not available in this record. Additional score details appear when the source record is next refreshed.

Sources & references

Sources: Official CVE List, NVD and cve.now (summaries CC BY 4.0). Uses NVD data; not endorsed by NVD.