Linux
smb/client: fix out-of-bounds read in smb2_compound_op()
In the Linux kernel, the following vulnerability has been resolved: smb/client: fix out-of-bounds read in smb2_compound_op() If a server sends a truncated response but a large OutputBufferLength, and terminates the EA list early, check_wsl_eas() returns success without validating that the entire OutputBufferLength fits within iov_len. Then smb2_compound_op() does: memcpy(idata->wsl.eas, data[0], size[0]); Where size[0] is OutputBufferLength. If iov_len is smaller than size[0], memcpy can read beyond the end of the rsp_iov allocation and leak adjacent kernel heap memory.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 7449d736bbbd160c76b01b8fcdf72f58a8757d4b, < dffb44b2e06a2908e249f0f93156fc987eee1d1c
- >= ea41367b2a602f602ea6594fc4a310520dcc64f4, < 9b3af35645ff9cd334edc130249f9a2fb2bea25f
- >= ea41367b2a602f602ea6594fc4a310520dcc64f4, < 512d33bc8ea4ea5c19728ee118715f4b1f4d1926
- >= ea41367b2a602f602ea6594fc4a310520dcc64f4, < a16f70a71be4b5a4eccf39a9bf09b47285f4cb7c
- >= ea41367b2a602f602ea6594fc4a310520dcc64f4, < 8d09328dfda089675e4c049f3f256064a1d1996b
- >= 6.6.32, < 6.6.140
Fixed in dffb44b2e06a2908e249f0f93156fc987eee1d1c, 9b3af35645ff9cd334edc130249f9a2fb2bea25f, 512d33bc8ea4ea5c19728ee118715f4b1f4d1926, a16f70a71be4b5a4eccf39a9bf09b47285f4cb7c, 8d09328dfda089675e4c049f3f256064a1d1996b, 6.6.140
- 6.9
Fixed in 0, 6.6.140, 6.12.88, 6.18.30, 7.0.7, 7.1
Mitigation
Upgrade Linux to dffb44b2e06a2908e249f0f93156fc987eee1d1c or 9b3af35645ff9cd334edc130249f9a2fb2bea25f or 512d33bc8ea4ea5c19728ee118715f4b1f4d1926 or a16f70a71be4b5a4eccf39a9bf09b47285f4cb7c or 8d09328dfda089675e4c049f3f256064a1d1996b or 6.6.140 or later.
Upgrade Linux to 0 or 6.6.140 or 6.12.88 or 6.18.30 or 7.0.7 or 7.1 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.