{"id":"CVE-2026-139418","summary":"platform/olpc: Reserve space for a string terminator","details":"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.","modified":"2026-12-01T21:02:38.062705767Z","published":"2026-11-30T13:34:34.303Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139418.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/17c1dde0cf2bf3a16ed91c12007b6a1a625b6893"},{"type":"WEB","url":"https://git.kernel.org/stable/c/1fe88b1741ff655bb59e4fd78178fe2c557b9185"},{"type":"WEB","url":"https://git.kernel.org/stable/c/323ef933d931c6ef4d7e3be6763da1779f6d3cb1"},{"type":"WEB","url":"https://git.kernel.org/stable/c/379403b11c73e779f7b831a4e58dd93ce1fc9d5a"},{"type":"WEB","url":"https://git.kernel.org/stable/c/5a7956346f6965e7f0a21cca1aa36d72ac9cd42b"},{"type":"WEB","url":"https://git.kernel.org/stable/c/d8bc540c486768870953fd9b39ae22d80178d17d"},{"type":"WEB","url":"https://git.kernel.org/stable/c/e1fd1cb406657e7b85e98f5954b279b2b07729da"},{"type":"WEB","url":"https://git.kernel.org/stable/c/fbd0970689ff743afe907d823c47b7c3c7e91560"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139418.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139418"},{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"6cca83d498bda0999302079bd59786370590c5c2"},{"fixed":"5a7956346f6965e7f0a21cca1aa36d72ac9cd42b"},{"fixed":"e1fd1cb406657e7b85e98f5954b279b2b07729da"},{"fixed":"17c1dde0cf2bf3a16ed91c12007b6a1a625b6893"},{"fixed":"fbd0970689ff743afe907d823c47b7c3c7e91560"},{"fixed":"d8bc540c486768870953fd9b39ae22d80178d17d"},{"fixed":"379403b11c73e779f7b831a4e58dd93ce1fc9d5a"},{"fixed":"323ef933d931c6ef4d7e3be6763da1779f6d3cb1"},{"fixed":"1fe88b1741ff655bb59e4fd78178fe2c557b9185"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139418.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"3.6.0"},{"fixed":"5.10.275"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.11.0"},{"fixed":"5.15.226"}]},{"type":"ECOSYSTEM","events":[{"introduced":"5.16.0"},{"fixed":"6.1.193"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.2.0"},{"fixed":"6.6.163"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.119"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.65"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.6"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139418.json"}}],"schema_version":"1.9.2"}