CVE-2026-139418

platform/olpc: Reserve space for a string terminator

Published Nov 30, 2026 CVSS 3.1 · 4.4 Medium EPSS < 1% KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

platform/olpc: Reserve space for a string terminator

ec_dbgfs_cmd_write() copies user input into a zero-initialized stack
buffer and passes it to sscanf(). A write that overwrites the entire
buffer leaves no terminator, so the subsequent parsing can read beyond
the buffer.

Limit the copy to leave room for the trailing NUL.

Analysis

AI-generated

Technical impact

In the Linux kernel the debugfs handler for the OLPC gadget copies user input into a stack buffer and then forwards the data to a standard C library parser. Because the copy does not leave room for a terminating NUL, a write that fills the entire buffer can leave the buffer without a terminator. The parser then reads beyond the buffer, causing a kernel out‑of‑bounds read that may trigger a crash or enable leakage of kernel memory, ultimately resulting in loss of operability of the system.

Affected Systems

The affected product is the Linux kernel itself. Any kernel build that contains the unpatched ec_dbgfs_cmd_write path, across all distributions that ship the kernel without the recent commit that reserves space for the null terminator, is vulnerable.

Risk and Exploitability

The vulnerability is not listed in the CISA KEV catalog and the EPSS score is not available, so an exact exploitation probability cannot be calculated. Exploitation requires write access to the OLPC debugfs interface, which is typically limited to privileged users, implying a somewhat restricted attack surface. Nonetheless, because the flaw can cause a kernel crash or memory disclosure, it poses a moderate to high risk, especially in environments where privileged users may be adversarial; patching is therefore a high priority.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel release that includes the patch altering ec_dbgfs_cmd_write to reserve space for the trailing NUL.
  • If a kernel upgrade cannot be performed immediately, remove or lock write access to the OLPC debugfs interface so that only privileged users can write to it.
  • For custom kernels, re‑fetch the official source, merge the commit that implements the fix, rebuild the kernel and deploy the updated image.

Generated by OpenCVE AI on December 1, 2026 at 11:51 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-125
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: platform/olpc: Reserve space for a string terminator ec_dbgfs_cmd_write() copies user input into a zero-initialized stack buffer and passes it to sscanf(). A write that overwrites the entire buffer leaves no terminator, so the subsequent parsing can read beyond the buffer. Limit the copy to leave room for the trailing NUL.
Title platform/olpc: Reserve space for a string terminator
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:34 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM
Severity
Moderate
Public date
Nov 30, 2026, 1:34 PM