Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

CVE-2024-26988

HIGH 7.8EPSS 25%

init/main.c: Fix potential static_command_line memory overflow

Mitigation

  • Upgrade Linux to 46dad3c1e57897ab9228332f03e1c14798d2d3b9 or later.

Who should check

  • Anyone running Linux >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 936a02b5a9630c5beb0353c3085cc49d86c57034; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 46dad3c1e57897ab9228332f03e1c14798d2d3b9
  • Anyone running Linux 5.1

Vulnerability facts

Affected
Linux >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 936a02b5a9630c5beb0353c3085cc49d86c57034; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 46dad3c1e57897ab9228332f03e1c14798d2d3b9; Linux 5.1
Fixed in
Linux 2ef607ea103616aec0289f1b65d103d499fa903a, Linux 0dc727a4e05400205358a22c3d01ccad2c8e1fe4, Linux 76c2f4d426a5358fced5d5990744d46f10a4ccea, Linux 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8, Linux 936a02b5a9630c5beb0353c3085cc49d86c57034, Linux 46dad3c1e57897ab9228332f03e1c14798d2d3b9
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Not remotely exploitable (local or adjacent access needed)
CVSS
7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
  • Attack vector: Local
  • Attack complexity: Low
  • Privileges required: Low
  • User interaction: None
  • Scope: Unchanged
  • Confidentiality impact: High
  • Integrity impact: High
  • Availability impact: High
EPSS
0.39% chance of exploitation in 30 days (percentile 25, 2026-11-26)
CWE
CWE-787
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
Linux>= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 936a02b5a9630c5beb0353c3085cc49d86c57034; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 46dad3c1e57897ab9228332f03e1c14798d2d3b9—cvelist
Linux5.1—cvelist

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by CVE-2024-26988. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-26988.md
Affected: Linux >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea; >= f5c7310ac73ea270e3a1acd…
Fixed in: Linux 2ef607ea103616aec0289f1b65d103d499fa903a, Linux 0dc727a4e05400205358a22c3d01ccad2c8e1fe4, Linux 76c2f4d426a5358fced5d5990744d46f10a4ccea, Linux 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8, Linux 936a02b5a9630c5beb0353c3085cc49d86c57034, Linux 46dad3c1e57897ab9228332f03e1c14798d2d3b9

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is CVE-2024-26988 being exploited?

There is no confirmed exploitation: CVE-2024-26988 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).

How serious is CVE-2024-26988?

High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

Which versions are affected by CVE-2024-26988?

Linux >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 2ef607ea103616aec0289f1b65d103d499fa903a; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 0dc727a4e05400205358a22c3d01ccad2c8e1fe4; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 76c2f4d426a5358fced5d5990744d46f10a4ccea; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 936a02b5a9630c5beb0353c3085cc49d86c57034; >= f5c7310ac73ea270e3a1acdb73d1b4817f11fd67, < 46dad3c1e57897ab9228332f03e1c14798d2d3b9; Linux 5.1.

Is there a fix for CVE-2024-26988?

Yes. Fixed in Linux 2ef607ea103616aec0289f1b65d103d499fa903a, Linux 0dc727a4e05400205358a22c3d01ccad2c8e1fe4, Linux 76c2f4d426a5358fced5d5990744d46f10a4ccea, Linux 81cf85ae4f2dd5fa3e43021782aa72c4c85558e8, Linux 936a02b5a9630c5beb0353c3085cc49d86c57034, Linux 46dad3c1e57897ab9228332f03e1c14798d2d3b9. Upgrade Linux to 46dad3c1e57897ab9228332f03e1c14798d2d3b9 or later.

How do I check if I'm affected by CVE-2024-26988?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors