# CVE-2026-139418: platform/olpc: Reserve space for a string terminator

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-11-30T13:34:34.303Z
- Modified: 2026-11-30T14:19:10.847Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6cca83d498bda0999302079bd59786370590c5c2 before 5a7956346f6965e7f0a21cca1aa36d72ac9cd42b; from 6cca83d498bda0999302079bd59786370590c5c2 before e1fd1cb406657e7b85e98f5954b279b2b07729da; from 6cca83d498bda0999302079bd59786370590c5c2 before 17c1dde0cf2bf3a16ed91c12007b6a1a625b6893; from 6cca83d498bda0999302079bd59786370590c5c2 before fbd0970689ff743afe907d823c47b7c3c7e91560; from 6cca83d498bda0999302079bd59786370590c5c2 before d8bc540c486768870953fd9b39ae22d80178d17d; from 6cca83d498bda0999302079bd59786370590c5c2 before 379403b11c73e779f7b831a4e58dd93ce1fc9d5a; from 6cca83d498bda0999302079bd59786370590c5c2 before 323ef933d931c6ef4d7e3be6763da1779f6d3cb1; from 6cca83d498bda0999302079bd59786370590c5c2 before 1fe88b1741ff655bb59e4fd78178fe2c557b9185; 3.6 (not affected: before 3.6; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.119 up to 6.12.*; from 6.18.65 up to 6.18.*; from 7.3.6 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/5a7956346f6965e7f0a21cca1aa36d72ac9cd42b>
- <https://git.kernel.org/stable/c/e1fd1cb406657e7b85e98f5954b279b2b07729da>
- <https://git.kernel.org/stable/c/17c1dde0cf2bf3a16ed91c12007b6a1a625b6893>
- <https://git.kernel.org/stable/c/fbd0970689ff743afe907d823c47b7c3c7e91560>
- <https://git.kernel.org/stable/c/d8bc540c486768870953fd9b39ae22d80178d17d>
- <https://git.kernel.org/stable/c/379403b11c73e779f7b831a4e58dd93ce1fc9d5a>
- <https://git.kernel.org/stable/c/323ef933d931c6ef4d7e3be6763da1779f6d3cb1>
- <https://git.kernel.org/stable/c/1fe88b1741ff655bb59e4fd78178fe2c557b9185>

## Sources

- CVE List: [CVE-2026-139418](https://www.cve.org/CVERecord?id=CVE-2026-139418), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139418](https://nvd.nist.gov/vuln/detail/CVE-2026-139418), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139418 · Whole record: https://cve.day/CVE-2026-139418.json · Rebuilt by cve.day 2026-11-30T14:33:10.774Z
