Closed GustavoARSilva closed 5 months ago
diff -u -p a/fs/smb/server/smb_common.h b/fs/smb/server/smb_common.h --- a/fs/smb/server/smb_common.h +++ b/fs/smb/server/smb_common.h @@ -200,7 +200,7 @@ struct smb_hdr { struct smb_negotiate_req { struct smb_hdr hdr; /* wct = 0 */ __le16 ByteCount; - unsigned char DialectsArray[1]; + unsigned char DialectsArray[]; } __packed;
Patch: https://lore.kernel.org/linux-hardening/ZJNnynWOoTp6uTwF@work/
Fixed in commit 11d5e2061e973.