{"id":"CVE-2026-89726","aliases":["CVE-2026-89726"],"related":[],"kind":"vulnerability","state":"published","title":"lib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()\n\nPatch series \"lib/ucs2_string.c: fix out-of-bounds read in\nucs2_strnlen()\", v2.\n\nThis series fixes an off-by-one out-of-bounds read in ucs2_strnlen().\n\nThe first patch is the real fix, the second patch comes as a bonus and\nfixes the code indentation.\n\n\nThis patch (of 2):\n\nucs2_strnlen() checks the current character before checking whether the\ncaller-provided maximum length has been reached.  If the input is not\nNUL-terminated within that bound, the loop can read one ucs2_char_t past\nthe limit.\n\nTest the length before dereferencing to prevent an off-by-one\nout-of-bounds read.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlib/ucs2_string.c: fix out-of-bounds read in ucs2_strnlen()\n\nPatch series \"lib/ucs2_string.c: fix out-of-bounds read in\nucs2_strnlen()\", v2.\n\nThis series fixes an off-by-one out-of-bounds read in ucs2_strnlen().\n\nThe first patch is the real fix, the second patch comes as a bonus and\nfixes the code indentation.\n\n\nThis patch (of 2):\n\nucs2_strnlen() checks the current character before checking whether the\ncaller-provided maximum length has been reached.  If the input is not\nNUL-terminated within that bound, the loop can read one ucs2_char_t past\nthe limit.\n\nTest the length before dereferencing to prevent an off-by-one\nout-of-bounds read.","source":"cvelist"}],"published":"2026-09-11T19:46:37.480Z","modified":"2026-10-19T09:18:14.097Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"04ae68af4107600120c3c41c94268f43bc350d48","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"2e5a70a175f0c74e7238b013a96c4eabc3002934","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"3ada20e110bf3245edb0a3bcddadc33d0f142f8d","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"60c74f42f5abddb85dd919b4448d5474e65dbe76","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"709eb41adaf78d59d4579a13a898125919b69bcc","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"7d658da725ea81c91f73087547b97e7ced82d62b","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"1b0dc3cbb8630f0b5cb34d848628225920a904be","status":"affected"},{"type":"git","introduced":"1da177e4c3f41524e886b7f1b8a0c1fc7321cac2","fixed":"cec0d03fe785380540dc1b4d07c80f67ae2ffc78","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.12","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.109","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","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/04ae68af4107600120c3c41c94268f43bc350d48","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/2e5a70a175f0c74e7238b013a96c4eabc3002934","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3ada20e110bf3245edb0a3bcddadc33d0f142f8d","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/60c74f42f5abddb85dd919b4448d5474e65dbe76","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/709eb41adaf78d59d4579a13a898125919b69bcc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d658da725ea81c91f73087547b97e7ced82d62b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1b0dc3cbb8630f0b5cb34d848628225920a904be","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cec0d03fe785380540dc1b4d07c80f67ae2ffc78","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-89726","url":"https://www.cve.org/CVERecord?id=CVE-2026-89726","licence":"CVE Terms of Use","modified":"2026-10-19T08:51:39.437Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-89726","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-89726","licence":"Public domain","modified":"2026-10-19T09:18:14.097Z"}],"updatedAt":"2026-11-25T22:59:38.128Z","epss":{"score":0.00177,"percentile":0.07636,"date":"2026-12-01T12:00:22.000Z"}}