{"id":"CVE-2026-139418","aliases":["CVE-2026-139418"],"related":[],"kind":"vulnerability","state":"published","title":"platform/olpc: Reserve space for a string terminator","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/olpc: Reserve space for a string terminator\n\nec_dbgfs_cmd_write() copies user input into a zero-initialized stack\nbuffer and passes it to sscanf(). A write that overwrites the entire\nbuffer leaves no terminator, so the subsequent parsing can read beyond\nthe buffer.\n\nLimit the copy to leave room for the trailing NUL.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nplatform/olpc: Reserve space for a string terminator\n\nec_dbgfs_cmd_write() copies user input into a zero-initialized stack\nbuffer and passes it to sscanf(). A write that overwrites the entire\nbuffer leaves no terminator, so the subsequent parsing can read beyond\nthe buffer.\n\nLimit the copy to leave room for the trailing NUL.","source":"cvelist"}],"published":"2026-11-30T13:34:34.303Z","modified":"2026-11-30T14:19:10.847Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"5a7956346f6965e7f0a21cca1aa36d72ac9cd42b","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"e1fd1cb406657e7b85e98f5954b279b2b07729da","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"17c1dde0cf2bf3a16ed91c12007b6a1a625b6893","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"fbd0970689ff743afe907d823c47b7c3c7e91560","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"d8bc540c486768870953fd9b39ae22d80178d17d","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"379403b11c73e779f7b831a4e58dd93ce1fc9d5a","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"323ef933d931c6ef4d7e3be6763da1779f6d3cb1","status":"affected"},{"type":"git","introduced":"6cca83d498bda0999302079bd59786370590c5c2","fixed":"1fe88b1741ff655bb59e4fd78178fe2c557b9185","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"3.6","status":"affected"},{"type":"semver","introduced":"0","fixed":"3.6","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5a7956346f6965e7f0a21cca1aa36d72ac9cd42b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e1fd1cb406657e7b85e98f5954b279b2b07729da","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/17c1dde0cf2bf3a16ed91c12007b6a1a625b6893","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fbd0970689ff743afe907d823c47b7c3c7e91560","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d8bc540c486768870953fd9b39ae22d80178d17d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/379403b11c73e779f7b831a4e58dd93ce1fc9d5a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/323ef933d931c6ef4d7e3be6763da1779f6d3cb1","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1fe88b1741ff655bb59e4fd78178fe2c557b9185","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139418","url":"https://www.cve.org/CVERecord?id=CVE-2026-139418","licence":"CVE Terms of Use","modified":"2026-11-30T13:34:34.303Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139418","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139418","licence":"Public domain","modified":"2026-11-30T14:19:10.847Z"}],"updatedAt":"2026-11-30T14:33:10.774Z","epss":{"score":0.00211,"percentile":0.12004,"date":"2026-12-01T12:00:22.000Z"}}