Linux
smb/client: fix out-of-bounds read in symlink_data()
In the Linux kernel, the following vulnerability has been resolved: smb/client: fix out-of-bounds read in symlink_data() Since smb2_check_message() returns success without length validation for the symlink error response, in symlink_data() it is possible for iov->iov_len to be smaller than sizeof(struct smb2_err_rsp). If the buffer only contains the base SMB2 header (64 bytes), accessing err->ErrorContextCount (at offset 66) or err->ByteCount later in symlink_data() will cause an out-of-bounds read.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 76894f3e2f71177747b8b4763fb180e800279585, < 2be11faf79e49fb8250a181ff0b4d2b2f084af83
- >= 76894f3e2f71177747b8b4763fb180e800279585, < ef6495d4df6e7af8f3de67e65150881c880f696c
- >= 76894f3e2f71177747b8b4763fb180e800279585, < 15dc0a4de743a1aaa7b859b3aea79f08c695396c
- >= 76894f3e2f71177747b8b4763fb180e800279585, < b8c8a704f0bc133deb171f6aeb6f3a684203e212
- >= 76894f3e2f71177747b8b4763fb180e800279585, < b9561402489d41149f63e001a74384863b7b30a6
- >= 76894f3e2f71177747b8b4763fb180e800279585, < d62b8d236fab503c6fec1d3e9a38bea71feaca20
- 2d046892a493d9760c35fdaefc3017f27f91b621
- >= 6.0.16, < 6.1
Fixed in 2be11faf79e49fb8250a181ff0b4d2b2f084af83, ef6495d4df6e7af8f3de67e65150881c880f696c, 15dc0a4de743a1aaa7b859b3aea79f08c695396c, b8c8a704f0bc133deb171f6aeb6f3a684203e212, b9561402489d41149f63e001a74384863b7b30a6, d62b8d236fab503c6fec1d3e9a38bea71feaca20, 6.1
- 6.1
Fixed in 0, 6.1.175, 6.6.140, 6.12.88, 6.18.30, 7.0.7, 7.1
Mitigation
Upgrade Linux to 2be11faf79e49fb8250a181ff0b4d2b2f084af83 or ef6495d4df6e7af8f3de67e65150881c880f696c or 15dc0a4de743a1aaa7b859b3aea79f08c695396c or b8c8a704f0bc133deb171f6aeb6f3a684203e212 or b9561402489d41149f63e001a74384863b7b30a6 or d62b8d236fab503c6fec1d3e9a38bea71feaca20 or 6.1 or later.
Upgrade Linux to 0 or 6.1.175 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.