CVE-2026-139418: platform/olpc: Reserve space for a string terminator
In the Linux kernel, the following vulnerability has been resolved:
platform/olpc: Reserve space for a string terminator
ecdbgfscmdwrite() 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Compensating control
In the Linux kernel’s platform/olpc ec_dbgfs_cmd_write(), limit the copy so the buffer retains space for a trailing NUL terminator.
Event History
Frequently Asked Questions
What does an attacker need to do to trigger the out-of-bounds read?
They need to provide input to ec_dbgfs_cmd_write() that fills the entire stack buffer. This removes the buffer's existing trailing NUL byte before the input is passed to sscanf().
What is the relevant remediation?
Apply a kernel update containing the change that limits the user-input copy so that space remains for a trailing NUL terminator. The listed kernel.org stable commits provide references for the fix.