Technical impact
The Linux kernel’s SCSI BSG transport allocates a 96‑byte reply buffer for each job but Advanced RPMB replies require 104 bytes. When a UFS device returns an Extended Host State (EHS) segment, the kernel copies data past the allocated buffer, writing eight bytes beyond the allocated memory. This out‑of‑bounds write corrupts kernel stack memory and can be triggered by a crafted RPMB command, potentially allowing a local attacker to overflow the buffer and execute arbitrary code in kernel mode. The weakness is an example of a memory corruption flaw (CWE‑787).
Affected Systems
All Linux kernel releases that incorporate the bsg library before the patch commits 2effbe746452c108188f85a6951f2b0b65653840, 7a755f6d47b811d3abd93c1642ce5e63894540b8, and ec6b083915e8146e147314a5f4f1285d07b57bfc. The vulnerability impacts any system that uses the SCSI BSG transport for UFS devices without the patch, regardless of user privileges.
Risk and Exploitability
The CVSS score is 4.4, indicating moderate severity. The EPSS score is below 1%, implying that the likelihood of a public exploit is low. The vulnerability is not listed in CISA’s KEV catalog, and the attack requires local access to a UFS device and the ability to issue a malformed RPMB command. Because the overflow occurs in kernel mode, an exploitation attempt could lead to privilege escalation to root if successfully triggered.
Debian DLA