AZL-117211: CVE-2026-139543 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
scsi: scsidebug: Avoid 32-bit overflow in WRITE SCATTERED offsets
respwritescat() computes the length of an LBA range in bytes as a 32-bit product, numby = num lbsize, and adds it to sgoff, the 32-bit offset of the next range in the data-out buffer. The product wraps for a range of 4 GiB or more, which checkdeviceaccessparams() allows once the store is that large, and sgoff wraps once the ranges add up to 4 GiB, which neither their number nor their overlap prevents. The ranges that follow are then written from the wrong offset in the buffer.
Make numby and sgoff 64-bit, and pass dodeviceaccess() sgoff capped at the length of the buffer. An offset at the end of the buffer copies nothing, and sgcopybuffer(), which takes it as an offt, is never given one larger than the buffer that it copies.
Affected Software
Event History
Frequently Asked Questions
Which systems are exposed to this issue?
Systems using the scsi_debug driver and processing WRITE SCATTERED requests are affected when the backing store is large enough to permit an LBA range of 4 GiB or more. The problem is specific to offset and length calculations for these requests.
What conditions are needed to trigger the incorrect write offset?
A WRITE SCATTERED LBA range whose byte length reaches 4 GiB can cause the 32-bit length calculation to wrap. Independently, multiple ranges whose accumulated offsets reach 4 GiB can wrap the next-range offset, causing later data to be written from the wrong buffer position.
What can be done if the update cannot be applied immediately?
Avoid WRITE SCATTERED operations with individual ranges of 4 GiB or more, and avoid request layouts whose cumulative range offsets reach 4 GiB. Restricting use of the affected scsi_debug functionality also prevents the vulnerable path from being exercised.