CVE-2026-99937: scsi: ufs: bsg: Validate request_len before accessing request
In the Linux kernel, the following vulnerability has been resolved:
scsi: ufs: bsg: Validate requestlen before accessing request
ufsbsgrequest() and ufsbsgexecadvancedrpmbreq() read the request buffer without checking job->requestlen, which userspace controls. A short request causes an out-of-bounds read. Found by syzkaller.
Reject requests shorter than the structure each path reads.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.118 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.64 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 6.12.118-1 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
Validate request_len in ufs_bsg_request() and ufs_bsg_exec_advanced_rpmb_req() and reject requests shorter than the structure each path reads before accessing the request buffer.
Event History
Frequently Asked Questions
What access does an attacker need to trigger the issue?
An attacker needs userspace access to submit a BSG request with a controlled request_len. The vulnerable paths read the request buffer before validating that length.
Which request paths are affected?
The affected paths are ufs_bsg_request() and ufs_bsg_exec_advanced_rpmb_req(). Each can read beyond a short userspace-supplied request buffer.
How can I verify that a fix is present?
Verify that both affected paths reject requests whose job->request_len is shorter than the structure each path needs to read before accessing the request buffer.