CVE-2026-92480: scsi: ufs: core: Validate string descriptors
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: core: Validate string descriptors
The string descriptor length includes a two-byte header while the UTF-16 payload starts after it. utf16s_to_utf8s() expects a count of UTF-16 code units, not bytes. Passing the payload byte count can make it read beyond the descriptor buffer.
Validate that the payload has an even byte count, pass a code-unit count to the converter, and allocate sufficient UTF-8 output space.
The raw string buffer starts after the descriptor header but its size is bLength. Copying bLength bytes from that pointer can read beyond the response buffer.
Allocate a zeroed bLength-sized buffer and copy only the UTF-16 payload. This preserves the raw buffer size consumed by the RPMB device-ID ABI while avoiding the overread.
The Linux kernel CVE team has assigned CVE-2026-92480 to this issue.
Affected and fixed versions
===========================
Issue introduced in 5.4 with commit 4b828fe156a662a4b6135019bf077040340f299b and fixed in 7.2.6 with commit 66da25277256b6bf4c3fdbf3c9bfd43324c9cf25 Issue introduced in 5.4 with commit 4b828fe156a662a4b6135019bf077040340f299b and fixed in 7.3-rc1 with commit d96e83d028d7d8762e424e49c671d49ac2ecf14f
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-92480
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/ufshcd.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/66da25277256b6bf4c3fdbf3c9bfd43324c9cf25 https://git.kernel.org/stable/c/d96e83d028d7d8762e424e49c671d49ac2ecf14f