All reports
Medium

kernel: scsi: ufs: debugfs: Reserve space for a string terminator

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2026-92477

Probability of exploitation in the next 30 days: 0.17%

FIRST EPSS · 2026-11-22

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.

A flaw was found in the Linux kernel, specifically within the scsi: ufs: debugfs component. The ufs_saved_err_write() function copies user-provided input into a stack buffer without ensuring sufficient space for a string terminator. If the input completely fills the buffer, it overwrites the terminator, leading to a buffer overflow. This memory corruption could potentially result in a denial of service.