scsi: ufs: debugfs: Reserve space for a string terminator
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 7340faae947400907e5e7581444712110d2811d5 · < abd26e6b53c4169122d61fdd4cabe09bdd916aac| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel’s UFS debugfs handler can pass an unterminated stack buffer to kstrtoint() when input fills the buffer. A local user able to write to the affected debugfs entry can trigger this condition; the input does not describe any further impact.
Engineers running Linux kernels with UFS debugfs should check their vendor’s advisory for affected versions.