CVE-2026-92477: scsi: ufs: debugfs: Reserve space for a string terminator
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: debugfs: Reserve space for a string terminator
ufs_saved_err_write() copies user input into a zero-initialized stack buffer and passes it to kstrtoint(). A write that fills the entire buffer overwrites its only terminator.
Reject an input whose length leaves no room for the trailing NUL.
The Linux kernel CVE team has assigned CVE-2026-92477 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.16 with commit 7340faae947400907e5e7581444712110d2811d5 and fixed in 6.1.188 with commit b43890843e834300f967c69e74c7c2eb22cb1664 Issue introduced in 5.16 with commit 7340faae947400907e5e7581444712110d2811d5 and fixed in 6.6.157 with commit 587be18e0935632ebd367b0f89e37aa5762e400f Issue introduced in 5.16 with commit 7340faae947400907e5e7581444712110d2811d5 and fixed in 6.12.110 with commit d223989e1a1edad217b673486b093bd157fb6c9a Issue introduced in 5.16 with commit 7340faae947400907e5e7581444712110d2811d5 and fixed in 6.18.52 with commit cc92af8cc0e4dacd4375d34475141b0f1a70c09e Issue introduced in 5.16 with commit 7340faae947400907e5e7581444712110d2811d5 and fixed in 7.2.6 with commit 2b3fb5693c25c21741f357a8c9d0e1f19b7e368f Issue introduced in 5.16 with commit 7340faae947400907e5e7581444712110d2811d5 and fixed in 7.3-rc1 with commit abd26e6b53c4169122d61fdd4cabe09bdd916aac
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-92477
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/ufs/core/ufs-debugfs.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/b43890843e834300f967c69e74c7c2eb22cb1664 https://git.kernel.org/stable/c/587be18e0935632ebd367b0f89e37aa5762e400f https://git.kernel.org/stable/c/d223989e1a1edad217b673486b093bd157fb6c9a https://git.kernel.org/stable/c/cc92af8cc0e4dacd4375d34475141b0f1a70c09e https://git.kernel.org/stable/c/2b3fb5693c25c21741f357a8c9d0e1f19b7e368f https://git.kernel.org/stable/c/abd26e6b53c4169122d61fdd4cabe09bdd916aac